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 : 4061630 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 (2751479) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2751479) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327827 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2751479'] with mtr_portfolio_ids : ['22327827'] and first list_photo_ids : [] new path : /proc/4061630/ Name: python3 Umask: 0002 State: R (running) Tgid: 4061630 Ngid: 0 Pid: 4061630 PPid: 4061629 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4061630 NSpid: 4061630 NSpgid: 4058203 NSsid: 4058203 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97768 kB VmRSS: 97768 kB RssAnon: 59804 kB RssFile: 37964 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 624 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: 50 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4061630', 'Ngid': '0', 'Pid': '4061630', 'PPid': '4061629', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4061630', 'NSpid': '4061630', 'NSpgid': '4058203', 'NSsid': '4058203', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97768 kB', 'VmRSS': '97768 kB', 'RssAnon': '59804 kB', 'RssFile': '37964 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '624 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': '50', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '4061630', '1106936', '0', '1106936', '865684', '97768', b'', 'marlene', '2751479') 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 (22327827) 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 (2751479 ) ) 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 (22327827) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1352921483, 'portfolio_id': 22327827}, {'photo_id': 1352921481, 'portfolio_id': 22327827}, {'photo_id': 1352921477, 'portfolio_id': 22327827}, {'photo_id': 1352921430, 'portfolio_id': 22327827}, {'photo_id': 1352921429, 'portfolio_id': 22327827}, {'photo_id': 1352921428, 'portfolio_id': 22327827}, {'photo_id': 1352921426, 'portfolio_id': 22327827}, {'photo_id': 1352921399, 'portfolio_id': 22327827}, {'photo_id': 1352921398, 'portfolio_id': 22327827}, {'photo_id': 1352921395, 'portfolio_id': 22327827}, {'photo_id': 1352921394, 'portfolio_id': 22327827}, {'photo_id': 1352921351, 'portfolio_id': 22327827}, {'photo_id': 1352921349, 'portfolio_id': 22327827}, {'photo_id': 1352921333, 'portfolio_id': 22327827}, {'photo_id': 1352921200, 'portfolio_id': 22327827}, {'photo_id': 1352921196, 'portfolio_id': 22327827}, {'photo_id': 1352921193, 'portfolio_id': 22327827}, {'photo_id': 1352921190, 'portfolio_id': 22327827}, {'photo_id': 1352921186, 'portfolio_id': 22327827}, {'photo_id': 1352921070, 'portfolio_id': 22327827}, {'photo_id': 1352921068, 'portfolio_id': 22327827}, {'photo_id': 1352921065, 'portfolio_id': 22327827}, {'photo_id': 1352921049, 'portfolio_id': 22327827}, {'photo_id': 1352921047, 'portfolio_id': 22327827}, {'photo_id': 1352920373, 'portfolio_id': 22327827}, {'photo_id': 1352920328, 'portfolio_id': 22327827}, {'photo_id': 1352920326, 'portfolio_id': 22327827}, {'photo_id': 1352920324, 'portfolio_id': 22327827}, {'photo_id': 1352920322, 'portfolio_id': 22327827}, {'photo_id': 1352920320, 'portfolio_id': 22327827}, {'photo_id': 1352920282, 'portfolio_id': 22327827}, {'photo_id': 1352920280, 'portfolio_id': 22327827}] map_portfolio_id_photo_id: {22327827: [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186, 1352921070, 1352921068, 1352921065, 1352921049, 1352921047, 1352920373, 1352920328, 1352920326, 1352920324, 1352920322, 1352920320, 1352920282, 1352920280]} ##### 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.013304948806762695 #### 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 Wed Apr 23 06:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22327827) 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 : 22327827 get user id for portfolio 22327827 get sub ptf for main ptf 22327827, type 3726 and hashtags ['plastique', 'Teint_Dans_La_Masse', 'Carton_gris', 'papier', 'flou', 'cartonnette', 'metal', 'kraft', 'environnement', 'autre_refus', 'Carton_brun', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22327827 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','Carton_gris','papier','flou','cartonnette','metal','kraft','environnement','autre_refus','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22327827 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','Carton_gris','papier','flou','cartonnette','metal','kraft','environnement','autre_refus','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22327827, 'sub_port_id': 22327867, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786128, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'metal': {'main_port_id': 22327827, 'sub_port_id': 22327868, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786129, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'kraft': {'main_port_id': 22327827, 'sub_port_id': 22327869, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786130, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'cartonnette': {'main_port_id': 22327827, 'sub_port_id': 22327870, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786131, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'Carton_gris': {'main_port_id': 22327827, 'sub_port_id': 22327871, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786132, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'mal_croppe': {'main_port_id': 22327827, 'sub_port_id': 22327872, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786133, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'flou': {'main_port_id': 22327827, 'sub_port_id': 22327873, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786134, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'Teint_Dans_La_Masse': {'main_port_id': 22327827, 'sub_port_id': 22327874, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786135, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'papier': {'main_port_id': 22327827, 'sub_port_id': 22327875, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786136, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'plastique': {'main_port_id': 22327827, 'sub_port_id': 22327876, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786137, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'Carton_brun': {'main_port_id': 22327827, 'sub_port_id': 22327877, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786138, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}, 'environnement': {'main_port_id': 22327827, 'sub_port_id': 22327878, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786139, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 48), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 43)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327867 , 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=22327827 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 (22327867) result : ((1352921171,), (1352921471,), (1352921507,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327868 , 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=22327827 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 (22327868) result : ((1352921522,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327869 , 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=22327827 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 (22327869) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327870 , 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=22327827 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 (22327870) result : ((1352921183,), (1352921512,), (1352921514,), (1352921515,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327871 , 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=22327827 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 (22327871) result : ((1352921182,), (1352921473,), (1352921474,), (1352921475,), (1352921509,), (1352921510,), (1352921511,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327872 , 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=22327827 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 (22327872) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327873 , 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=22327827 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 (22327873) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327874 , 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=22327827 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 (22327874) result : ((1352921468,), (1352921469,), (1352921470,), (1352921502,), (1352921503,), (1352921504,), (1352921505,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327875 , 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=22327827 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 (22327875) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327876 , 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=22327827 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 (22327876) result : ((1352921520,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327877 , 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=22327827 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 (22327877) result : ((1352921476,), (1352921478,), (1352921518,), (1352921519,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22327878 , 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=22327827 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 (22327878) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22327827) result : ((1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) 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 (1352921200) and cspi.crop_hashtag_id = chi.id; 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`=22327827 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','Carton_gris','papier','flou','cartonnette','metal','kraft','environnement','autre_refus','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22327827 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','Carton_gris','papier','flou','cartonnette','metal','kraft','environnement','autre_refus','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22327827, 'sub_port_id': 22327879, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786140, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'metal': {'main_port_id': 22327827, 'sub_port_id': 22327880, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786141, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'kraft': {'main_port_id': 22327827, 'sub_port_id': 22327881, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786142, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'cartonnette': {'main_port_id': 22327827, 'sub_port_id': 22327882, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786143, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'Carton_gris': {'main_port_id': 22327827, 'sub_port_id': 22327883, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786144, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'mal_croppe': {'main_port_id': 22327827, 'sub_port_id': 22327884, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786145, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'flou': {'main_port_id': 22327827, 'sub_port_id': 22327885, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786146, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 22327827, 'sub_port_id': 22327886, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786147, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'papier': {'main_port_id': 22327827, 'sub_port_id': 22327887, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786148, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'plastique': {'main_port_id': 22327827, 'sub_port_id': 22327888, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786149, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'Carton_brun': {'main_port_id': 22327827, 'sub_port_id': 22327889, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786150, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}, 'environnement': {'main_port_id': 22327827, 'sub_port_id': 22327890, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786151, 'last_updated_at': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 6, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 6, 35, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327879,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327867 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327880,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327868 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327881,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327869 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327882,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327870 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327883,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327871 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327884,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327872 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327885,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327873 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327874 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327887,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327875 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327888,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327876 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327889,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327877 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22327890,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22327878 lien utilise dans velours : https://www.fotonower.com/velours/22327879,22327880,22327881,22327882,22327883,22327884,22327885,22327886,22327887,22327888,22327889,22327890?tags=autre_refus,metal,kraft,cartonnette,Carton_gris,mal_croppe,flou,Teint_Dans_La_Masse,papier,plastique,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22327827]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186] map_info['map_portfolio_photo'] : {22327827: [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186, 1352921070, 1352921068, 1352921065, 1352921049, 1352921047, 1352920373, 1352920328, 1352920326, 1352920324, 1352920322, 1352920320, 1352920282, 1352920280]} final : False mtd_id 4302 list_pids : [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186] Looping around the photos to save general results len do output : 1 /22327827. 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, '2751479') ('4302', '22327827', '1352921483', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921481', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921477', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921430', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921429', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921428', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921426', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921399', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921398', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921395', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921394', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921351', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921349', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921333', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921200', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921196', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921193', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921190', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921186', None, None, None, None, None, '2751479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '22327827', "{'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878}", None, None, None, None, '2751479'), ('4302', '22327827', '1352921483', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921481', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921477', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921430', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921429', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921428', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921426', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921399', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921398', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921395', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921394', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921351', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921349', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921333', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921200', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921196', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921193', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921190', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921186', None, None, None, None, None, '2751479')] time used for this insertion : 0.01565265655517578 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4695284366607666 time spend to save output : 0.01592111587524414 total time spend for step 1 : 0.48544955253601074 step2:final Wed Apr 23 06:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22327827) 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 22327827 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352920282,1352920280,1352920373,1352920328,1352920326,1352920324,1352920322,1352920320,1352921070,1352921068,1352921065,1352921049,1352921047,1352921200,1352921196,1352921193,1352921190,1352921186,1352921351,1352921349,1352921333,1352921399,1352921398,1352921395,1352921394,1352921430,1352921429,1352921428,1352921426,1352921483,1352921481,1352921477); 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([22327827]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} new output for save of step final : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186] map_info['map_portfolio_photo'] : {22327827: [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186, 1352921070, 1352921068, 1352921065, 1352921049, 1352921047, 1352920373, 1352920328, 1352920326, 1352920324, 1352920322, 1352920320, 1352920282, 1352920280]} final : False mtd_id 4302 list_pids : [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186] Looping around the photos to save general results len do output : 19 /1352921483.Didn't retrieve data . /1352921481.Didn't retrieve data . /1352921477.Didn't retrieve data . /1352921430.Didn't retrieve data . /1352921429.Didn't retrieve data . /1352921428.Didn't retrieve data . /1352921426.Didn't retrieve data . /1352921399.Didn't retrieve data . /1352921398.Didn't retrieve data . /1352921395.Didn't retrieve data . /1352921394.Didn't retrieve data . /1352921351.Didn't retrieve data . /1352921349.Didn't retrieve data . /1352921333.Didn't retrieve data . /1352921200.Didn't retrieve data . /1352921196.Didn't retrieve data . /1352921193.Didn't retrieve data . /1352921190.Didn't retrieve data . /1352921186.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, '2751479') ('4302', '22327827', '1352921483', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921481', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921477', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921430', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921429', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921428', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921426', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921399', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921398', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921395', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921394', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921351', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921349', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921333', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921200', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921196', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921193', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921190', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921186', None, None, None, None, None, '2751479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '22327827', '1352921483', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921481', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921477', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921430', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921429', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921428', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921426', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921399', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921398', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921395', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921394', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921351', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921349', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921333', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921200', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921196', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921193', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921190', '0.060633797216827046', None, None, None, None, '2751479'), ('4302', '22327827', '1352921186', '0.060633797216827046', None, None, None, None, '2751479')] time used for this insertion : 0.014221429824829102 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06396269798278809 time spend to save output : 0.015058040618896484 total time spend for step 2 : 0.07902073860168457 step3:velours_tree Wed Apr 23 06:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22327827: [{'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878}]} input_args_next_step : {22327827: ()} output_args : {22327827: [{'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878}]} args : 22327827 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 : ({'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22327827) 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([22327827]) 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.2841169834136963 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.2841684818267822 step4:send_mail_cod Wed Apr 23 06:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} input_args_next_step : {1352921483: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921483 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921481 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921477 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921430 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921429 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921428 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921426 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921399 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921398 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921395 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921394 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921351 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921349 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921333 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921200 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921196 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921193 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921190 depend.output_id : 0 input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ()} output_args : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',)} args : 1352921186 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 : {22327827: [{'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878}]} input_args_next_step : {1352921483: ('0.060633797216827046',), 1352921481: ('0.060633797216827046',), 1352921477: ('0.060633797216827046',), 1352921430: ('0.060633797216827046',), 1352921429: ('0.060633797216827046',), 1352921428: ('0.060633797216827046',), 1352921426: ('0.060633797216827046',), 1352921399: ('0.060633797216827046',), 1352921398: ('0.060633797216827046',), 1352921395: ('0.060633797216827046',), 1352921394: ('0.060633797216827046',), 1352921351: ('0.060633797216827046',), 1352921349: ('0.060633797216827046',), 1352921333: ('0.060633797216827046',), 1352921200: ('0.060633797216827046',), 1352921196: ('0.060633797216827046',), 1352921193: ('0.060633797216827046',), 1352921190: ('0.060633797216827046',), 1352921186: ('0.060633797216827046',), 22327827: ()} output_args : {22327827: [{'autre_refus': 22327867, 'metal': 22327868, 'kraft': 22327869, 'cartonnette': 22327870, 'Carton_gris': 22327871, 'mal_croppe': 22327872, 'flou': 22327873, 'Teint_Dans_La_Masse': 22327874, 'papier': 22327875, 'plastique': 22327876, 'Carton_brun': 22327877, 'environnement': 22327878}]} args : 22327827 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 :20, first value : ('0.060633797216827046',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22327827) 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 (1352921483,1352921481,1352921477,1352921430,1352921429,1352921428,1352921426,1352921399,1352921398,1352921395,1352921394,1352921351,1352921349,1352921333,1352921200,1352921196,1352921193,1352921190,1352921186) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352921186 begin to download photo : 1352921200 begin to download photo : 1352921394 begin to download photo : 1352921426 begin to download photo : 1352921477 download finish for photo 1352921186 begin to download photo : 1352921190 download finish for photo 1352921394 begin to download photo : 1352921395 download finish for photo 1352921477 begin to download photo : 1352921481 download finish for photo 1352921426 begin to download photo : 1352921428 download finish for photo 1352921200 begin to download photo : 1352921333 download finish for photo 1352921190 begin to download photo : 1352921193 download finish for photo 1352921395 begin to download photo : 1352921398 download finish for photo 1352921428 begin to download photo : 1352921429 download finish for photo 1352921481 begin to download photo : 1352921483 download finish for photo 1352921333 begin to download photo : 1352921349 download finish for photo 1352921398 begin to download photo : 1352921399 download finish for photo 1352921483 download finish for photo 1352921193 begin to download photo : 1352921196 download finish for photo 1352921429 begin to download photo : 1352921430 download finish for photo 1352921349 begin to download photo : 1352921351 download finish for photo 1352921399 download finish for photo 1352921430 download finish for photo 1352921196 download finish for photo 1352921351 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P22327827_23-04-2025_06_38_59.pdf 22327867 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=22327867 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921171: '1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832769_0.png', 1352921471: '1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833686_0.png', 1352921507: '1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833834_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/39d5bdd31845817337004ef85333e478_36980557.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/10de0a47d013572ba063bc4a3eb779b7_62720347.png change filename to text .imagette223278671745383139/ imagette223278671745383139/1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833834_0.png.png imagette223278671745383139/1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833686_0.png.png imagette223278671745383139/1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832769_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a79c093d1b648534827df42e56a9eba9_13586108.png imagette223278671745383139 22327868 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=22327868 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921522: '1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833856_0.png'} change filename to text .imagette223278681745383139/ imagette223278681745383139/1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833856_0.png.png imagette223278691745383139/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/54edcf7faa7a1255bac627136acd5c74_59606098.png imagette223278681745383139 22327869 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=22327869 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223278691745383139 22327870 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=22327870 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921183: '1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832765_0.png', 1352921512: '1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833858_0.png', 1352921514: '1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833853_0.png', 1352921515: '1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833879_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/22a489d6b3550be6e63e02bbb6c8e11c_96592193.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/faee4c1732e362bffa34b21aa651c68a_61054857.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a8acd4eb473a3a6f37571f72bba0b09c_12245258.png change filename to text .imagette223278701745383139/ imagette223278701745383139/1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832765_0.png.png imagette223278701745383139/1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833858_0.png.png imagette223278701745383139/1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833853_0.png.png imagette223278701745383139/1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833879_0.png.png imagette223278721745383139/ imagette223278731745383139/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2a92536c0d0ed0e9ebfea24705aabe16_75484080.png imagette223278701745383139 22327872 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=22327872 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223278721745383139 22327873 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=22327873 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223278731745383139 22327876 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=22327876 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921520: '1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833885_0.png'} change filename to text .imagette223278761745383139/ imagette223278761745383139/1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833885_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/70ee1df2a42e2c1a49bd1c7108430d89_29703470.png imagette223278761745383139 22327871 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=22327871 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921182: '1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832772_0.png', 1352921473: '1745383060_2156381_1352921398_a2f8c42bd3ba34197f0d2b9cd898eb32_rle_crop_3764833663_0.png', 1352921474: '1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833669_0.png', 1352921475: '1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833676_0.png', 1352921509: '1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833831_0.png', 1352921510: '1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833833_0.png', 1352921511: '1745383091_3860637_1352921190_4d9634bb01fc01c8fbc99a86e7f4e677_rle_crop_3764833870_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9c12629a1d3f18e09dc8003ce5b81ec4_85199208.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/242ee45c22660fcf61692d4ed61f668b_95059615.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ff0b82fae23e72eac398e031e082e143_73757651.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cb8d7807c7f0561bf92d158f89eadc70_55390772.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7a9268d5a3fe12a116744e731d3ffb63_11209377.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/19f603bab520192cc7f577872beb9767_53817871.png change filename to text .imagette223278711745383140/ imagette223278711745383140/1745383060_2156381_1352921398_a2f8c42bd3ba34197f0d2b9cd898eb32_rle_crop_3764833663_0.png.png imagette223278711745383140/1745382822_2152432_1352920282_025de5de32b9344b8965ecad66b6488b_rle_crop_3764832772_0.png.png imagette223278711745383140/1745383091_3860637_1352921190_4d9634bb01fc01c8fbc99a86e7f4e677_rle_crop_3764833870_0.png.png imagette223278711745383140/1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833669_0.png.png imagette223278711745383140/1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833831_0.png.png imagette223278711745383140/1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833676_0.png.png imagette223278711745383140/1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833833_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/af594b50b2836a8b30b070e87ac74a22_49384647.png imagette223278711745383140 22327874 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=22327874 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921468: '1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833674_0.png', 1352921469: '1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833683_0.png', 1352921470: '1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833685_0.png', 1352921502: '1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833836_0.png', 1352921503: '1745383091_3860637_1352921190_4d9634bb01fc01c8fbc99a86e7f4e677_rle_crop_3764833868_0.png', 1352921504: '1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833884_0.png', 1352921505: '1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833883_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7c0e250f2207c9ef954c27ea10b25309_47007636.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5fae5b5e2c4f292409494f1436378f69_68576863.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a89e60ed7f00daff9ac87a1cff8c4642_57742107.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c5b25223ea23703eac7d90431b1ba679_42735485.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f7d8cb07de444b53900eed1941f6cbc4_59510262.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/eb2636a357481309623233d97eabf00e_99145861.png change filename to text .imagette223278741745383140/ imagette223278741745383140/1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833883_0.png.png imagette223278741745383140/1745383091_3860637_1352921190_4d9634bb01fc01c8fbc99a86e7f4e677_rle_crop_3764833868_0.png.png imagette223278741745383140/1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833674_0.png.png imagette223278741745383140/1745383091_3860637_1352921186_4b349e746ce52684cd8db3e4f284c359_rle_crop_3764833884_0.png.png imagette223278741745383140/1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833683_0.png.png imagette223278741745383140/1745383060_2156381_1352921394_71afe728a3cc5e2f4635a46677838607_rle_crop_3764833685_0.png.png imagette223278741745383140/1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833836_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/819f4170ac4d6d9bc4c7a395d050367e_65533841.png imagette223278741745383140 22327877 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=22327877 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352921476: '1745383060_2156381_1352921398_a2f8c42bd3ba34197f0d2b9cd898eb32_rle_crop_3764833660_0.png', 1352921478: '1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833671_0.png', 1352921518: '1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833841_0.png', 1352921519: '1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833854_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8a288c3d849edaad038d37b4173e6a69_72910367.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e8e9f08d37145dd7e4cdaaf729b32fbb_64812147.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ee805a3abbd45ae0d8fa4b47755c6a3e_90521153.png change filename to text .imagette223278771745383140/ imagette223278771745383140/1745383060_2156381_1352921395_3c5f4a238c774f32b2f829da71519ca9_rle_crop_3764833671_0.png.png imagette223278771745383140/1745383060_2156381_1352921398_a2f8c42bd3ba34197f0d2b9cd898eb32_rle_crop_3764833660_0.png.png imagette223278771745383140/1745383091_3860637_1352921193_7c162fe2e280e65f66c73c71855f0ea8_rle_crop_3764833854_0.png.png imagette223278771745383140/1745383091_3860637_1352921196_2000cca51d0bc0795511e77b245ed4b1_rle_crop_3764833841_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/864f2dfe6317ca18dfc2b49b3d00bd55_32807295.png imagette223278771745383140 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22327827 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22327879,22327880,22327881,22327882,22327883,22327884,22327885,22327886,22327887,22327888,22327889,22327890?tags=autre_refus,metal,kraft,cartonnette,Carton_gris,mal_croppe,flou,Teint_Dans_La_Masse,papier,plastique,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1352921483] : ('0.060633797216827046',) no score found for photo 1352921483 We are sending mail with results at report@fotonower.com args[1352921481] : ('0.060633797216827046',) no score found for photo 1352921481 We are sending mail with results at report@fotonower.com args[1352921477] : ('0.060633797216827046',) no score found for photo 1352921477 We are sending mail with results at report@fotonower.com args[1352921430] : ('0.060633797216827046',) no score found for photo 1352921430 We are sending mail with results at report@fotonower.com args[1352921429] : ('0.060633797216827046',) no score found for photo 1352921429 We are sending mail with results at report@fotonower.com args[1352921428] : ('0.060633797216827046',) no score found for photo 1352921428 We are sending mail with results at report@fotonower.com args[1352921426] : ('0.060633797216827046',) no score found for photo 1352921426 We are sending mail with results at report@fotonower.com args[1352921399] : ('0.060633797216827046',) no score found for photo 1352921399 We are sending mail with results at report@fotonower.com args[1352921398] : ('0.060633797216827046',) no score found for photo 1352921398 We are sending mail with results at report@fotonower.com args[1352921395] : ('0.060633797216827046',) no score found for photo 1352921395 We are sending mail with results at report@fotonower.com args[1352921394] : ('0.060633797216827046',) no score found for photo 1352921394 We are sending mail with results at report@fotonower.com args[1352921351] : ('0.060633797216827046',) no score found for photo 1352921351 We are sending mail with results at report@fotonower.com args[1352921349] : ('0.060633797216827046',) no score found for photo 1352921349 We are sending mail with results at report@fotonower.com args[1352921333] : ('0.060633797216827046',) no score found for photo 1352921333 We are sending mail with results at report@fotonower.com args[1352921200] : ('0.060633797216827046',) no score found for photo 1352921200 We are sending mail with results at report@fotonower.com args[1352921196] : ('0.060633797216827046',) no score found for photo 1352921196 We are sending mail with results at report@fotonower.com args[1352921193] : ('0.060633797216827046',) no score found for photo 1352921193 We are sending mail with results at report@fotonower.com args[1352921190] : ('0.060633797216827046',) no score found for photo 1352921190 We are sending mail with results at report@fotonower.com args[1352921186] : ('0.060633797216827046',) no score found for photo 1352921186 We are sending mail with results at report@fotonower.com refus_total : 0.060633797216827046 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=22327827 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_P22327827_23-04-2025_06_38_59.pdf results_Auto_P22327827_23-04-2025_06_38_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_38_59.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','22327827','results_Auto_P22327827_23-04-2025_06_38_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_38_59.pdf','pdf','','0.23','0.060633797216827046') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22327827]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186] map_info['map_portfolio_photo'] : {22327827: [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186, 1352921070, 1352921068, 1352921065, 1352921049, 1352921047, 1352920373, 1352920328, 1352920326, 1352920324, 1352920322, 1352920320, 1352920282, 1352920280]} final : False mtd_id 4302 list_pids : [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186] 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, '2751479') ('4302', '22327827', '1352921483', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921481', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921477', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921430', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921429', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921428', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921426', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921399', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921398', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921395', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921394', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921351', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921349', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921333', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921200', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921196', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921193', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921190', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921186', None, None, None, None, None, '2751479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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', '22327827', '1352921483', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921481', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921477', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921430', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921429', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921428', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921426', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921399', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921398', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921395', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921394', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921351', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921349', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921333', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921200', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921196', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921193', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921190', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921186', None, None, None, None, None, '2751479')] time used for this insertion : 0.014674901962280273 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7323074340820312 time spend to save output : 0.014950990676879883 total time spend for step 4 : 3.747258424758911 step5:split_time_score Wed Apr 23 06:39:02 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 : ['22327827'] 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 : [('22327827',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22327827) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352921477: {'path': 'temp/1745383138_4061630_1352921477_adb103929da6835c132868867ca7161e.jpg', 'extension': 'jpg'}, 1352921481: {'path': 'temp/1745383138_4061630_1352921481_194ceeb474bf403744b8b3cdf5c9702d.jpg', 'extension': 'jpg'}, 1352921483: {'path': 'temp/1745383138_4061630_1352921483_29ff6628a948d589d444b17b76fb408b.jpg', 'extension': 'jpg'}, 1352921394: {'path': 'temp/1745383138_4061630_1352921394_71afe728a3cc5e2f4635a46677838607.jpg', 'extension': 'jpg'}, 1352921395: {'path': 'temp/1745383138_4061630_1352921395_3c5f4a238c774f32b2f829da71519ca9.jpg', 'extension': 'jpg'}, 1352921398: {'path': 'temp/1745383138_4061630_1352921398_a2f8c42bd3ba34197f0d2b9cd898eb32.jpg', 'extension': 'jpg'}, 1352921399: {'path': 'temp/1745383138_4061630_1352921399_4abf2c93869aa3a7072db40d1bffc718.jpg', 'extension': 'jpg'}, 1352921426: {'path': 'temp/1745383138_4061630_1352921426_43008fed923f53ec76e689a21eb0582a.jpg', 'extension': 'jpg'}, 1352921428: {'path': 'temp/1745383138_4061630_1352921428_34461495367c13d28b3df11813429c47.jpg', 'extension': 'jpg'}, 1352921429: {'path': 'temp/1745383138_4061630_1352921429_435062c05f08c819eacdba80c8b3bd71.jpg', 'extension': 'jpg'}, 1352921430: {'path': 'temp/1745383138_4061630_1352921430_e2d2456fec8756dd4913d686f6e32415.jpg', 'extension': 'jpg'}, 1352921186: {'path': 'temp/1745383138_4061630_1352921186_4b349e746ce52684cd8db3e4f284c359.jpg', 'extension': 'jpg'}, 1352921190: {'path': 'temp/1745383138_4061630_1352921190_4d9634bb01fc01c8fbc99a86e7f4e677.jpg', 'extension': 'jpg'}, 1352921193: {'path': 'temp/1745383138_4061630_1352921193_7c162fe2e280e65f66c73c71855f0ea8.jpg', 'extension': 'jpg'}, 1352921196: {'path': 'temp/1745383138_4061630_1352921196_2000cca51d0bc0795511e77b245ed4b1.jpg', 'extension': 'jpg'}, 1352921200: {'path': 'temp/1745383138_4061630_1352921200_3bf57ea938ec24bc4623b97592e59778.jpg', 'extension': 'jpg'}, 1352921333: {'path': 'temp/1745383138_4061630_1352921333_ec1f79d0e7a643d7496eed6fe249f1cf.jpg', 'extension': 'jpg'}, 1352921349: {'path': 'temp/1745383138_4061630_1352921349_2e07211e635b4d0d7c00cf9d42b94e57.jpg', 'extension': 'jpg'}, 1352921351: {'path': 'temp/1745383138_4061630_1352921351_185c6d194225962037ebbc96df312d96.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 = 22327827; (('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 = 22327827 group by h (('06', 32),) 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=22327827 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 (22327827) 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 (22327827) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22327827 Nombre de photos uploadées : 32 / 23040 (0%) 23042025 22327827 Nombre de photos taguées (types de déchets): 0 / 32 (0%) 23042025 22327827 Nombre de photos taguées (volume) : 0 / 32 (0%) [{'photo_id': 1352920282, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/025de5de32b9344b8965ecad66b6488b.jpg', 'username': None, 'uploaded_at': 1745382667, 'text': 'image_23042025_06_30_13_010143m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1352920280, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/555f21d427385712f57f25086523199c.jpg', 'username': None, 'uploaded_at': 1745382667, 'text': 'image_23042025_06_30_23_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352920373, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b58a2af616789b52a5062dfe58f18663.jpg', 'username': None, 'uploaded_at': 1745382727, 'text': 'image_23042025_06_30_54_10135.jpg'}, {'photo_id': 1352920328, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7f618cc0611be50d3a0799c9f42e04de.jpg', 'username': None, 'uploaded_at': 1745382727, 'text': 'image_23042025_06_31_03_9174.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ???????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024993419647216797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22327827, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022739410400390625 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= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747882, 'mtr_portfolio_id': 22326303, 'dashboard_result_id': 10038166, '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_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747882, 'mtr_portfolio_id': 22326686, 'dashboard_result_id': 10038167, '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_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747882, 'mtr_portfolio_id': 22327416, 'dashboard_result_id': 10038168, '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_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747882, 'mtr_portfolio_id': 22327827, 'dashboard_result_id': 10038169, '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_P22327827_23-04-2025_06_35_50.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, '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 = 22326303 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': 2751328, 'mtr_portfolio_id': 22326303, 'created_at': datetime.datetime(2025, 4, 23, 6, 2, 59), 'result': '0.0705016942968641', 'result_long': None, 'result_double': None}] Qualite : 0.0705016942968641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326303 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_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, 'pht': 3726}}" where mtr_portfolio_id = 22326303 and dashboard_run_id = 1747882 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`=22326303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038166, 0.0705016942968641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326303_23-04-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326315, '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 = 22326686 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': 2751380, 'mtr_portfolio_id': 22326686, 'created_at': datetime.datetime(2025, 4, 23, 6, 20, 58), 'result': '0.08849670839449893', 'result_long': None, 'result_double': None}] Qualite : 0.08849670839449893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22326686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22326686 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_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, 'pht': 3726}}" where mtr_portfolio_id = 22326686 and dashboard_run_id = 1747882 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`=22326686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038167, 0.08849670839449893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22326686_23-04-2025_06_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22326758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22326759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22326760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22326761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22326762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22326763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22326764, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22326765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22326766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22326767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22326768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22326769, '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 = 22327416 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': 2751439, 'mtr_portfolio_id': 22327416, 'created_at': datetime.datetime(2025, 4, 23, 6, 34, 58), 'result': '0.06719231217388424', 'result_long': None, 'result_double': None}] Qualite : 0.06719231217388424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327416 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_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}" where mtr_portfolio_id = 22327416 and dashboard_run_id = 1747882 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`=22327416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038168, 0.06719231217388424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, '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 = 22327827 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': 2751479, 'mtr_portfolio_id': 22327827, 'created_at': datetime.datetime(2025, 4, 23, 6, 38, 58), 'result': '0.060633797216827046', 'result_long': None, 'result_double': None}] Qualite : 0.060633797216827046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_38_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327827 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_P22327827_23-04-2025_06_38_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}" where mtr_portfolio_id = 22327827 and dashboard_run_id = 1747882 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`=22327827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038169, 0.060633797216827046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_38_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, '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 (22326303,22326686,22327416,22327827) result : ((1352916298,), (1352916303,), (1352916305,), (1352916352,), (1352916355,), (1352916357,), (1352916359,), (1352916363,), (1352916367,), (1352916390,), (1352916393,), (1352916396,), (1352916400,), (1352916434,), (1352916436,), (1352916438,), (1352916440,), (1352916442,), (1352916446,), (1352916472,), (1352916475,), (1352916478,), (1352916481,), (1352916484,), (1352916487,), (1352916532,), (1352916535,), (1352916537,), (1352916570,), (1352916572,), (1352916574,), (1352916576,), (1352916579,), (1352916610,), (1352916612,), (1352916613,), (1352916614,), (1352916615,), (1352916649,), (1352916656,), (1352916658,), (1352916660,), (1352916694,), (1352916695,), (1352916696,), (1352916697,), (1352916700,), (1352916703,), (1352916747,), (1352916749,), (1352916751,), (1352916753,), (1352916796,), (1352916798,), (1352916799,), (1352916800,), (1352916842,), (1352916847,), (1352916853,), (1352916856,), (1352916859,), (1352916860,), (1352917651,), (1352917699,), (1352917740,), (1352917773,), (1352917891,), (1352917944,), (1352918010,), (1352918087,), (1352918134,), (1352918466,), (1352918346,), (1352918398,), (1352918431,), (1352918642,), (1352918670,), (1352918701,), (1352918726,), (1352918756,), (1352918871,), (1352918872,), (1352918873,), (1352918874,), (1352918876,), (1352918879,), (1352918909,), (1352918912,), (1352918914,), (1352918916,), (1352918953,), (1352918954,), (1352918956,), (1352918957,), (1352918961,), (1352918964,), (1352918989,), (1352918992,), (1352918995,), (1352918997,), (1352919024,), (1352919025,), (1352919061,), (1352919064,), (1352919067,), (1352919072,), (1352919075,), (1352919120,), (1352919121,), (1352919122,), (1352919123,), (1352919125,), (1352919128,), (1352919180,), (1352919189,), (1352919193,), (1352919197,), (1352919202,), (1352919254,), (1352919257,), (1352919258,), (1352919259,), (1352919260,), (1352919262,), (1352919317,), (1352919319,), (1352919325,), (1352919363,), (1352919364,), (1352919365,), (1352919366,), (1352919367,), (1352919370,), (1352919417,), (1352919420,), (1352919422,), (1352919424,), (1352919426,), (1352919429,), (1352919476,), (1352919477,), (1352919479,), (1352919480,), (1352919483,), (1352919543,), (1352919532,), (1352919534,), (1352919536,), (1352919538,), (1352919541,), (1352919580,), (1352919587,), (1352919589,), (1352919591,), (1352919594,), (1352919652,), (1352919660,), (1352919662,), (1352919664,), (1352919698,), (1352919699,), (1352919701,), (1352919703,), (1352919706,), (1352919708,), (1352919756,), (1352919768,), (1352919771,), (1352919773,), (1352919835,), (1352919836,), (1352919837,), (1352919838,), (1352919841,), (1352919843,), (1352919876,), (1352919878,), (1352919880,), (1352919882,), (1352919926,), (1352919927,), (1352919928,), (1352919929,), (1352919930,), (1352919933,), (1352919969,), (1352919974,), (1352919977,), (1352919979,), (1352920010,), (1352920011,), (1352920012,), (1352920013,), (1352920016,), (1352920046,), (1352920048,), (1352920051,), (1352920053,), (1352920056,), (1352920058,), (1352920086,), (1352920087,), (1352920089,), (1352920090,), (1352920119,), (1352920126,), (1352920133,), (1352920137,), (1352920171,), (1352920173,), (1352920174,), (1352920175,), (1352920176,), (1352920218,), (1352920224,), (1352920226,), (1352920228,), (1352920283,), (1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'nb_upload': 32, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22327827]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186] map_info['map_portfolio_photo'] : {22327827: [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186, 1352921070, 1352921068, 1352921065, 1352921049, 1352921047, 1352920373, 1352920328, 1352920326, 1352920324, 1352920322, 1352920320, 1352920282, 1352920280]} final : True mtd_id 4302 list_pids : [1352921483, 1352921481, 1352921477, 1352921430, 1352921429, 1352921428, 1352921426, 1352921399, 1352921398, 1352921395, 1352921394, 1352921351, 1352921349, 1352921333, 1352921200, 1352921196, 1352921193, 1352921190, 1352921186] Looping around the photos to save general results len do output : 1 /22327827Didn'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, '2751479') ('4302', '22327827', '1352921483', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921481', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921477', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921430', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921429', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921428', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921426', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921399', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921398', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921395', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921394', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921351', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921349', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921333', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921200', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921196', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921193', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921190', None, None, None, None, None, '2751479') ('4302', None, None, None, None, None, None, None, '2751479') ('4302', '22327827', '1352921186', None, None, None, None, None, '2751479') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '22327827', 'None', None, None, None, None, '2751479'), ('4302', '22327827', '1352921483', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921481', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921477', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921430', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921429', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921428', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921426', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921399', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921398', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921395', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921394', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921351', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921349', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921333', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921200', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921196', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921193', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921190', None, None, None, None, None, '2751479'), ('4302', '22327827', '1352921186', None, None, None, None, None, '2751479')] time used for this insertion : 0.01518702507019043 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3306128978729248 time spend to save output : 0.01540827751159668 total time spend for step 5 : 0.3460211753845215 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 (2751479) 2.38user 2.42system 0:07.04elapsed 68%CPU (0avgtext+0avgdata 160136maxresident)k 2416inputs+14664outputs (11major+75213minor)pagefaults 0swaps