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 : 2686575 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 (4287387) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4287387) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797610 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4287387'] with mtr_portfolio_ids : ['29797610'] and first list_photo_ids : [] new path : /proc/2686575/ Name: python3 Umask: 0002 State: R (running) Tgid: 2686575 Ngid: 0 Pid: 2686575 PPid: 2686574 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2686575 NSpid: 2686575 NSpgid: 2684878 NSsid: 2684878 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105268 kB VmRSS: 105268 kB RssAnon: 66304 kB RssFile: 38964 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2686575', 'Ngid': '0', 'Pid': '2686575', 'PPid': '2686574', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2686575', 'NSpid': '2686575', 'NSpgid': '2684878', 'NSsid': '2684878', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105268 kB', 'VmRSS': '105268 kB', 'RssAnon': '66304 kB', 'RssFile': '38964 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '2686575', '1113364', '0', '1113364', '872092', '105268', b'', 'marlene', '4287387') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29797610) 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 (4287387 ) ) 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 (29797610) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401650487, 'portfolio_id': 29797610}, {'photo_id': 1401650484, 'portfolio_id': 29797610}, {'photo_id': 1401650481, 'portfolio_id': 29797610}, {'photo_id': 1401650474, 'portfolio_id': 29797610}, {'photo_id': 1401650469, 'portfolio_id': 29797610}, {'photo_id': 1401650467, 'portfolio_id': 29797610}, {'photo_id': 1401650453, 'portfolio_id': 29797610}, {'photo_id': 1401650451, 'portfolio_id': 29797610}, {'photo_id': 1401650449, 'portfolio_id': 29797610}, {'photo_id': 1401650447, 'portfolio_id': 29797610}, {'photo_id': 1401650445, 'portfolio_id': 29797610}, {'photo_id': 1401650443, 'portfolio_id': 29797610}, {'photo_id': 1401650434, 'portfolio_id': 29797610}, {'photo_id': 1401650430, 'portfolio_id': 29797610}, {'photo_id': 1401650425, 'portfolio_id': 29797610}, {'photo_id': 1401650421, 'portfolio_id': 29797610}, {'photo_id': 1401650417, 'portfolio_id': 29797610}, {'photo_id': 1401650413, 'portfolio_id': 29797610}, {'photo_id': 1401650384, 'portfolio_id': 29797610}, {'photo_id': 1401650380, 'portfolio_id': 29797610}, {'photo_id': 1401650372, 'portfolio_id': 29797610}, {'photo_id': 1401650369, 'portfolio_id': 29797610}, {'photo_id': 1401650365, 'portfolio_id': 29797610}, {'photo_id': 1401650363, 'portfolio_id': 29797610}, {'photo_id': 1401650347, 'portfolio_id': 29797610}, {'photo_id': 1401650345, 'portfolio_id': 29797610}, {'photo_id': 1401650342, 'portfolio_id': 29797610}, {'photo_id': 1401650338, 'portfolio_id': 29797610}, {'photo_id': 1401650335, 'portfolio_id': 29797610}, {'photo_id': 1401650332, 'portfolio_id': 29797610}, {'photo_id': 1401650300, 'portfolio_id': 29797610}, {'photo_id': 1401650299, 'portfolio_id': 29797610}] map_portfolio_id_photo_id: {29797610: [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413, 1401650384, 1401650380, 1401650372, 1401650369, 1401650365, 1401650363, 1401650347, 1401650345, 1401650342, 1401650338, 1401650335, 1401650332, 1401650300, 1401650299]} ##### 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.019058942794799805 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Dec 30 10:36:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29797610) 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 : 29797610 get user id for portfolio 29797610 get sub ptf for main ptf 29797610, type 3726 and hashtags ['metal', 'Carton_gris', 'environnement', 'mal_croppe', 'Teint_Dans_La_Masse', 'plastique', 'papier', 'Carton_brun', 'kraft', 'autre_refus', 'cartonnette', 'flou'] 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`=29797610 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','environnement','mal_croppe','Teint_Dans_La_Masse','plastique','papier','Carton_brun','kraft','autre_refus','cartonnette','flou')) 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`=29797610 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','environnement','mal_croppe','Teint_Dans_La_Masse','plastique','papier','Carton_brun','kraft','autre_refus','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29797610, 'sub_port_id': 29797618, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374236, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'environnement': {'main_port_id': 29797610, 'sub_port_id': 29797619, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374237, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'cartonnette': {'main_port_id': 29797610, 'sub_port_id': 29797620, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374238, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'metal': {'main_port_id': 29797610, 'sub_port_id': 29797621, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374239, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'Carton_gris': {'main_port_id': 29797610, 'sub_port_id': 29797622, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374240, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'mal_croppe': {'main_port_id': 29797610, 'sub_port_id': 29797623, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374241, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29797610, 'sub_port_id': 29797624, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374242, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'Carton_brun': {'main_port_id': 29797610, 'sub_port_id': 29797625, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374243, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'kraft': {'main_port_id': 29797610, 'sub_port_id': 29797626, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374244, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'autre_refus': {'main_port_id': 29797610, 'sub_port_id': 29797627, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374245, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'plastique': {'main_port_id': 29797610, 'sub_port_id': 29797628, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374246, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'papier': {'main_port_id': 29797610, 'sub_port_id': 29797629, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374247, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29797618 , 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=29797610 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 (29797618) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797619 , 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=29797610 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 (29797619) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797620 , 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=29797610 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 (29797620) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797621 , 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=29797610 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 (29797621) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797622 , 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=29797610 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 (29797622) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797623 , 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=29797610 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 (29797623) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797624 , 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=29797610 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 (29797624) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797625 , 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=29797610 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 (29797625) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797626 , 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=29797610 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 (29797626) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797627 , 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=29797610 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 (29797627) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797628 , 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=29797610 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 (29797628) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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 29797629 , 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=29797610 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 (29797629) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29797610) result : ((1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) 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 (1401650300) 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`=29797610 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','environnement','mal_croppe','Teint_Dans_La_Masse','plastique','papier','Carton_brun','kraft','autre_refus','cartonnette','flou')) 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`=29797610 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','environnement','mal_croppe','Teint_Dans_La_Masse','plastique','papier','Carton_brun','kraft','autre_refus','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29797610, 'sub_port_id': 29797630, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374248, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'environnement': {'main_port_id': 29797610, 'sub_port_id': 29797631, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374249, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'cartonnette': {'main_port_id': 29797610, 'sub_port_id': 29797632, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374250, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'metal': {'main_port_id': 29797610, 'sub_port_id': 29797633, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374251, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'Carton_gris': {'main_port_id': 29797610, 'sub_port_id': 29797634, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374252, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'mal_croppe': {'main_port_id': 29797610, 'sub_port_id': 29797635, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374253, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29797610, 'sub_port_id': 29797636, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374254, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'Carton_brun': {'main_port_id': 29797610, 'sub_port_id': 29797637, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374255, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'kraft': {'main_port_id': 29797610, 'sub_port_id': 29797638, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374256, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'autre_refus': {'main_port_id': 29797610, 'sub_port_id': 29797639, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374257, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'plastique': {'main_port_id': 29797610, 'sub_port_id': 29797640, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374258, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}, 'papier': {'main_port_id': 29797610, 'sub_port_id': 29797641, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20374259, 'last_updated_at': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 10, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 10, 32, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797630,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797618 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797631,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797619 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797632,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797620 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797633,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797621 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797634,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797622 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797635,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797623 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797624 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797625 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797638,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797626 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797639,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797627 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797640,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797628 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29797641,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29797629 lien utilise dans velours : https://marlene.fotonower.com/velours/29797630,29797631,29797632,29797633,29797634,29797635,29797636,29797637,29797638,29797639,29797640,29797641?tags=flou,environnement,cartonnette,metal,Carton_gris,mal_croppe,Teint_Dans_La_Masse,Carton_brun,kraft,autre_refus,plastique,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29797610]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413] map_info['map_portfolio_photo'] : {29797610: [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413, 1401650384, 1401650380, 1401650372, 1401650369, 1401650365, 1401650363, 1401650347, 1401650345, 1401650342, 1401650338, 1401650335, 1401650332, 1401650300, 1401650299]} final : False mtd_id 4302 list_pids : [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413] Looping around the photos to save general results len do output : 1 /29797610. 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, '4287387') ('4302', '29797610', '1401650487', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650484', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650481', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650474', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650469', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650467', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650453', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650451', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650449', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650447', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650445', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650443', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650434', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650430', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650425', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650421', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650417', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650413', None, None, None, None, None, '4287387') 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', None, '29797610', "{'flou': 29797618, 'environnement': 29797619, 'cartonnette': 29797620, 'metal': 29797621, 'Carton_gris': 29797622, 'mal_croppe': 29797623, 'Teint_Dans_La_Masse': 29797624, 'Carton_brun': 29797625, 'kraft': 29797626, 'autre_refus': 29797627, 'plastique': 29797628, 'papier': 29797629}", None, None, None, None, '4287387'), ('4302', '29797610', '1401650487', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650484', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650481', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650474', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650469', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650467', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650453', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650451', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650449', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650447', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650445', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650443', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650434', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650430', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650425', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650421', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650417', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650413', None, None, None, None, None, '4287387')] time used for this insertion : 0.01662588119506836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.503671407699585 time spend to save output : 0.016952991485595703 total time spend for step 1 : 0.5206243991851807 step2:final Tue Dec 30 10:36: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 (29797610) 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 29797610 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401650300,1401650299,1401650347,1401650345,1401650453,1401650342,1401650451,1401650449,1401650338,1401650447,1401650335,1401650384,1401650332,1401650445,1401650380,1401650443,1401650372,1401650434,1401650369,1401650430,1401650365,1401650425,1401650421,1401650363,1401650417,1401650413,1401650487,1401650484,1401650481,1401650474,1401650469,1401650467); 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([29797610]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} new output for save of step final : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413] map_info['map_portfolio_photo'] : {29797610: [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413, 1401650384, 1401650380, 1401650372, 1401650369, 1401650365, 1401650363, 1401650347, 1401650345, 1401650342, 1401650338, 1401650335, 1401650332, 1401650300, 1401650299]} final : False mtd_id 4302 list_pids : [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413] Looping around the photos to save general results len do output : 18 /1401650487.Didn't retrieve data . /1401650484.Didn't retrieve data . /1401650481.Didn't retrieve data . /1401650474.Didn't retrieve data . /1401650469.Didn't retrieve data . /1401650467.Didn't retrieve data . /1401650453.Didn't retrieve data . /1401650451.Didn't retrieve data . /1401650449.Didn't retrieve data . /1401650447.Didn't retrieve data . /1401650445.Didn't retrieve data . /1401650443.Didn't retrieve data . /1401650434.Didn't retrieve data . /1401650430.Didn't retrieve data . /1401650425.Didn't retrieve data . /1401650421.Didn't retrieve data . /1401650417.Didn't retrieve data . /1401650413.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, '4287387') ('4302', '29797610', '1401650487', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650484', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650481', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650474', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650469', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650467', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650453', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650451', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650449', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650447', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650445', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650443', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650434', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650430', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650425', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650421', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650417', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650413', None, None, None, None, None, '4287387') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '29797610', '1401650487', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650484', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650481', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650474', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650469', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650467', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650453', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650451', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650449', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650447', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650445', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650443', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650434', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650430', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650425', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650421', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650417', '0.0', None, None, None, None, '4287387'), ('4302', '29797610', '1401650413', '0.0', None, None, None, None, '4287387')] time used for this insertion : 0.016393423080444336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07892560958862305 time spend to save output : 0.017180204391479492 total time spend for step 2 : 0.09610581398010254 step3:velours_tree Tue Dec 30 10:36: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 : {29797610: [{'flou': 29797618, 'environnement': 29797619, 'cartonnette': 29797620, 'metal': 29797621, 'Carton_gris': 29797622, 'mal_croppe': 29797623, 'Teint_Dans_La_Masse': 29797624, 'Carton_brun': 29797625, 'kraft': 29797626, 'autre_refus': 29797627, 'plastique': 29797628, 'papier': 29797629}]} input_args_next_step : {29797610: ()} output_args : {29797610: [{'flou': 29797618, 'environnement': 29797619, 'cartonnette': 29797620, 'metal': 29797621, 'Carton_gris': 29797622, 'mal_croppe': 29797623, 'Teint_Dans_La_Masse': 29797624, 'Carton_brun': 29797625, 'kraft': 29797626, 'autre_refus': 29797627, 'plastique': 29797628, 'papier': 29797629}]} args : 29797610 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 29797618, 'environnement': 29797619, 'cartonnette': 29797620, 'metal': 29797621, 'Carton_gris': 29797622, 'mal_croppe': 29797623, 'Teint_Dans_La_Masse': 29797624, 'Carton_brun': 29797625, 'kraft': 29797626, 'autre_refus': 29797627, 'plastique': 29797628, 'papier': 29797629},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29797610) 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([29797610]) 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.2409837245941162 time spend to save output : 5.078315734863281e-05 total time spend for step 3 : 0.24103450775146484 step4:send_mail_cod Tue Dec 30 10:36: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 : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} input_args_next_step : {1401650487: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650487 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650484 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650481 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650474 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650469 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650467 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650453 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650451 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650449 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650447 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650445 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650443 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650434 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650430 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650425 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650421 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650417 depend.output_id : 0 input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ()} output_args : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',)} args : 1401650413 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 : {29797610: [{'flou': 29797618, 'environnement': 29797619, 'cartonnette': 29797620, 'metal': 29797621, 'Carton_gris': 29797622, 'mal_croppe': 29797623, 'Teint_Dans_La_Masse': 29797624, 'Carton_brun': 29797625, 'kraft': 29797626, 'autre_refus': 29797627, 'plastique': 29797628, 'papier': 29797629}]} input_args_next_step : {1401650487: ('0.0',), 1401650484: ('0.0',), 1401650481: ('0.0',), 1401650474: ('0.0',), 1401650469: ('0.0',), 1401650467: ('0.0',), 1401650453: ('0.0',), 1401650451: ('0.0',), 1401650449: ('0.0',), 1401650447: ('0.0',), 1401650445: ('0.0',), 1401650443: ('0.0',), 1401650434: ('0.0',), 1401650430: ('0.0',), 1401650425: ('0.0',), 1401650421: ('0.0',), 1401650417: ('0.0',), 1401650413: ('0.0',), 29797610: ()} output_args : {29797610: [{'flou': 29797618, 'environnement': 29797619, 'cartonnette': 29797620, 'metal': 29797621, 'Carton_gris': 29797622, 'mal_croppe': 29797623, 'Teint_Dans_La_Masse': 29797624, 'Carton_brun': 29797625, 'kraft': 29797626, 'autre_refus': 29797627, 'plastique': 29797628, 'papier': 29797629}]} args : 29797610 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 :19, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29797610) 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_view ph WHERE photo_id IN (1401650487,1401650484,1401650481,1401650474,1401650469,1401650467,1401650453,1401650451,1401650449,1401650447,1401650445,1401650443,1401650434,1401650430,1401650425,1401650421,1401650417,1401650413) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401650413 begin to download photo : 1401650430 begin to download photo : 1401650447 begin to download photo : 1401650467 begin to download photo : 1401650484 download finish for photo 1401650467 begin to download photo : 1401650469 download finish for photo 1401650447 begin to download photo : 1401650449 download finish for photo 1401650413 begin to download photo : 1401650417 download finish for photo 1401650484 begin to download photo : 1401650487 download finish for photo 1401650430 begin to download photo : 1401650434 download finish for photo 1401650469 begin to download photo : 1401650474 download finish for photo 1401650449 begin to download photo : 1401650451 download finish for photo 1401650417 begin to download photo : 1401650421 download finish for photo 1401650487 download finish for photo 1401650434 begin to download photo : 1401650443 download finish for photo 1401650451 begin to download photo : 1401650453 download finish for photo 1401650421 begin to download photo : 1401650425 download finish for photo 1401650474 begin to download photo : 1401650481 download finish for photo 1401650443 begin to download photo : 1401650445 download finish for photo 1401650453 download finish for photo 1401650425 download finish for photo 1401650481 download finish for photo 1401650445 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette297976181767087419/ imagette297976201767087419/ imagette297976211767087419/ imagette297976231767087419/ imagette297976261767087419/ imagette297976271767087419/ imagette297976281767087419/ imagette297976221767087419/ imagette297976241767087419/ imagette297976251767087419/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P29797610_30-12-2025_10_36_59.pdf 29797618 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797618 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297976181767087419 29797620 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797620 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297976201767087419 29797621 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797621 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297976211767087419 29797623 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797623 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297976231767087419 29797626 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797626 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297976261767087419 29797627 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797627 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297976271767087419 29797628 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797628 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297976281767087419 29797622 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797622 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297976221767087419 29797624 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797624 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297976241767087419 29797625 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797625 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297976251767087419 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29797610 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29797630,29797631,29797632,29797633,29797634,29797635,29797636,29797637,29797638,29797639,29797640,29797641?tags=flou,environnement,cartonnette,metal,Carton_gris,mal_croppe,Teint_Dans_La_Masse,Carton_brun,kraft,autre_refus,plastique,papier your option no_mail is active, we will not send the real mail to your client args[1401650487] : ('0.0',) no score found for photo 1401650487 We are sending mail with results at report@fotonower.com args[1401650484] : ('0.0',) no score found for photo 1401650484 We are sending mail with results at report@fotonower.com args[1401650481] : ('0.0',) no score found for photo 1401650481 We are sending mail with results at report@fotonower.com args[1401650474] : ('0.0',) no score found for photo 1401650474 We are sending mail with results at report@fotonower.com args[1401650469] : ('0.0',) no score found for photo 1401650469 We are sending mail with results at report@fotonower.com args[1401650467] : ('0.0',) no score found for photo 1401650467 We are sending mail with results at report@fotonower.com args[1401650453] : ('0.0',) no score found for photo 1401650453 We are sending mail with results at report@fotonower.com args[1401650451] : ('0.0',) no score found for photo 1401650451 We are sending mail with results at report@fotonower.com args[1401650449] : ('0.0',) no score found for photo 1401650449 We are sending mail with results at report@fotonower.com args[1401650447] : ('0.0',) no score found for photo 1401650447 We are sending mail with results at report@fotonower.com args[1401650445] : ('0.0',) no score found for photo 1401650445 We are sending mail with results at report@fotonower.com args[1401650443] : ('0.0',) no score found for photo 1401650443 We are sending mail with results at report@fotonower.com args[1401650434] : ('0.0',) no score found for photo 1401650434 We are sending mail with results at report@fotonower.com args[1401650430] : ('0.0',) no score found for photo 1401650430 We are sending mail with results at report@fotonower.com args[1401650425] : ('0.0',) no score found for photo 1401650425 We are sending mail with results at report@fotonower.com args[1401650421] : ('0.0',) no score found for photo 1401650421 We are sending mail with results at report@fotonower.com args[1401650417] : ('0.0',) no score found for photo 1401650417 We are sending mail with results at report@fotonower.com args[1401650413] : ('0.0',) no score found for photo 1401650413 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797610 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_P29797610_30-12-2025_10_36_59.pdf results_Auto_P29797610_30-12-2025_10_36_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_36_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','29797610','results_Auto_P29797610_30-12-2025_10_36_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_36_59.pdf','pdf','','0.15','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29797610]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413] map_info['map_portfolio_photo'] : {29797610: [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413, 1401650384, 1401650380, 1401650372, 1401650369, 1401650365, 1401650363, 1401650347, 1401650345, 1401650342, 1401650338, 1401650335, 1401650332, 1401650300, 1401650299]} final : False mtd_id 4302 list_pids : [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413] 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, '4287387') ('4302', '29797610', '1401650487', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650484', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650481', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650474', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650469', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650467', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650453', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650451', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650449', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650447', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650445', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650443', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650434', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650430', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650425', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650421', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650417', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650413', None, None, None, None, None, '4287387') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '29797610', '1401650487', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650484', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650481', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650474', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650469', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650467', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650453', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650451', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650449', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650447', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650445', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650443', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650434', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650430', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650425', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650421', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650417', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650413', None, None, None, None, None, '4287387')] time used for this insertion : 0.018735885620117188 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.1331300735473633 time spend to save output : 0.019007205963134766 total time spend for step 4 : 2.152137279510498 step5:split_time_score Tue Dec 30 10:37:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29797610'] 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 : [('29797610',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29797610) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401650484: {'path': 'temp/1767087418_2686575_1401650484_c602c5158d95f784e0412e33a47f6502.jpg', 'extension': 'jpg'}, 1401650487: {'path': 'temp/1767087418_2686575_1401650487_bf090ad4dc349a7a7649ef6d235ec2c4.jpg', 'extension': 'jpg'}, 1401650447: {'path': 'temp/1767087418_2686575_1401650447_0fd2bbd9a09d5f2db92d9a61f3b338c1.jpg', 'extension': 'jpg'}, 1401650449: {'path': 'temp/1767087418_2686575_1401650449_12c20781275df78df21bc9f4aa38859b.jpg', 'extension': 'jpg'}, 1401650451: {'path': 'temp/1767087418_2686575_1401650451_d853fd66e812b551fcb5af07ece21b63.jpg', 'extension': 'jpg'}, 1401650453: {'path': 'temp/1767087418_2686575_1401650453_989be90d6aedb3cecd6c04264e2f575b.jpg', 'extension': 'jpg'}, 1401650413: {'path': 'temp/1767087418_2686575_1401650413_553818299e9cfd4d7a87b5a97eec3e54.jpg', 'extension': 'jpg'}, 1401650417: {'path': 'temp/1767087418_2686575_1401650417_311c82f411f6c0c82b8f849febacb6a4.jpg', 'extension': 'jpg'}, 1401650421: {'path': 'temp/1767087418_2686575_1401650421_2c2647536c5eb6310ee54092f1c9b0c4.jpg', 'extension': 'jpg'}, 1401650425: {'path': 'temp/1767087418_2686575_1401650425_ac1e5036a23fcfed550ba26067908c7e.jpg', 'extension': 'jpg'}, 1401650467: {'path': 'temp/1767087418_2686575_1401650467_9957aeecf53f1f2cc4b4027dad256236.jpg', 'extension': 'jpg'}, 1401650469: {'path': 'temp/1767087418_2686575_1401650469_dc2a24f3c6d338141f972dcf78498750.jpg', 'extension': 'jpg'}, 1401650474: {'path': 'temp/1767087418_2686575_1401650474_ee5d0244f4a43f248b0db41b6aa04e72.jpg', 'extension': 'jpg'}, 1401650481: {'path': 'temp/1767087418_2686575_1401650481_186b312263f4bf82bd89ec1ca0f0f37c.jpg', 'extension': 'jpg'}, 1401650430: {'path': 'temp/1767087418_2686575_1401650430_79fb04ec3bb80b975cf665e0764a9bd7.jpg', 'extension': 'jpg'}, 1401650434: {'path': 'temp/1767087418_2686575_1401650434_8adc2aa0c6d879473876e23103202f1d.jpg', 'extension': 'jpg'}, 1401650443: {'path': 'temp/1767087418_2686575_1401650443_44f3b384b2cde47762959d205b6f3df5.jpg', 'extension': 'jpg'}, 1401650445: {'path': 'temp/1767087418_2686575_1401650445_709658c0219630006598ac2c9f04624d.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 = 29797610; (('arc_en_ciel_jrm_live',), ('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29797610 group by h (('10', 32),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29797610 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 (29797610) 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 (29797610) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30122025 29797610 Nombre de photos uploadées : 32 / 23040 (0%) 30122025 29797610 Nombre de photos taguées (types de déchets): 0 / 32 (0%) 30122025 29797610 Nombre de photos taguées (volume) : 0 / 32 (0%) [{'photo_id': 1401650300, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/90c29f7dc7c01cc28e23d82b0662ea44.jpg', 'username': None, 'uploaded_at': 1767087067, 'text': 'image_30122025_10_30_04_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401650299, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/23bf588a9dcd2cea6994e883959cc8e0.jpg', 'username': None, 'uploaded_at': 1767087067, 'text': 'image_30122025_10_30_44_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401650347, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/91716ccdcd3e63c3ed7b621933a55495.jpg', 'username': None, 'uploaded_at': 1767087132, 'text': 'image_30122025_10_30_53_9126.jpg'}, {'photo_id': 1401650345, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/b2875e6d812b00e0c25743e7c00d8bc9.jpg', 'username': None, 'uploaded_at': 1767087132, 'text': 'image_30122025_10_31_03_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014271736145019531 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29797610, '2025-12-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2809232,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24486637115478516 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= 2809232 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2809232, 'dashboard_run_id': 2818267, 'mtr_portfolio_id': 29790877, 'dashboard_result_id': 18828215, '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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2818267, 'mtr_portfolio_id': 29790983, 'dashboard_result_id': 18828216, '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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2818267, 'mtr_portfolio_id': 29791397, 'dashboard_result_id': 18828217, '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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2818267, 'mtr_portfolio_id': 29791790, 'dashboard_result_id': 18828218, '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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2818267, 'mtr_portfolio_id': 29792732, 'dashboard_result_id': 18828219, '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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2818267, 'mtr_portfolio_id': 29795877, 'dashboard_result_id': 18828220, '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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2818267, 'mtr_portfolio_id': 29796962, 'dashboard_result_id': 18828221, '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_P29796962_30-12-2025_10_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29796963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29796964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29796965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29796966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29796967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29796968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29796969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29796970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29796971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29796972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29796973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29796974, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2818267, 'mtr_portfolio_id': 29797237, 'dashboard_result_id': 18828222, '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_P29797237_30-12-2025_10_33_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2818267, 'mtr_portfolio_id': 29797610, 'dashboard_result_id': 18828223, '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_P29797610_30-12-2025_10_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, '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 = 29790877 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': 4286652, 'mtr_portfolio_id': 29790877, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 26), 'result': '0.0348694091114477', 'result_long': None, 'result_double': None}] Qualite : 0.0348694091114477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790877 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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}" where mtr_portfolio_id = 29790877 and dashboard_run_id = 2818267 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`=29790877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18828215, 0.0348694091114477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, '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 = 29790983 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': 4286653, 'mtr_portfolio_id': 29790983, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 57), 'result': '0.0463877614951028', 'result_long': None, 'result_double': None}] Qualite : 0.0463877614951028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790983 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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}" where mtr_portfolio_id = 29790983 and dashboard_run_id = 2818267 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`=29790983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18828216, 0.0463877614951028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, '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 = 29791397 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': 4286654, 'mtr_portfolio_id': 29791397, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 30), 'result': '0.0505279555715365', 'result_long': None, 'result_double': None}] Qualite : 0.0505279555715365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791397 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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}" where mtr_portfolio_id = 29791397 and dashboard_run_id = 2818267 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`=29791397 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18828217, 0.0505279555715365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, '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 = 29791790 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': 4286655, 'mtr_portfolio_id': 29791790, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 40), 'result': '0.06145194760347519', 'result_long': None, 'result_double': None}] Qualite : 0.06145194760347519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791790 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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}" where mtr_portfolio_id = 29791790 and dashboard_run_id = 2818267 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`=29791790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18828218, 0.06145194760347519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, '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 = 29792732 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': 4286656, 'mtr_portfolio_id': 29792732, 'created_at': datetime.datetime(2025, 12, 30, 5, 56), 'result': '0.04424892577297573', 'result_long': None, 'result_double': None}] Qualite : 0.04424892577297573 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29792732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29792732 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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}" where mtr_portfolio_id = 29792732 and dashboard_run_id = 2818267 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`=29792732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18828219, 0.04424892577297573, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, '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 = 29795877 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': 4287149, 'mtr_portfolio_id': 29795877, 'created_at': datetime.datetime(2025, 12, 30, 9, 50, 58), 'result': '0.039355367116025095', 'result_long': None, 'result_double': None}] Qualite : 0.039355367116025095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29795877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29795877 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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}" where mtr_portfolio_id = 29795877 and dashboard_run_id = 2818267 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`=29795877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18828220, 0.039355367116025095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, '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 = 29796962 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 29796962 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29796962 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29796962 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29796962 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29796962 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29796962_30-12-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29796962 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_P29796962_30-12-2025_10_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29796963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29796964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29796965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29796966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29796967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29796968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29796969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29796970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29796971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29796972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29796973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29796974, 'pht': 3726}}" where mtr_portfolio_id = 29796962 and dashboard_run_id = 2818269 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 = 29797237 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': 4287322, 'mtr_portfolio_id': 29797237, 'created_at': datetime.datetime(2025, 12, 30, 10, 33, 31), 'result': '0.03345437560522944', 'result_long': None, 'result_double': None}] Qualite : 0.03345437560522944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797237 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_P29797237_30-12-2025_10_33_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}" where mtr_portfolio_id = 29797237 and dashboard_run_id = 2818269 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`=29797237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18828222, 0.03345437560522944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_33_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, '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 = 29797610 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 29797610 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29797610 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29797610 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29797610 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4287387, 'mtr_portfolio_id': 29797610, 'created_at': datetime.datetime(2025, 12, 30, 10, 36, 58), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_36_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797610 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_P29797610_30-12-2025_10_36_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}" where mtr_portfolio_id = 29797610 and dashboard_run_id = 2818269 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`=29797610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18828223, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_36_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, '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 (29790877,29790983,29791397,29791790,29792732,29795877,29796962,29797237,29797610) result : ((1401601673,), (1401601679,), (1401601753,), (1401601754,), (1401601755,), (1401601757,), (1401601778,), (1401601779,), (1401601780,), (1401601800,), (1401601804,), (1401601808,), (1401601837,), (1401601841,), (1401601845,), (1401601830,), (1401601831,), (1401601834,), (1401601851,), (1401601852,), (1401601854,), (1401601858,), (1401601887,), (1401601888,), (1401601889,), (1401601912,), (1401601914,), (1401601916,), (1401601918,), (1401601944,), (1401601946,), (1401601948,), (1401601950,), (1401601952,), (1401601954,), (1401601962,), (1401601965,), (1401601968,), (1401601970,), (1401601998,), (1401602028,), (1401602058,), (1401602416,), (1401602449,), (1401602477,), (1401602480,), (1401602484,), (1401602485,), (1401602637,), (1401602638,), (1401602639,), (1401602642,), (1401602647,), (1401602650,), (1401602666,), (1401602668,), (1401602670,), (1401602692,), (1401602693,), (1401602694,), (1401602695,), (1401602719,), (1401602720,), (1401602722,), (1401602727,), (1401602731,), (1401602735,), (1401602746,), (1401602748,), (1401602753,), (1401602756,), (1401602760,), (1401602767,), (1401602773,), (1401602775,), (1401602777,), (1401602781,), (1401602785,), (1401602786,), (1401602789,), (1401602792,), (1401602796,), (1401602800,), (1401602803,), (1401602805,), (1401602808,), (1401602809,), (1401602811,), (1401602815,), (1401602874,), (1401602868,), (1401602870,), (1401602872,), (1401602896,), (1401602899,), (1401602901,), (1401602904,), (1401602908,), (1401602920,), (1401602921,), (1401602954,), (1401602957,), (1401602991,), (1401602992,), (1401602993,), (1401602996,), (1401602999,), (1401603009,), (1401603011,), (1401603015,), (1401603020,), (1401603025,), (1401603029,), (1401603032,), (1401603038,), (1401603040,), (1401603059,), (1401603060,), (1401603061,), (1401603082,), (1401603083,), (1401603084,), (1401603087,), (1401603102,), (1401603104,), (1401603108,), (1401603114,), (1401603155,), (1401603157,), (1401603158,), (1401603160,), (1401603162,), (1401603165,), (1401603176,), (1401603192,), (1401603194,), (1401603196,), (1401603199,), (1401603203,), (1401603216,), (1401603219,), (1401603222,), (1401603225,), (1401603230,), (1401603254,), (1401603258,), (1401603311,), (1401603312,), (1401603329,), (1401603331,), (1401603334,), (1401603246,), (1401603247,), (1401603248,), (1401603251,), (1401603267,), (1401603269,), (1401603272,), (1401603276,), (1401603280,), (1401603285,), (1401603299,), (1401603302,), (1401603307,), (1401603309,), (1401603322,), (1401603324,), (1401603327,), (1401603340,), (1401603390,), (1401603392,), (1401603432,), (1401603434,), (1401603435,), (1401603437,), (1401603455,), (1401603457,), (1401603460,), (1401603463,), (1401603485,), (1401603493,), (1401603499,), (1401603503,), (1401603508,), (1401603519,), (1401603522,), (1401603524,), (1401603547,), (1401603549,), (1401603553,), (1401603557,), (1401603560,), (1401603563,), (1401603568,), (1401603573,), (1401603575,), (1401603579,), (1401603581,), (1401603585,), (1401603587,), (1401603598,), (1401603600,), (1401603601,), (1401603643,), (1401603646,), (1401603650,), (1401603656,), (1401603660,), (1401603663,), (1401603671,), (1401603697,), (1401606743,), (1401606683,), (1401606740,), (1401606756,), (1401606758,), (1401606760,), (1401606761,), (1401606763,), (1401606777,), (1401606779,), (1401606782,), (1401606784,), (1401606786,), (1401606788,), (1401606796,), (1401606798,), (1401606801,), (1401606803,), (1401606805,), (1401606808,), (1401606812,), (1401606831,), (1401606834,), (1401606837,), (1401606882,), (1401610665,), (1401639240,), (1401639300,), (1401639683,), (1401639691,), (1401639693,), (1401639696,), (1401639717,), (1401639801,), (1401639803,), (1401639890,), (1401639925,), (1401645937,), (1401645133,), (1401645966,), (1401645968,), (1401646473,), (1401649768,), (1401649754,), (1401649756,), (1401649759,), (1401649760,), (1401649765,), (1401649782,), (1401649804,), (1401649805,), (1401649830,), (1401649831,), (1401649868,), (1401649870,), (1401649871,), (1401649872,), (1401649874,), (1401649893,), (1401649895,), (1401649896,), (1401649947,), (1401649948,), (1401649949,), (1401649971,), (1401649973,), (1401649975,), (1401649979,), (1401649982,), (1401649985,), (1401649994,), (1401649997,), (1401650004,), (1401650006,), (1401650008,), (1401650011,), (1401650014,), (1401650017,), (1401650062,), (1401650064,), (1401650065,), (1401650066,), (1401650093,), (1401650094,), (1401650095,), (1401650097,), (1401650116,), (1401650118,), (1401650179,), (1401650181,), (1401650182,), (1401650184,), (1401650205,), (1401650206,), (1401650207,), (1401650208,), (1401650211,), (1401650254,), (1401650257,), (1401650258,), (1401650302,), (1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30122025': {'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([29797610]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413] map_info['map_portfolio_photo'] : {29797610: [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413, 1401650384, 1401650380, 1401650372, 1401650369, 1401650365, 1401650363, 1401650347, 1401650345, 1401650342, 1401650338, 1401650335, 1401650332, 1401650300, 1401650299]} final : True mtd_id 4302 list_pids : [1401650487, 1401650484, 1401650481, 1401650474, 1401650469, 1401650467, 1401650453, 1401650451, 1401650449, 1401650447, 1401650445, 1401650443, 1401650434, 1401650430, 1401650425, 1401650421, 1401650417, 1401650413] Looping around the photos to save general results len do output : 1 /29797610Didn'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, '4287387') ('4302', '29797610', '1401650487', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650484', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650481', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650474', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650469', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650467', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650453', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650451', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650449', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650447', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650445', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650443', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650434', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650430', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650425', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650421', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650417', None, None, None, None, None, '4287387') ('4302', None, None, None, None, None, None, None, '4287387') ('4302', '29797610', '1401650413', None, None, None, None, None, '4287387') 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', None, '29797610', 'None', None, None, None, None, '4287387'), ('4302', '29797610', '1401650487', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650484', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650481', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650474', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650469', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650467', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650453', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650451', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650449', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650447', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650445', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650443', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650434', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650430', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650425', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650421', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650417', None, None, None, None, None, '4287387'), ('4302', '29797610', '1401650413', None, None, None, None, None, '4287387')] time used for this insertion : 0.017554283142089844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9511635303497314 time spend to save output : 0.017853975296020508 total time spend for step 5 : 0.969017505645752 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 (4287387) 2.14user 2.50system 0:07.04elapsed 66%CPU (0avgtext+0avgdata 174032maxresident)k 80inputs+10656outputs (0major+69134minor)pagefaults 0swaps