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 : 2787185 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 (3306336) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3306336) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061056 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3306336'] with mtr_portfolio_ids : ['25061056'] and first list_photo_ids : [] new path : /proc/2787185/ Name: python3 Umask: 0002 State: R (running) Tgid: 2787185 Ngid: 0 Pid: 2787185 PPid: 2787184 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2787185 NSpid: 2787185 NSpgid: 2783941 NSsid: 2783941 VmPeak: 1106884 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99188 kB VmRSS: 99188 kB RssAnon: 59788 kB RssFile: 39400 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 49 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2787185', 'Ngid': '0', 'Pid': '2787185', 'PPid': '2787184', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2787185', 'NSpid': '2787185', 'NSpgid': '2783941', 'NSsid': '2783941', 'VmPeak': '1106884 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99188 kB', 'VmRSS': '99188 kB', 'RssAnon': '59788 kB', 'RssFile': '39400 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '49', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '2787185', '1106884', '0', '1106884', '865636', '99188', b'', 'marlene', '3306336') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25061056) 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 (3306336 ) ) 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 (25061056) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1372594191, 'portfolio_id': 25061056}, {'photo_id': 1372594188, 'portfolio_id': 25061056}, {'photo_id': 1372594185, 'portfolio_id': 25061056}, {'photo_id': 1372594183, 'portfolio_id': 25061056}, {'photo_id': 1372594171, 'portfolio_id': 25061056}, {'photo_id': 1372594165, 'portfolio_id': 25061056}, {'photo_id': 1372594128, 'portfolio_id': 25061056}, {'photo_id': 1372594125, 'portfolio_id': 25061056}, {'photo_id': 1372594120, 'portfolio_id': 25061056}, {'photo_id': 1372594106, 'portfolio_id': 25061056}, {'photo_id': 1372594101, 'portfolio_id': 25061056}, {'photo_id': 1372594087, 'portfolio_id': 25061056}, {'photo_id': 1372594057, 'portfolio_id': 25061056}, {'photo_id': 1372594055, 'portfolio_id': 25061056}, {'photo_id': 1372594053, 'portfolio_id': 25061056}, {'photo_id': 1372594052, 'portfolio_id': 25061056}, {'photo_id': 1372594051, 'portfolio_id': 25061056}, {'photo_id': 1372594042, 'portfolio_id': 25061056}, {'photo_id': 1372594016, 'portfolio_id': 25061056}, {'photo_id': 1372594015, 'portfolio_id': 25061056}, {'photo_id': 1372594014, 'portfolio_id': 25061056}, {'photo_id': 1372594013, 'portfolio_id': 25061056}, {'photo_id': 1372594011, 'portfolio_id': 25061056}, {'photo_id': 1372594008, 'portfolio_id': 25061056}, {'photo_id': 1372593961, 'portfolio_id': 25061056}, {'photo_id': 1372593923, 'portfolio_id': 25061056}, {'photo_id': 1372593917, 'portfolio_id': 25061056}, {'photo_id': 1372593915, 'portfolio_id': 25061056}, {'photo_id': 1372593913, 'portfolio_id': 25061056}, {'photo_id': 1372593911, 'portfolio_id': 25061056}, {'photo_id': 1372593910, 'portfolio_id': 25061056}, {'photo_id': 1372593887, 'portfolio_id': 25061056}, {'photo_id': 1372593884, 'portfolio_id': 25061056}, {'photo_id': 1372593883, 'portfolio_id': 25061056}, {'photo_id': 1372593880, 'portfolio_id': 25061056}, {'photo_id': 1372593877, 'portfolio_id': 25061056}, {'photo_id': 1372593873, 'portfolio_id': 25061056}, {'photo_id': 1372593848, 'portfolio_id': 25061056}, {'photo_id': 1372593827, 'portfolio_id': 25061056}, {'photo_id': 1372593806, 'portfolio_id': 25061056}, {'photo_id': 1372593803, 'portfolio_id': 25061056}, {'photo_id': 1372593800, 'portfolio_id': 25061056}, {'photo_id': 1372593796, 'portfolio_id': 25061056}, {'photo_id': 1372593749, 'portfolio_id': 25061056}, {'photo_id': 1372593745, 'portfolio_id': 25061056}, {'photo_id': 1372593742, 'portfolio_id': 25061056}, {'photo_id': 1372593740, 'portfolio_id': 25061056}, {'photo_id': 1372593738, 'portfolio_id': 25061056}, {'photo_id': 1372593729, 'portfolio_id': 25061056}, {'photo_id': 1372593595, 'portfolio_id': 25061056}] map_portfolio_id_photo_id: {25061056: [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042, 1372594016, 1372594015, 1372594014, 1372594013, 1372594011, 1372594008, 1372593961, 1372593923, 1372593917, 1372593915, 1372593913, 1372593911, 1372593910, 1372593887, 1372593884, 1372593883, 1372593880, 1372593877, 1372593873, 1372593848, 1372593827, 1372593806, 1372593803, 1372593800, 1372593796, 1372593749, 1372593745, 1372593742, 1372593740, 1372593738, 1372593729, 1372593595]} ##### 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.014412641525268555 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Jul 18 06:10:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25061056) 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 : 25061056 get user id for portfolio 25061056 get sub ptf for main ptf 25061056, type 3726 and hashtags ['kraft', 'Carton_gris', 'mal_croppe', 'Teint_Dans_La_Masse', 'Carton_brun', 'flou', 'cartonnette', 'papier', 'autre_refus', 'plastique', 'environnement', 'metal'] 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`=25061056 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','mal_croppe','Teint_Dans_La_Masse','Carton_brun','flou','cartonnette','papier','autre_refus','plastique','environnement','metal')) 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`=25061056 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','mal_croppe','Teint_Dans_La_Masse','Carton_brun','flou','cartonnette','papier','autre_refus','plastique','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 25061056, 'sub_port_id': 25061071, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892677, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'environnement': {'main_port_id': 25061056, 'sub_port_id': 25061072, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892678, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'mal_croppe': {'main_port_id': 25061056, 'sub_port_id': 25061074, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892679, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'plastique': {'main_port_id': 25061056, 'sub_port_id': 25061075, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892680, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'metal': {'main_port_id': 25061056, 'sub_port_id': 25061076, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892681, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'Carton_brun': {'main_port_id': 25061056, 'sub_port_id': 25061078, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892682, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'Carton_gris': {'main_port_id': 25061056, 'sub_port_id': 25061079, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892683, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'flou': {'main_port_id': 25061056, 'sub_port_id': 25061080, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892684, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'cartonnette': {'main_port_id': 25061056, 'sub_port_id': 25061082, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892685, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'papier': {'main_port_id': 25061056, 'sub_port_id': 25061083, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892686, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'kraft': {'main_port_id': 25061056, 'sub_port_id': 25061084, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892687, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'autre_refus': {'main_port_id': 25061056, 'sub_port_id': 25061086, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892688, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25061071 , 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=25061056 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 (25061071) result : ((1372593954,), (1372593955,), (1372593956,), (1372593957,), (1372593958,), (1372593960,), (1372593963,), (1372593990,), (1372593991,), (1372593992,), (1372593993,), (1372593994,), (1372593996,), (1372593997,), (1372593998,), (1372593999,), (1372594000,), (1372594043,), (1372594044,), (1372594045,), (1372594046,), (1372594047,), (1372594048,), (1372594049,), (1372594050,), (1372594069,), (1372594070,), (1372594071,), (1372594072,), (1372594073,), (1372594074,), (1372594172,), (1372594173,), (1372594174,), (1372594175,), (1372594176,), (1372594177,), (1372594178,), (1372594179,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061072 , 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=25061056 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 (25061072) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061074 , 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=25061056 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 (25061074) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061075 , 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=25061056 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 (25061075) result : ((1372594002,), (1372594075,), (1372594078,), (1372594079,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061076 , 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=25061056 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 (25061076) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061078 , 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=25061056 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 (25061078) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061079 , 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=25061056 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 (25061079) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061080 , 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=25061056 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 (25061080) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061082 , 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=25061056 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 (25061082) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061083 , 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=25061056 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 (25061083) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061084 , 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=25061056 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 (25061084) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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 25061086 , 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=25061056 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 (25061086) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25061056) result : ((1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) 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 (1372593800) 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`=25061056 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','mal_croppe','Teint_Dans_La_Masse','Carton_brun','flou','cartonnette','papier','autre_refus','plastique','environnement','metal')) 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`=25061056 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','mal_croppe','Teint_Dans_La_Masse','Carton_brun','flou','cartonnette','papier','autre_refus','plastique','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 25061056, 'sub_port_id': 25061089, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892707, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'environnement': {'main_port_id': 25061056, 'sub_port_id': 25061090, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892708, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'mal_croppe': {'main_port_id': 25061056, 'sub_port_id': 25061091, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892709, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'plastique': {'main_port_id': 25061056, 'sub_port_id': 25061092, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892710, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'metal': {'main_port_id': 25061056, 'sub_port_id': 25061093, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892711, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'Carton_brun': {'main_port_id': 25061056, 'sub_port_id': 25061094, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892712, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'Carton_gris': {'main_port_id': 25061056, 'sub_port_id': 25061095, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892713, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'flou': {'main_port_id': 25061056, 'sub_port_id': 25061096, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892714, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'cartonnette': {'main_port_id': 25061056, 'sub_port_id': 25061097, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892715, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'papier': {'main_port_id': 25061056, 'sub_port_id': 25061098, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892716, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'kraft': {'main_port_id': 25061056, 'sub_port_id': 25061099, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892717, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}, 'autre_refus': {'main_port_id': 25061056, 'sub_port_id': 25061100, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16892718, 'last_updated_at': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 6, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 6, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061089,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061090,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061091,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061074 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061092,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061075 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061093,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061076 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061094,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061078 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061095,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061079 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061080 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061082 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061099,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25061100,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25061086 lien utilise dans velours : https://www.fotonower.com/velours/25061089,25061090,25061091,25061092,25061093,25061094,25061095,25061096,25061097,25061098,25061099,25061100?tags=Teint_Dans_La_Masse,environnement,mal_croppe,plastique,metal,Carton_brun,Carton_gris,flou,cartonnette,papier,kraft,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25061056]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042] map_info['map_portfolio_photo'] : {25061056: [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042, 1372594016, 1372594015, 1372594014, 1372594013, 1372594011, 1372594008, 1372593961, 1372593923, 1372593917, 1372593915, 1372593913, 1372593911, 1372593910, 1372593887, 1372593884, 1372593883, 1372593880, 1372593877, 1372593873, 1372593848, 1372593827, 1372593806, 1372593803, 1372593800, 1372593796, 1372593749, 1372593745, 1372593742, 1372593740, 1372593738, 1372593729, 1372593595]} final : False mtd_id 4302 list_pids : [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042] Looping around the photos to save general results len do output : 1 /25061056. 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, '3306336') ('4302', '25061056', '1372594191', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594188', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594185', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594183', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594171', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594165', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594128', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594125', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594120', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594106', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594101', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594087', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594057', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594055', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594053', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594052', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594051', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594042', None, None, None, None, None, '3306336') 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, '25061056', "{'Teint_Dans_La_Masse': 25061071, 'environnement': 25061072, 'mal_croppe': 25061074, 'plastique': 25061075, 'metal': 25061076, 'Carton_brun': 25061078, 'Carton_gris': 25061079, 'flou': 25061080, 'cartonnette': 25061082, 'papier': 25061083, 'kraft': 25061084, 'autre_refus': 25061086}", None, None, None, None, '3306336'), ('4302', '25061056', '1372594191', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594188', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594185', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594183', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594171', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594165', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594128', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594125', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594120', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594106', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594101', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594087', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594057', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594055', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594053', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594052', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594051', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594042', None, None, None, None, None, '3306336')] time used for this insertion : 0.07070660591125488 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5452640056610107 time spend to save output : 0.07104206085205078 total time spend for step 1 : 0.6163060665130615 step2:final Fri Jul 18 06:10:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25061056) 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 25061056 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1372593595,1372593749,1372593745,1372593742,1372593740,1372593738,1372593729,1372593848,1372593827,1372593806,1372593803,1372593800,1372593796,1372593887,1372593884,1372593883,1372593880,1372593877,1372593873,1372593923,1372593917,1372593915,1372593913,1372593911,1372593910,1372593961,1372594016,1372594015,1372594014,1372594013,1372594011,1372594008,1372594057,1372594055,1372594053,1372594052,1372594051,1372594042,1372594128,1372594125,1372594120,1372594106,1372594101,1372594087,1372594191,1372594188,1372594185,1372594183,1372594171,1372594165); 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([25061056]) Inside saveOutput : final : False verbose : True original output for save of step final : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} new output for save of step final : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042] map_info['map_portfolio_photo'] : {25061056: [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042, 1372594016, 1372594015, 1372594014, 1372594013, 1372594011, 1372594008, 1372593961, 1372593923, 1372593917, 1372593915, 1372593913, 1372593911, 1372593910, 1372593887, 1372593884, 1372593883, 1372593880, 1372593877, 1372593873, 1372593848, 1372593827, 1372593806, 1372593803, 1372593800, 1372593796, 1372593749, 1372593745, 1372593742, 1372593740, 1372593738, 1372593729, 1372593595]} final : False mtd_id 4302 list_pids : [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042] Looping around the photos to save general results len do output : 18 /1372594191.Didn't retrieve data . /1372594188.Didn't retrieve data . /1372594185.Didn't retrieve data . /1372594183.Didn't retrieve data . /1372594171.Didn't retrieve data . /1372594165.Didn't retrieve data . /1372594128.Didn't retrieve data . /1372594125.Didn't retrieve data . /1372594120.Didn't retrieve data . /1372594106.Didn't retrieve data . /1372594101.Didn't retrieve data . /1372594087.Didn't retrieve data . /1372594057.Didn't retrieve data . /1372594055.Didn't retrieve data . /1372594053.Didn't retrieve data . /1372594052.Didn't retrieve data . /1372594051.Didn't retrieve data . /1372594042.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, '3306336') ('4302', '25061056', '1372594191', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594188', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594185', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594183', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594171', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594165', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594128', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594125', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594120', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594106', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594101', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594087', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594057', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594055', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594053', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594052', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594051', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594042', None, None, None, None, None, '3306336') 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', '25061056', '1372594191', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594188', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594185', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594183', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594171', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594165', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594128', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594125', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594120', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594106', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594101', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594087', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594057', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594055', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594053', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594052', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594051', '0.04212111804890812', None, None, None, None, '3306336'), ('4302', '25061056', '1372594042', '0.04212111804890812', None, None, None, None, '3306336')] time used for this insertion : 0.01636338233947754 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0680088996887207 time spend to save output : 0.017140865325927734 total time spend for step 2 : 0.08514976501464844 step3:velours_tree Fri Jul 18 06:10:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25061056: [{'Teint_Dans_La_Masse': 25061071, 'environnement': 25061072, 'mal_croppe': 25061074, 'plastique': 25061075, 'metal': 25061076, 'Carton_brun': 25061078, 'Carton_gris': 25061079, 'flou': 25061080, 'cartonnette': 25061082, 'papier': 25061083, 'kraft': 25061084, 'autre_refus': 25061086}]} input_args_next_step : {25061056: ()} output_args : {25061056: [{'Teint_Dans_La_Masse': 25061071, 'environnement': 25061072, 'mal_croppe': 25061074, 'plastique': 25061075, 'metal': 25061076, 'Carton_brun': 25061078, 'Carton_gris': 25061079, 'flou': 25061080, 'cartonnette': 25061082, 'papier': 25061083, 'kraft': 25061084, 'autre_refus': 25061086}]} args : 25061056 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 : ({'Teint_Dans_La_Masse': 25061071, 'environnement': 25061072, 'mal_croppe': 25061074, 'plastique': 25061075, 'metal': 25061076, 'Carton_brun': 25061078, 'Carton_gris': 25061079, 'flou': 25061080, 'cartonnette': 25061082, 'papier': 25061083, 'kraft': 25061084, 'autre_refus': 25061086},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25061056) 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([25061056]) 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.27536797523498535 time spend to save output : 4.1961669921875e-05 total time spend for step 3 : 0.2754099369049072 step4:send_mail_cod Fri Jul 18 06:10:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} input_args_next_step : {1372594191: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594191 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594188 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594185 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594183 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594171 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594165 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594128 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594125 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594120 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594106 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594101 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594087 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594057 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594055 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594053 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594052 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594051 depend.output_id : 0 input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ()} output_args : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',)} args : 1372594042 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 : {25061056: [{'Teint_Dans_La_Masse': 25061071, 'environnement': 25061072, 'mal_croppe': 25061074, 'plastique': 25061075, 'metal': 25061076, 'Carton_brun': 25061078, 'Carton_gris': 25061079, 'flou': 25061080, 'cartonnette': 25061082, 'papier': 25061083, 'kraft': 25061084, 'autre_refus': 25061086}]} input_args_next_step : {1372594191: ('0.04212111804890812',), 1372594188: ('0.04212111804890812',), 1372594185: ('0.04212111804890812',), 1372594183: ('0.04212111804890812',), 1372594171: ('0.04212111804890812',), 1372594165: ('0.04212111804890812',), 1372594128: ('0.04212111804890812',), 1372594125: ('0.04212111804890812',), 1372594120: ('0.04212111804890812',), 1372594106: ('0.04212111804890812',), 1372594101: ('0.04212111804890812',), 1372594087: ('0.04212111804890812',), 1372594057: ('0.04212111804890812',), 1372594055: ('0.04212111804890812',), 1372594053: ('0.04212111804890812',), 1372594052: ('0.04212111804890812',), 1372594051: ('0.04212111804890812',), 1372594042: ('0.04212111804890812',), 25061056: ()} output_args : {25061056: [{'Teint_Dans_La_Masse': 25061071, 'environnement': 25061072, 'mal_croppe': 25061074, 'plastique': 25061075, 'metal': 25061076, 'Carton_brun': 25061078, 'Carton_gris': 25061079, 'flou': 25061080, 'cartonnette': 25061082, 'papier': 25061083, 'kraft': 25061084, 'autre_refus': 25061086}]} args : 25061056 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.04212111804890812',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25061056) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1372594191,1372594188,1372594185,1372594183,1372594171,1372594165,1372594128,1372594125,1372594120,1372594106,1372594101,1372594087,1372594057,1372594055,1372594053,1372594052,1372594051,1372594042) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1372594042 begin to download photo : 1372594055 begin to download photo : 1372594106 begin to download photo : 1372594165 begin to download photo : 1372594188 download finish for photo 1372594042 begin to download photo : 1372594051 download finish for photo 1372594165 begin to download photo : 1372594171 download finish for photo 1372594055 begin to download photo : 1372594057 download finish for photo 1372594188 begin to download photo : 1372594191 download finish for photo 1372594106 begin to download photo : 1372594120 download finish for photo 1372594051 begin to download photo : 1372594052 download finish for photo 1372594057 begin to download photo : 1372594087 download finish for photo 1372594171 begin to download photo : 1372594183 download finish for photo 1372594191 download finish for photo 1372594120 begin to download photo : 1372594125 download finish for photo 1372594087 begin to download photo : 1372594101 download finish for photo 1372594052 begin to download photo : 1372594053 download finish for photo 1372594183 begin to download photo : 1372594185 download finish for photo 1372594125 begin to download photo : 1372594128 download finish for photo 1372594101 download finish for photo 1372594053 download finish for photo 1372594185 download finish for photo 1372594128 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette250610741752811860/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P25061056_18-07-2025_06_11_00.pdf 25061074 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250610741752811860 25061075 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372594002: '1752811565_2574788_1372593738_741c460e71cf9b401ca7dc3b0126f8b4_rle_crop_3885989602_0.png', 1372594075: '1752811685_2581290_1372593884_b1f9ccc6bf26a524c5bf0fb0034b349e_rle_crop_3885990234_0.png', 1372594078: '1752811685_2581290_1372593883_fd0edd1048db00de8635877063382756_rle_crop_3885990261_0.png', 1372594079: '1752811685_2581290_1372593873_492ac7e7de6348e0e4dfbaf0a805a5b6_rle_crop_3885990329_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/6c05b57df5d83583a1afbc4db4832c99_59648868.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/c4a6385ee0cba0fee262fe1c67025a4a_18848677.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/95a4e44f09a833bf957ffee6ca4bc3a2_2388553.png change filename to text .imagette250610751752811860/ imagette250610751752811860/1752811565_2574788_1372593738_741c460e71cf9b401ca7dc3b0126f8b4_rle_crop_3885989602_0.png.png imagette250610751752811860/1752811685_2581290_1372593873_492ac7e7de6348e0e4dfbaf0a805a5b6_rle_crop_3885990329_0.png.png imagette250610751752811860/1752811685_2581290_1372593883_fd0edd1048db00de8635877063382756_rle_crop_3885990261_0.png.png imagette250610751752811860/1752811685_2581290_1372593884_b1f9ccc6bf26a524c5bf0fb0034b349e_rle_crop_3885990234_0.png.png imagette250610761752811860/ imagette250610801752811860/ imagette250610821752811860/ imagette250610841752811860/ imagette250610861752811860/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/a2c26bdf319c4a7fa2e5a4bfc4c93d48_10811481.png imagette250610751752811860 25061076 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061076 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250610761752811860 25061080 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061080 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250610801752811860 25061082 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061082 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250610821752811860 25061084 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061084 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250610841752811860 25061086 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250610861752811860 25061071 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061071 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372594073: '1752811685_2581290_1372593877_455d0159b122970ca2dfc178de4da58f_rle_crop_3885990315_0.png', 1372594046: '1752811645_1926790_1372593915_00bbe38215bf796976f61f1ff0c527be_rle_crop_3885989873_0.png', 1372594047: '1752811645_1926790_1372593915_00bbe38215bf796976f61f1ff0c527be_rle_crop_3885989877_0.png', 1372594048: '1752811645_1926790_1372593913_d6d720c305555593fd0652514a8fcc1d_rle_crop_3885989895_0.png', 1372594049: '1752811645_1926790_1372593911_295b10f5e01d092a653715a901ee10f2_rle_crop_3885989911_0.png', 1372594050: '1752811645_1926790_1372593910_8db057781ba08edbf6f2a6065ce8966d_rle_crop_3885989927_0.png', 1372594069: '1752811685_2581290_1372593887_6399175d5a147215be2fe18926d2c78e_rle_crop_3885990218_0.png', 1372594070: '1752811685_2581290_1372593884_b1f9ccc6bf26a524c5bf0fb0034b349e_rle_crop_3885990247_0.png', 1372594071: '1752811685_2581290_1372593883_fd0edd1048db00de8635877063382756_rle_crop_3885990272_0.png', 1372594072: '1752811685_2581290_1372593880_47ab860d13c1dde3d49a9655a9d6f2ab_rle_crop_3885990299_0.png', 1372594045: '1752811645_1926790_1372593917_ac2efa4348738cf135f2161c3abc61bc_rle_crop_3885989859_0.png', 1372594074: '1752811685_2581290_1372593873_492ac7e7de6348e0e4dfbaf0a805a5b6_rle_crop_3885990339_0.png', 1372594172: '1752811767_1929782_1372594016_8d071d073871e19c6c205cfca1d1eca5_rle_crop_3885990584_0.png', 1372594173: '1752811767_1929782_1372594015_a1a71cee15d0bf3892733887cc984d23_rle_crop_3885990603_0.png', 1372594174: '1752811767_1929782_1372594014_d578db6e30d96d2a2348d47da00c7553_rle_crop_3885990617_0.png', 1372594175: '1752811767_1929782_1372594014_d578db6e30d96d2a2348d47da00c7553_rle_crop_3885990621_0.png', 1372594176: '1752811767_1929782_1372594013_ceb7c34897067006e75087a16c5f06ec_rle_crop_3885990632_0.png', 1372594177: '1752811767_1929782_1372594013_ceb7c34897067006e75087a16c5f06ec_rle_crop_3885990636_0.png', 1372594178: '1752811767_1929782_1372594011_3e0bc6e55d086adb6562a9279e39f48b_rle_crop_3885990652_0.png', 1372594179: '1752811767_1929782_1372594008_440d6b6a81bcbf52f1a10b1a67216be4_rle_crop_3885990669_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/57ff9823b6ad8667f7202b56f365ba62_99375452.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/2f0abe85ad3edb91eb74b173be61d313_13257845.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/fa2070cd9ccad72b56bc55a56a1f5b6b_17389771.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/a6c803da881a7fbd17c743e6d1ec763b_63688988.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/cd81feadbc61923a64982678b43a6aed_75389029.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/5da0df63a46cec1cd93309cb30bb714a_67488988.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/77c41ff96794bc3f9e7b1b3fdc5b2d04_62369046.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/e4a73d22391ad99d7dcf99c582d5a2d3_6557712.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/f71ee7379854149de6533af43c710276_82372503.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/f98a55b59b5da448a2dd76c0af1ed7e5_5123707.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/e83130e2cdcab78bd0082d094190bc09_11594944.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/ebd78cda85ee2571972f1f7a2d4cd751_13937956.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/2fb6caee559effd50b7ba6202c599776_86983908.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/cb75b7bd3e3a892d8191b040adefcb7c_67450245.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/c882fd46238a4a407260b12f7c73c73d_468553.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/f34a34bbd3acfc4fde620571e26f4f2f_50317456.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/c05afa7886b18fd66ac4f53ce7236c57_68285377.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/c1b98b9887c83c08cb3c9e03536b87f4_30467096.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/279c6906fa0de1a75ee5d9c857c27f5a_45026598.png change filename to text .imagette250610711752811860/ imagette250610711752811860/1752811645_1926790_1372593910_8db057781ba08edbf6f2a6065ce8966d_rle_crop_3885989927_0.png.png imagette250610711752811860/1752811645_1926790_1372593913_d6d720c305555593fd0652514a8fcc1d_rle_crop_3885989895_0.png.png imagette250610711752811860/1752811767_1929782_1372594008_440d6b6a81bcbf52f1a10b1a67216be4_rle_crop_3885990669_0.png.png imagette250610711752811860/1752811767_1929782_1372594014_d578db6e30d96d2a2348d47da00c7553_rle_crop_3885990617_0.png.png imagette250610711752811860/1752811685_2581290_1372593880_47ab860d13c1dde3d49a9655a9d6f2ab_rle_crop_3885990299_0.png.png imagette250610711752811860/1752811767_1929782_1372594016_8d071d073871e19c6c205cfca1d1eca5_rle_crop_3885990584_0.png.png imagette250610711752811860/1752811685_2581290_1372593873_492ac7e7de6348e0e4dfbaf0a805a5b6_rle_crop_3885990339_0.png.png imagette250610711752811860/1752811685_2581290_1372593884_b1f9ccc6bf26a524c5bf0fb0034b349e_rle_crop_3885990247_0.png.png imagette250610711752811860/1752811685_2581290_1372593877_455d0159b122970ca2dfc178de4da58f_rle_crop_3885990315_0.png.png imagette250610711752811860/1752811645_1926790_1372593911_295b10f5e01d092a653715a901ee10f2_rle_crop_3885989911_0.png.png imagette250610711752811860/1752811767_1929782_1372594011_3e0bc6e55d086adb6562a9279e39f48b_rle_crop_3885990652_0.png.png imagette250610711752811860/1752811767_1929782_1372594015_a1a71cee15d0bf3892733887cc984d23_rle_crop_3885990603_0.png.png imagette250610711752811860/1752811767_1929782_1372594013_ceb7c34897067006e75087a16c5f06ec_rle_crop_3885990636_0.png.png imagette250610711752811860/1752811685_2581290_1372593883_fd0edd1048db00de8635877063382756_rle_crop_3885990272_0.png.png imagette250610711752811860/1752811645_1926790_1372593917_ac2efa4348738cf135f2161c3abc61bc_rle_crop_3885989859_0.png.png imagette250610711752811860/1752811645_1926790_1372593915_00bbe38215bf796976f61f1ff0c527be_rle_crop_3885989873_0.png.png imagette250610711752811860/1752811685_2581290_1372593887_6399175d5a147215be2fe18926d2c78e_rle_crop_3885990218_0.png.png imagette250610711752811860/1752811767_1929782_1372594014_d578db6e30d96d2a2348d47da00c7553_rle_crop_3885990621_0.png.png imagette250610711752811860/1752811767_1929782_1372594013_ceb7c34897067006e75087a16c5f06ec_rle_crop_3885990632_0.png.png imagette250610711752811860/1752811645_1926790_1372593915_00bbe38215bf796976f61f1ff0c527be_rle_crop_3885989877_0.png.png imagette250610781752811862/ imagette250610791752811862/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/29b0ebe5cc242e2c15f3f46963d41dd7_77417370.png imagette250610711752811860 25061078 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061078 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250610781752811862 25061079 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061079 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250610791752811862 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25061056 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25061089,25061090,25061091,25061092,25061093,25061094,25061095,25061096,25061097,25061098,25061099,25061100?tags=Teint_Dans_La_Masse,environnement,mal_croppe,plastique,metal,Carton_brun,Carton_gris,flou,cartonnette,papier,kraft,autre_refus your option no_mail is active, we will not send the real mail to your client args[1372594191] : ('0.04212111804890812',) no score found for photo 1372594191 We are sending mail with results at report@fotonower.com args[1372594188] : ('0.04212111804890812',) no score found for photo 1372594188 We are sending mail with results at report@fotonower.com args[1372594185] : ('0.04212111804890812',) no score found for photo 1372594185 We are sending mail with results at report@fotonower.com args[1372594183] : ('0.04212111804890812',) no score found for photo 1372594183 We are sending mail with results at report@fotonower.com args[1372594171] : ('0.04212111804890812',) no score found for photo 1372594171 We are sending mail with results at report@fotonower.com args[1372594165] : ('0.04212111804890812',) no score found for photo 1372594165 We are sending mail with results at report@fotonower.com args[1372594128] : ('0.04212111804890812',) no score found for photo 1372594128 We are sending mail with results at report@fotonower.com args[1372594125] : ('0.04212111804890812',) no score found for photo 1372594125 We are sending mail with results at report@fotonower.com args[1372594120] : ('0.04212111804890812',) no score found for photo 1372594120 We are sending mail with results at report@fotonower.com args[1372594106] : ('0.04212111804890812',) no score found for photo 1372594106 We are sending mail with results at report@fotonower.com args[1372594101] : ('0.04212111804890812',) no score found for photo 1372594101 We are sending mail with results at report@fotonower.com args[1372594087] : ('0.04212111804890812',) no score found for photo 1372594087 We are sending mail with results at report@fotonower.com args[1372594057] : ('0.04212111804890812',) no score found for photo 1372594057 We are sending mail with results at report@fotonower.com args[1372594055] : ('0.04212111804890812',) no score found for photo 1372594055 We are sending mail with results at report@fotonower.com args[1372594053] : ('0.04212111804890812',) no score found for photo 1372594053 We are sending mail with results at report@fotonower.com args[1372594052] : ('0.04212111804890812',) no score found for photo 1372594052 We are sending mail with results at report@fotonower.com args[1372594051] : ('0.04212111804890812',) no score found for photo 1372594051 We are sending mail with results at report@fotonower.com args[1372594042] : ('0.04212111804890812',) no score found for photo 1372594042 We are sending mail with results at report@fotonower.com refus_total : 0.04212111804890812 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061056 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_P25061056_18-07-2025_06_11_00.pdf results_Auto_P25061056_18-07-2025_06_11_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061056_18-07-2025_06_11_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25061056','results_Auto_P25061056_18-07-2025_06_11_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061056_18-07-2025_06_11_00.pdf','pdf','','0.22','0.04212111804890812') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25061056]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042] map_info['map_portfolio_photo'] : {25061056: [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042, 1372594016, 1372594015, 1372594014, 1372594013, 1372594011, 1372594008, 1372593961, 1372593923, 1372593917, 1372593915, 1372593913, 1372593911, 1372593910, 1372593887, 1372593884, 1372593883, 1372593880, 1372593877, 1372593873, 1372593848, 1372593827, 1372593806, 1372593803, 1372593800, 1372593796, 1372593749, 1372593745, 1372593742, 1372593740, 1372593738, 1372593729, 1372593595]} final : False mtd_id 4302 list_pids : [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042] 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, '3306336') ('4302', '25061056', '1372594191', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594188', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594185', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594183', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594171', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594165', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594128', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594125', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594120', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594106', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594101', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594087', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594057', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594055', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594053', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594052', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594051', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594042', None, None, None, None, None, '3306336') 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', '25061056', '1372594191', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594188', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594185', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594183', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594171', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594165', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594128', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594125', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594120', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594106', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594101', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594087', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594057', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594055', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594053', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594052', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594051', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594042', None, None, None, None, None, '3306336')] time used for this insertion : 0.10086369514465332 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.339249849319458 time spend to save output : 0.10115194320678711 total time spend for step 4 : 3.440401792526245 step5:split_time_score Fri Jul 18 06:11:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25061056'] 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 : [('25061056',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25061056) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1372594188: {'path': 'temp/1752811859_2787185_1372594188_23a56a39db8bc7d2aced39e153363936.jpg', 'extension': 'jpg'}, 1372594191: {'path': 'temp/1752811859_2787185_1372594191_cf5e806f17285d4b3989a90d3c90a649.jpg', 'extension': 'jpg'}, 1372594055: {'path': 'temp/1752811859_2787185_1372594055_c46511090bc9d7a176695d4bd29fe8c0.jpg', 'extension': 'jpg'}, 1372594057: {'path': 'temp/1752811859_2787185_1372594057_cac91daf55db8c863f80e087344ea845.jpg', 'extension': 'jpg'}, 1372594087: {'path': 'temp/1752811859_2787185_1372594087_44cac5ec48647e713ef4ddaef0f9155a.jpg', 'extension': 'jpg'}, 1372594101: {'path': 'temp/1752811859_2787185_1372594101_e6bc009b9c1ab546c81385466a398a49.jpg', 'extension': 'jpg'}, 1372594042: {'path': 'temp/1752811859_2787185_1372594042_cb729ef6795b9ec32aab7b11a707ebc7.jpg', 'extension': 'jpg'}, 1372594051: {'path': 'temp/1752811859_2787185_1372594051_a7948bb5f31e86159fb1f8cc7a6c3f0a.jpg', 'extension': 'jpg'}, 1372594052: {'path': 'temp/1752811859_2787185_1372594052_1f63426994398c744b6e1b7c7063948f.jpg', 'extension': 'jpg'}, 1372594053: {'path': 'temp/1752811859_2787185_1372594053_fa2720a51621d0c7cea865e22571ddf5.jpg', 'extension': 'jpg'}, 1372594165: {'path': 'temp/1752811859_2787185_1372594165_e72ab3ae6bf7a2443806b7ca5e2f473e.jpg', 'extension': 'jpg'}, 1372594171: {'path': 'temp/1752811859_2787185_1372594171_75f83b1afa58a5f555be55f4fc3f71a2.jpg', 'extension': 'jpg'}, 1372594183: {'path': 'temp/1752811859_2787185_1372594183_bdbb11a43fbd264009c616aecfc4ca61.jpg', 'extension': 'jpg'}, 1372594185: {'path': 'temp/1752811859_2787185_1372594185_b977c94ac7fe3a67e6ebaad72b2a13a2.jpg', 'extension': 'jpg'}, 1372594106: {'path': 'temp/1752811859_2787185_1372594106_21ecee2ce83e6c0235b7ed626ea00071.jpg', 'extension': 'jpg'}, 1372594120: {'path': 'temp/1752811859_2787185_1372594120_924259f0e290ecb9f3b31c6c7294b484.jpg', 'extension': 'jpg'}, 1372594125: {'path': 'temp/1752811859_2787185_1372594125_d95a8c3085effb394694d4855dec51cb.jpg', 'extension': 'jpg'}, 1372594128: {'path': 'temp/1752811859_2787185_1372594128_c6177bfa9d6a194eacb4709f16c21688.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 = 25061056; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25061056 group by h (('06', 50),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25061056 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 (25061056) 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 (25061056) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18072025 25061056 Nombre de photos uploadées : 50 / 23040 (0%) 18072025 25061056 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 18072025 25061056 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1372593595, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/43fadc3f73a343c3bda300bbf52860fc.jpg', 'username': None, 'uploaded_at': 1752811268, 'text': 'image_18072025_06_00_04_10134.jpg'}, {'photo_id': 1372593749, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/32b6c7476ea0efdb09fee5b909805ae4.jpg', 'username': None, 'uploaded_at': 1752811326, 'text': 'image_18072025_06_01_03_10172.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1372593745, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/28ddd2994f0d85b35f08087a16b7a871.jpg', 'username': None, 'uploaded_at': 1752811326, 'text': 'image_18072025_06_01_14_10141.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1372593742, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/2ecdf26808d87d2e686788c8952313c5.jpg', 'username': None, 'uploaded_at': 1752811326, 'text': 'image_18072025_06_01_24_10037.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002223968505859375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25061056, '2025-07-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1987272,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021723031997680664 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= 1987272 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25050193, 'dashboard_result_id': 12710088, '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_P25050193_18-07-2025_00_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25050233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050237, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25050840, 'dashboard_result_id': 12710089, '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_P25050840_18-07-2025_00_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25050844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050855, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25051132, 'dashboard_result_id': 12710090, '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_P25051132_18-07-2025_00_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25051162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051163, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051173, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25051518, 'dashboard_result_id': 12710091, '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_P25051518_18-07-2025_01_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25051529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051533, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25051963, 'dashboard_result_id': 12710092, '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_P25051963_18-07-2025_01_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052024, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25052528, 'dashboard_result_id': 12710093, '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_P25052528_18-07-2025_01_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052566, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25052865, 'dashboard_result_id': 12710094, '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_P25052865_18-07-2025_01_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052904, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25053274, 'dashboard_result_id': 12710095, '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_P25053274_18-07-2025_02_03_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053288, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25053866, 'dashboard_result_id': 12710096, '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_P25053866_18-07-2025_02_16_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053889, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25054362, 'dashboard_result_id': 12710097, '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_P25054362_18-07-2025_02_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054376, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25054701, 'dashboard_result_id': 12710098, '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_P25054701_18-07-2025_02_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054716, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25055134, 'dashboard_result_id': 12710099, '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_P25055134_18-07-2025_03_00_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055148, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25055501, 'dashboard_result_id': 12710100, '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_P25055501_18-07-2025_03_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055561, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25056002, 'dashboard_result_id': 12710101, '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_P25056002_18-07-2025_03_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056015, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25056398, 'dashboard_result_id': 12710102, '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_P25056398_18-07-2025_03_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056436, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25056827, 'dashboard_result_id': 12710103, '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_P25056827_18-07-2025_03_58_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056866, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25059633, 'dashboard_result_id': 12710104, '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_P25059633_18-07-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25059662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25059663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25059664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25059665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25059666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25059667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25059668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25059669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25059670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25059671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25059672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25059673, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25060055, 'dashboard_result_id': 12710105, '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_P25060055_18-07-2025_05_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25060083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060094, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25060470, 'dashboard_result_id': 12710106, '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_P25060470_18-07-2025_06_01_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25060487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060497, 'pht': 3726}}"}, {'dashboat_entry_day': 1987272, 'dashboard_run_id': 1995159, 'mtr_portfolio_id': 25061056, 'dashboard_result_id': 12710107, '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_P25061056_18-07-2025_06_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061086, '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 = 25050193 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': 3305013, 'mtr_portfolio_id': 25050193, 'created_at': datetime.datetime(2025, 7, 18, 0, 16, 29), 'result': '0.04372184483564583', 'result_long': None, 'result_double': None}] Qualite : 0.04372184483564583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25050193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050193_18-07-2025_00_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25050193 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_P25050193_18-07-2025_00_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25050233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050237, 'pht': 3726}}" where mtr_portfolio_id = 25050193 and dashboard_run_id = 1995159 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`=25050193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710088, 0.04372184483564583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050193_18-07-2025_00_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25050233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050237, '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 = 25050840 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': 3305065, 'mtr_portfolio_id': 25050840, 'created_at': datetime.datetime(2025, 7, 18, 0, 32, 58), 'result': '0.04016108714077362', 'result_long': None, 'result_double': None}] Qualite : 0.04016108714077362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25050840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050840_18-07-2025_00_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25050840 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_P25050840_18-07-2025_00_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25050844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050855, 'pht': 3726}}" where mtr_portfolio_id = 25050840 and dashboard_run_id = 1995159 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`=25050840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710089, 0.04016108714077362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25050840_18-07-2025_00_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25050844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25050845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25050846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25050847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25050848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25050849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25050850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25050851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25050852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25050853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25050854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25050855, '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 = 25051132 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': 3305101, 'mtr_portfolio_id': 25051132, 'created_at': datetime.datetime(2025, 7, 18, 0, 46, 57), 'result': '0.03607421254521795', 'result_long': None, 'result_double': None}] Qualite : 0.03607421254521795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25051132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051132_18-07-2025_00_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25051132 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_P25051132_18-07-2025_00_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25051162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051163, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051173, 'pht': 3726}}" where mtr_portfolio_id = 25051132 and dashboard_run_id = 1995159 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`=25051132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710090, 0.03607421254521795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051132_18-07-2025_00_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25051162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051163, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051173, '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 = 25051518 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': 3305138, 'mtr_portfolio_id': 25051518, 'created_at': datetime.datetime(2025, 7, 18, 1, 2, 58), 'result': '0.037040310585577406', 'result_long': None, 'result_double': None}] Qualite : 0.037040310585577406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25051518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051518_18-07-2025_01_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25051518 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_P25051518_18-07-2025_01_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25051529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051533, 'pht': 3726}}" where mtr_portfolio_id = 25051518 and dashboard_run_id = 1995159 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`=25051518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710091, 0.037040310585577406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051518_18-07-2025_01_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25051522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25051523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25051524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25051525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25051526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25051527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25051528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25051529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25051530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25051531, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25051532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25051533, '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 = 25051963 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': 3305191, 'mtr_portfolio_id': 25051963, 'created_at': datetime.datetime(2025, 7, 18, 1, 16, 57), 'result': '0.03607826930318677', 'result_long': None, 'result_double': None}] Qualite : 0.03607826930318677 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25051963 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051963_18-07-2025_01_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25051963 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_P25051963_18-07-2025_01_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052024, 'pht': 3726}}" where mtr_portfolio_id = 25051963 and dashboard_run_id = 1995159 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`=25051963 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710092, 0.03607826930318677, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25051963_18-07-2025_01_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052024, '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 = 25052528 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': 3305239, 'mtr_portfolio_id': 25052528, 'created_at': datetime.datetime(2025, 7, 18, 1, 33), 'result': '0.03558030465879873', 'result_long': None, 'result_double': None}] Qualite : 0.03558030465879873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25052528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052528_18-07-2025_01_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25052528 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_P25052528_18-07-2025_01_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052566, 'pht': 3726}}" where mtr_portfolio_id = 25052528 and dashboard_run_id = 1995159 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`=25052528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710093, 0.03558030465879873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052528_18-07-2025_01_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052566, '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 = 25052865 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': 3305275, 'mtr_portfolio_id': 25052865, 'created_at': datetime.datetime(2025, 7, 18, 1, 46, 59), 'result': '0.0331059705452311', 'result_long': None, 'result_double': None}] Qualite : 0.0331059705452311 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25052865 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052865_18-07-2025_01_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25052865 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_P25052865_18-07-2025_01_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052904, 'pht': 3726}}" where mtr_portfolio_id = 25052865 and dashboard_run_id = 1995159 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`=25052865 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710094, 0.0331059705452311, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25052865_18-07-2025_01_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25052893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25052894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25052895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25052896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25052897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25052898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25052899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25052900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25052901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25052902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25052903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25052904, '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 = 25053274 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': 3305313, 'mtr_portfolio_id': 25053274, 'created_at': datetime.datetime(2025, 7, 18, 2, 3, 1), 'result': '0.05500904591975209', 'result_long': None, 'result_double': None}] Qualite : 0.05500904591975209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25053274 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053274_18-07-2025_02_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25053274 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_P25053274_18-07-2025_02_03_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053288, 'pht': 3726}}" where mtr_portfolio_id = 25053274 and dashboard_run_id = 1995159 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`=25053274 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710095, 0.05500904591975209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053274_18-07-2025_02_03_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053288, '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 = 25053866 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': 3305372, 'mtr_portfolio_id': 25053866, 'created_at': datetime.datetime(2025, 7, 18, 2, 16, 31), 'result': '0.04366413222837129', 'result_long': None, 'result_double': None}] Qualite : 0.04366413222837129 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25053866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053866_18-07-2025_02_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25053866 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_P25053866_18-07-2025_02_16_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053889, 'pht': 3726}}" where mtr_portfolio_id = 25053866 and dashboard_run_id = 1995159 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`=25053866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710096, 0.04366413222837129, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25053866_18-07-2025_02_16_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25053878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25053879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25053880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25053881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25053882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25053883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25053884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25053885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25053886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25053887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25053888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25053889, '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 = 25054362 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': 3305414, 'mtr_portfolio_id': 25054362, 'created_at': datetime.datetime(2025, 7, 18, 2, 30, 59), 'result': '0.034217046482434135', 'result_long': None, 'result_double': None}] Qualite : 0.034217046482434135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25054362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054362_18-07-2025_02_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25054362 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_P25054362_18-07-2025_02_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054376, 'pht': 3726}}" where mtr_portfolio_id = 25054362 and dashboard_run_id = 1995159 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`=25054362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710097, 0.034217046482434135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054362_18-07-2025_02_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054376, '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 = 25054701 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': 3305448, 'mtr_portfolio_id': 25054701, 'created_at': datetime.datetime(2025, 7, 18, 2, 46, 59), 'result': '0.03795276141768283', 'result_long': None, 'result_double': None}] Qualite : 0.03795276141768283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25054701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054701_18-07-2025_02_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25054701 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_P25054701_18-07-2025_02_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054716, 'pht': 3726}}" where mtr_portfolio_id = 25054701 and dashboard_run_id = 1995159 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`=25054701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710098, 0.03795276141768283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25054701_18-07-2025_02_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25054705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25054706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25054707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25054708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25054709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25054710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25054711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25054712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25054713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25054714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25054715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25054716, '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 = 25055134 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': 3305490, 'mtr_portfolio_id': 25055134, 'created_at': datetime.datetime(2025, 7, 18, 3, 0, 31), 'result': '0.027038863912330242', 'result_long': None, 'result_double': None}] Qualite : 0.027038863912330242 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25055134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055134_18-07-2025_03_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25055134 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_P25055134_18-07-2025_03_00_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055148, 'pht': 3726}}" where mtr_portfolio_id = 25055134 and dashboard_run_id = 1995159 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`=25055134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710099, 0.027038863912330242, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055134_18-07-2025_03_00_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055147, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055148, '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 = 25055501 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': 3305538, 'mtr_portfolio_id': 25055501, 'created_at': datetime.datetime(2025, 7, 18, 3, 16, 59), 'result': '0.04279233537929057', 'result_long': None, 'result_double': None}] Qualite : 0.04279233537929057 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25055501 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055501_18-07-2025_03_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25055501 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_P25055501_18-07-2025_03_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055561, 'pht': 3726}}" where mtr_portfolio_id = 25055501 and dashboard_run_id = 1995159 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`=25055501 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710100, 0.04279233537929057, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25055501_18-07-2025_03_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25055550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25055551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25055552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25055553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25055554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25055555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25055556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25055557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25055558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25055559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25055560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25055561, '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 = 25056002 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': 3305576, 'mtr_portfolio_id': 25056002, 'created_at': datetime.datetime(2025, 7, 18, 3, 31, 1), 'result': '0.039728384786930804', 'result_long': None, 'result_double': None}] Qualite : 0.039728384786930804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25056002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056002_18-07-2025_03_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25056002 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_P25056002_18-07-2025_03_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056015, 'pht': 3726}}" where mtr_portfolio_id = 25056002 and dashboard_run_id = 1995159 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`=25056002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710101, 0.039728384786930804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056002_18-07-2025_03_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056015, '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 = 25056398 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': 3305624, 'mtr_portfolio_id': 25056398, 'created_at': datetime.datetime(2025, 7, 18, 3, 47, 28), 'result': '0.039269474110113695', 'result_long': None, 'result_double': None}] Qualite : 0.039269474110113695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25056398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056398_18-07-2025_03_47_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25056398 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_P25056398_18-07-2025_03_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056436, 'pht': 3726}}" where mtr_portfolio_id = 25056398 and dashboard_run_id = 1995159 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`=25056398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710102, 0.039269474110113695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056398_18-07-2025_03_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056432, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056436, '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 = 25056827 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': 3305665, 'mtr_portfolio_id': 25056827, 'created_at': datetime.datetime(2025, 7, 18, 4, 2, 57), 'result': '0.048977192172787454', 'result_long': None, 'result_double': None}] Qualite : 0.048977192172787454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25056827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056827_18-07-2025_04_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25056827 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_P25056827_18-07-2025_04_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056866, 'pht': 3726}}" where mtr_portfolio_id = 25056827 and dashboard_run_id = 1995159 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`=25056827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710103, 0.048977192172787454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25056827_18-07-2025_04_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25056855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25056856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25056857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25056858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25056859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25056860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25056861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25056862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25056863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25056864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25056866, '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 = 25059633 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': 3305940, 'mtr_portfolio_id': 25059633, 'created_at': datetime.datetime(2025, 7, 18, 5, 33), 'result': '0.04277201208303791', 'result_long': None, 'result_double': None}] Qualite : 0.04277201208303791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25059633 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25059633_18-07-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25059633 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_P25059633_18-07-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25059662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25059663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25059664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25059665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25059666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25059667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25059668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25059669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25059670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25059671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25059672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25059673, 'pht': 3726}}" where mtr_portfolio_id = 25059633 and dashboard_run_id = 1995161 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`=25059633 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710104, 0.04277201208303791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25059633_18-07-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25059662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25059663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25059664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25059665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25059666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25059667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25059668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25059669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25059670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25059671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25059672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25059673, '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 = 25060055 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': 3305981, 'mtr_portfolio_id': 25060055, 'created_at': datetime.datetime(2025, 7, 18, 5, 46, 30), 'result': '0.036640002987499705', 'result_long': None, 'result_double': None}] Qualite : 0.036640002987499705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25060055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060055_18-07-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25060055 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_P25060055_18-07-2025_05_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25060083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060094, 'pht': 3726}}" where mtr_portfolio_id = 25060055 and dashboard_run_id = 1995161 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`=25060055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710105, 0.036640002987499705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060055_18-07-2025_05_46_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25060083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060094, '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 = 25060470 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': 3306278, 'mtr_portfolio_id': 25060470, 'created_at': datetime.datetime(2025, 7, 18, 6, 0, 59), 'result': '0.039369690377645476', 'result_long': None, 'result_double': None}] Qualite : 0.039369690377645476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25060470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060470_18-07-2025_06_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25060470 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_P25060470_18-07-2025_06_01_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25060487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060497, 'pht': 3726}}" where mtr_portfolio_id = 25060470 and dashboard_run_id = 1995161 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`=25060470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710106, 0.039369690377645476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25060470_18-07-2025_06_01_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25060486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25060487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25060488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25060489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25060490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25060491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25060492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25060493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25060494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25060495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25060496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25060497, '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 = 25061056 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': 3306336, 'mtr_portfolio_id': 25061056, 'created_at': datetime.datetime(2025, 7, 18, 6, 10, 59), 'result': '0.04212111804890812', 'result_long': None, 'result_double': None}] Qualite : 0.04212111804890812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25061056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061056_18-07-2025_06_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25061056 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_P25061056_18-07-2025_06_11_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061086, 'pht': 3726}}" where mtr_portfolio_id = 25061056 and dashboard_run_id = 1995161 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`=25061056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12710107, 0.04212111804890812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25061056_18-07-2025_06_11_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25061071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25061072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25061074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25061075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25061076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25061078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25061079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25061080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25061082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25061083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25061084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25061086, '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 (25050193,25050840,25051132,25051518,25051963,25052528,25052865,25053274,25053866,25054362,25054701,25055134,25055501,25056002,25056398,25056827,25059633,25060055,25060470,25061056) result : ((1372565106,), (1372565154,), (1372565199,), (1372565251,), (1372565300,), (1372565740,), (1372565768,), (1372565794,), (1372565818,), (1372565835,), (1372565866,), (1372566104,), (1372566130,), (1372566158,), (1372566183,), (1372566207,), (1372566253,), (1372566630,), (1372566651,), (1372566674,), (1372566675,), (1372566700,), (1372566710,), (1372566737,), (1372566738,), (1372566739,), (1372566740,), (1372566741,), (1372566744,), (1372566773,), (1372566775,), (1372566777,), (1372566778,), (1372566779,), (1372566782,), (1372566808,), (1372566810,), (1372566811,), (1372566813,), (1372566814,), (1372566816,), (1372566841,), (1372566844,), (1372566847,), (1372566849,), (1372566852,), (1372566855,), (1372567020,), (1372567023,), (1372567025,), (1372567028,), (1372567031,), (1372567033,), (1372567045,), (1372567048,), (1372567049,), (1372567052,), (1372567054,), (1372567067,), (1372567187,), (1372567190,), (1372567192,), (1372567194,), (1372567196,), (1372567199,), (1372567218,), (1372567221,), (1372567225,), (1372567227,), (1372567229,), (1372567233,), (1372567263,), (1372567265,), (1372567267,), (1372567268,), (1372567269,), (1372567272,), (1372567309,), (1372567313,), (1372567315,), (1372567317,), (1372567318,), (1372567320,), (1372567362,), (1372567364,), (1372567367,), (1372567370,), (1372567372,), (1372567374,), (1372567502,), (1372567509,), (1372567514,), (1372567516,), (1372567519,), (1372567522,), (1372567543,), (1372567544,), (1372567545,), (1372567546,), (1372567547,), (1372567548,), (1372567598,), (1372567599,), (1372567600,), (1372567601,), (1372567603,), (1372567605,), (1372567636,), (1372567637,), (1372567638,), (1372567639,), (1372567641,), (1372567644,), (1372567669,), (1372567670,), (1372567671,), (1372567672,), (1372567674,), (1372567675,), (1372567722,), (1372567723,), (1372567724,), (1372567725,), (1372567727,), (1372567729,), (1372567793,), (1372567795,), (1372567797,), (1372567798,), (1372567800,), (1372567802,), (1372567843,), (1372567846,), (1372567849,), (1372567852,), (1372567853,), (1372567855,), (1372567880,), (1372567882,), (1372567883,), (1372567885,), (1372567887,), (1372567889,), (1372567914,), (1372567917,), (1372567918,), (1372567921,), (1372567923,), (1372567926,), (1372567940,), (1372567943,), (1372567944,), (1372567945,), (1372567947,), (1372567948,), (1372567968,), (1372568013,), (1372568016,), (1372568019,), (1372568021,), (1372568023,), (1372568025,), (1372568038,), (1372568042,), (1372568045,), (1372568048,), (1372568050,), (1372568052,), (1372568070,), (1372568072,), (1372568074,), (1372568075,), (1372568079,), (1372568081,), (1372568127,), (1372568134,), (1372568142,), (1372568149,), (1372568150,), (1372568152,), (1372568178,), (1372568188,), (1372568190,), (1372568191,), (1372568193,), (1372568195,), (1372568239,), (1372568242,), (1372568245,), (1372568248,), (1372568253,), (1372568255,), (1372568275,), (1372568277,), (1372568278,), (1372568280,), (1372568282,), (1372568285,), (1372568303,), (1372568305,), (1372568307,), (1372568308,), (1372568310,), (1372568311,), (1372568332,), (1372568335,), (1372568337,), (1372568338,), (1372568339,), (1372568342,), (1372568359,), (1372568361,), (1372568362,), (1372568363,), (1372568364,), (1372568366,), (1372568388,), (1372568401,), (1372568415,), (1372568416,), (1372568430,), (1372568445,), (1372568488,), (1372568490,), (1372568491,), (1372568493,), (1372568494,), (1372568496,), (1372568515,), (1372568518,), (1372568521,), (1372568523,), (1372568525,), (1372568527,), (1372568578,), (1372568580,), (1372568581,), (1372568583,), (1372568585,), (1372568587,), (1372568610,), (1372568612,), (1372568614,), (1372568615,), (1372568617,), (1372568626,), (1372568657,), (1372568684,), (1372568686,), (1372568689,), (1372568691,), (1372568694,), (1372568696,), (1372568720,), (1372568728,), (1372568734,), (1372568736,), (1372568738,), (1372568740,), (1372568757,), (1372568759,), (1372568761,), (1372568762,), (1372568764,), (1372568766,), (1372568803,), (1372568804,), (1372568805,), (1372568806,), (1372568807,), (1372568821,), (1372568873,), (1372568883,), (1372568894,), (1372568899,), (1372568901,), (1372568903,), (1372568922,), (1372568924,), (1372568926,), (1372568927,), (1372568928,), (1372568931,), (1372568955,), (1372568958,), (1372568961,), (1372568962,), (1372568964,), (1372568967,), (1372569003,), (1372569005,), (1372569007,), (1372569008,), (1372569010,), (1372569012,), (1372569026,), (1372569034,), (1372569041,), (1372569049,), (1372569053,), (1372569056,), (1372569082,), (1372569091,), (1372569099,), (1372569101,), (1372569104,), (1372569107,), (1372569121,), (1372569122,), (1372569123,), (1372569124,), (1372569126,), (1372569128,), (1372569154,), (1372569157,), (1372569159,), (1372569161,), (1372569163,), (1372569165,), (1372569183,), (1372569190,), (1372569195,), (1372569197,), (1372569198,), (1372569200,), (1372569215,), (1372569216,), (1372569218,), (1372569219,), (1372569221,), (1372569223,), (1372569273,), (1372569276,), (1372569279,), (1372569281,), (1372569284,), (1372569286,), (1372569755,), (1372569780,), (1372569809,), (1372569846,), (1372569884,), (1372569928,), (1372570299,), (1372570329,), (1372570381,), (1372570410,), (1372570437,), (1372570465,), (1372570889,), (1372570922,), (1372570968,), (1372571007,), (1372571039,), (1372571068,), (1372571231,), (1372571232,), (1372571233,), (1372571235,), (1372571246,), (1372571261,), (1372571484,), (1372571512,), (1372571517,), (1372571518,), (1372571539,), (1372571561,), (1372571583,), (1372571585,), (1372571586,), (1372571588,), (1372571591,), (1372571594,), (1372571617,), (1372571618,), (1372571619,), (1372571620,), (1372571621,), (1372571623,), (1372571646,), (1372571648,), (1372571650,), (1372571652,), (1372571654,), (1372571656,), (1372571698,), (1372571700,), (1372571703,), (1372571704,), (1372571705,), (1372571709,), (1372571735,), (1372571737,), (1372571738,), (1372571739,), (1372571741,), (1372571743,), (1372571776,), (1372571778,), (1372571779,), (1372571781,), (1372571783,), (1372571785,), (1372571873,), (1372571874,), (1372571876,), (1372571878,), (1372571880,), (1372571882,), (1372571915,), (1372571919,), (1372571923,), (1372571925,), (1372571928,), (1372571930,), (1372571985,), (1372571988,), (1372571990,), (1372571993,), (1372571995,), (1372571997,), (1372572024,), (1372572028,), (1372572032,), (1372572034,), (1372572037,), (1372572040,), (1372572061,), (1372572065,), (1372572068,), (1372572070,), (1372572073,), (1372572078,), (1372572110,), (1372572111,), (1372572112,), (1372572125,), (1372572127,), (1372572129,), (1372572152,), (1372572153,), (1372572154,), (1372572155,), (1372572157,), (1372572159,), (1372572197,), (1372572199,), (1372572200,), (1372572202,), (1372572203,), (1372572205,), (1372572228,), (1372572232,), (1372572236,), (1372572238,), (1372572242,), (1372572244,), (1372572272,), (1372572274,), (1372572276,), (1372572277,), (1372572279,), (1372572281,), (1372572343,), (1372572346,), (1372572348,), (1372572350,), (1372572365,), (1372572370,), (1372572404,), (1372572407,), (1372572408,), (1372572411,), (1372572415,), (1372572419,), (1372572472,), (1372572475,), (1372572477,), (1372572479,), (1372572481,), (1372572484,), (1372572514,), (1372572518,), (1372572520,), (1372572526,), (1372572528,), (1372572531,), (1372572557,), (1372572588,), (1372572589,), (1372572590,), (1372572591,), (1372572593,), (1372572594,), (1372572621,), (1372572623,), (1372572624,), (1372572626,), (1372572627,), (1372572628,), (1372572675,), (1372572680,), (1372572683,), (1372572686,), (1372572703,), (1372572705,), (1372572729,), (1372572731,), (1372572733,), (1372572734,), (1372572736,), (1372572738,), (1372572762,), (1372572765,), (1372572767,), (1372572769,), (1372572773,), (1372572776,), (1372572821,), (1372572823,), (1372572825,), (1372572826,), (1372572828,), (1372572830,), (1372572886,), (1372572888,), (1372572889,), (1372572891,), (1372572893,), (1372572895,), (1372572943,), (1372572946,), (1372572947,), (1372572950,), (1372572952,), (1372572954,), (1372572984,), (1372572987,), (1372572990,), (1372572992,), (1372572995,), (1372572997,), (1372573026,), (1372573028,), (1372573031,), (1372573033,), (1372573035,), (1372573037,), (1372573048,), (1372573050,), (1372573051,), (1372573053,), (1372573055,), (1372573059,), (1372573093,), (1372573094,), (1372573096,), (1372573098,), (1372573099,), (1372573101,), (1372573159,), (1372573161,), (1372573162,), (1372573164,), (1372573166,), (1372573167,), (1372573194,), (1372573197,), (1372573199,), (1372573200,), (1372573201,), (1372573203,), (1372573230,), (1372573233,), (1372573236,), (1372573237,), (1372573240,), (1372573243,), (1372573273,), (1372573275,), (1372573277,), (1372573279,), (1372573282,), (1372573285,), (1372573301,), (1372573303,), (1372573304,), (1372573306,), (1372573309,), (1372573312,), (1372573356,), (1372573357,), (1372573359,), (1372573361,), (1372573362,), (1372573373,), (1372573417,), (1372573421,), (1372573425,), (1372573426,), (1372573430,), (1372573432,), (1372573450,), (1372573452,), (1372573454,), (1372573455,), (1372573457,), (1372573460,), (1372573475,), (1372573476,), (1372573481,), (1372573482,), (1372573484,), (1372573486,), (1372573503,), (1372573504,), (1372573506,), (1372573508,), (1372573511,), (1372573525,), (1372573554,), (1372573561,), (1372573570,), (1372573573,), (1372573576,), (1372573580,), (1372573599,), (1372573631,), (1372573634,), (1372573636,), (1372573638,), (1372573642,), (1372573644,), (1372573711,), (1372573712,), (1372573714,), (1372573716,), (1372573718,), (1372573720,), (1372573733,), (1372573735,), (1372573738,), (1372573739,), (1372573741,), (1372573743,), (1372573785,), (1372573787,), (1372573790,), (1372573791,), (1372573793,), (1372573795,), (1372573811,), (1372573814,), (1372573816,), (1372573817,), (1372573819,), (1372573821,), (1372573836,), (1372573838,), (1372573839,), (1372573841,), (1372573842,), (1372573844,), (1372573857,), (1372573859,), (1372573861,), (1372573863,), (1372573864,), (1372573867,), (1372573926,), (1372573953,), (1372573979,), (1372574013,), (1372574045,), (1372574069,), (1372574267,), (1372574317,), (1372574342,), (1372574379,), (1372574416,), (1372574440,), (1372574667,), (1372574671,), (1372574675,), (1372574678,), (1372574681,), (1372574684,), (1372574748,), (1372574785,), (1372574788,), (1372574790,), (1372574794,), (1372574796,), (1372574798,), (1372574840,), (1372574841,), (1372574842,), (1372574843,), (1372574855,), (1372574865,), (1372575093,), (1372575139,), (1372575186,), (1372575235,), (1372575288,), (1372575341,), (1372575788,), (1372575816,), (1372575842,), (1372575869,), (1372575902,), (1372575948,), (1372576179,), (1372576180,), (1372576217,), (1372576251,), (1372576282,), (1372576308,), (1372576479,), (1372576481,), (1372576505,), (1372576526,), (1372576528,), (1372576530,), (1372576580,), (1372576582,), (1372576584,), (1372576585,), (1372576587,), (1372576590,), (1372576615,), (1372576618,), (1372576619,), (1372576621,), (1372576624,), (1372576627,), (1372576646,), (1372576649,), (1372576650,), (1372576652,), (1372576654,), (1372576656,), (1372576692,), (1372576696,), (1372576699,), (1372576701,), (1372576704,), (1372576707,), (1372576727,), (1372576729,), (1372576731,), (1372576732,), (1372576734,), (1372576736,), (1372576764,), (1372576765,), (1372576767,), (1372576769,), (1372576772,), (1372576776,), (1372576791,), (1372576793,), (1372576794,), (1372576796,), (1372576798,), (1372576800,), (1372576826,), (1372576828,), (1372576829,), (1372576831,), (1372576834,), (1372576836,), (1372576852,), (1372576856,), (1372576865,), (1372576867,), (1372576869,), (1372576872,), (1372576901,), (1372576903,), (1372576904,), (1372576905,), (1372576907,), (1372576910,), (1372576947,), (1372576948,), (1372576949,), (1372576950,), (1372576952,), (1372576954,), (1372576971,), (1372576972,), (1372576973,), (1372576974,), (1372576975,), (1372576978,), (1372577029,), (1372577031,), (1372577032,), (1372577034,), (1372577036,), (1372577039,), (1372577093,), (1372577143,), (1372577149,), (1372577152,), (1372577154,), (1372577157,), (1372577160,), (1372577211,), (1372577213,), (1372577215,), (1372577216,), (1372577218,), (1372577221,), (1372577241,), (1372577245,), (1372577248,), (1372577251,), (1372577253,), (1372577255,), (1372577264,), (1372577267,), (1372577269,), (1372577270,), (1372577273,), (1372577275,), (1372577316,), (1372577318,), (1372577319,), (1372577320,), (1372577322,), (1372577325,), (1372577348,), (1372577350,), (1372577351,), (1372577352,), (1372577354,), (1372577356,), (1372577398,), (1372577400,), (1372577402,), (1372577404,), (1372577407,), (1372577411,), (1372577430,), (1372577468,), (1372577473,), (1372577475,), (1372577478,), (1372577480,), (1372577483,), (1372577547,), (1372577549,), (1372577551,), (1372577552,), (1372577553,), (1372577555,), (1372577578,), (1372577580,), (1372577584,), (1372577586,), (1372577589,), (1372577592,), (1372577650,), (1372577653,), (1372577654,), (1372577656,), (1372577658,), (1372577660,), (1372577679,), (1372577682,), (1372577685,), (1372577687,), (1372577690,), (1372577693,), (1372577716,), (1372577718,), (1372577720,), (1372577721,), (1372577722,), (1372577724,), (1372577738,), (1372577739,), (1372577740,), (1372577742,), (1372577745,), (1372577747,), (1372577771,), (1372577772,), (1372577773,), (1372577774,), (1372577776,), (1372577779,), (1372577833,), (1372577837,), (1372577838,), (1372577839,), (1372577841,), (1372577843,), (1372577861,), (1372577863,), (1372577866,), (1372577869,), (1372577872,), (1372577877,), (1372577893,), (1372577897,), (1372577901,), (1372577902,), (1372577906,), (1372577909,), (1372577969,), (1372577971,), (1372577975,), (1372577976,), (1372577980,), (1372577983,), (1372578012,), (1372578016,), (1372578019,), (1372578020,), (1372578023,), (1372578025,), (1372578050,), (1372578068,), (1372578075,), (1372578088,), (1372578090,), (1372578094,), (1372578152,), (1372578154,), (1372578156,), (1372578157,), (1372578159,), (1372578162,), (1372578180,), (1372578181,), (1372578182,), (1372578183,), (1372578185,), (1372578188,), (1372578206,), (1372578207,), (1372578215,), (1372578216,), (1372578218,), (1372578221,), (1372578241,), (1372578243,), (1372578257,), (1372578266,), (1372578268,), (1372578270,), (1372578288,), (1372578292,), (1372578306,), (1372578315,), (1372578317,), (1372578337,), (1372578347,), (1372578349,), (1372578352,), (1372578355,), (1372578356,), (1372578358,), (1372578422,), (1372578425,), (1372578427,), (1372578430,), (1372578433,), (1372578436,), (1372578507,), (1372578509,), (1372578511,), (1372578512,), (1372578513,), (1372578516,), (1372578534,), (1372578537,), (1372578541,), (1372578543,), (1372578546,), (1372578548,), (1372578599,), (1372578634,), (1372578638,), (1372578640,), (1372578641,), (1372578643,), (1372578646,), (1372578662,), (1372578665,), (1372578666,), (1372578668,), (1372578669,), (1372578671,), (1372578676,), (1372578677,), (1372578679,), (1372578681,), (1372578683,), (1372578685,), (1372578713,), (1372578714,), (1372578715,), (1372578716,), (1372578717,), (1372578719,), (1372578759,), (1372578762,), (1372578764,), (1372578767,), (1372578770,), (1372578772,), (1372579854,), (1372580337,), (1372580392,), (1372580444,), (1372580473,), (1372580500,), (1372580768,), (1372580772,), (1372580774,), (1372580776,), (1372580789,), (1372580816,), (1372580988,), (1372580990,), (1372581007,), (1372581034,), (1372581041,), (1372581043,), (1372581057,), (1372581059,), (1372581060,), (1372581062,), (1372581063,), (1372581066,), (1372581084,), (1372581087,), (1372581090,), (1372581091,), (1372581093,), (1372581096,), (1372581110,), (1372581111,), (1372581113,), (1372581114,), (1372581117,), (1372581120,), (1372581150,), (1372581151,), (1372581152,), (1372581153,), (1372581155,), (1372581157,), (1372581206,), (1372581208,), (1372581209,), (1372581211,), (1372581213,), (1372581215,), (1372581235,), (1372581237,), (1372581238,), (1372581240,), (1372581241,), (1372581243,), (1372581256,), (1372581259,), (1372581261,), (1372581262,), (1372581265,), (1372581268,), (1372581290,), (1372581291,), (1372581293,), (1372581295,), (1372581296,), (1372581298,), (1372581328,), (1372581331,), (1372581335,), (1372581336,), (1372581343,), (1372581346,), (1372581369,), (1372581370,), (1372581371,), (1372581372,), (1372581374,), (1372581376,), (1372581399,), (1372581400,), (1372581401,), (1372581402,), (1372581404,), (1372581406,), (1372581430,), (1372581452,), (1372581455,), (1372581457,), (1372581469,), (1372581488,), (1372581491,), (1372581504,), (1372581506,), (1372581508,), (1372581510,), (1372581533,), (1372581544,), (1372581568,), (1372581570,), (1372581580,), (1372581611,), (1372581623,), (1372581626,), (1372581643,), (1372581644,), (1372581645,), (1372581647,), (1372581650,), (1372581653,), (1372581673,), (1372581675,), (1372581690,), (1372581693,), (1372581696,), (1372581698,), (1372581727,), (1372581730,), (1372581732,), (1372581733,), (1372581735,), (1372581737,), (1372581755,), (1372581757,), (1372581759,), (1372581760,), (1372581762,), (1372581764,), (1372581793,), (1372581795,), (1372581796,), (1372581798,), (1372581799,), (1372581801,), (1372581868,), (1372581871,), (1372581874,), (1372581875,), (1372581877,), (1372581881,), (1372581904,), (1372581905,), (1372581907,), (1372581909,), (1372581911,), (1372581913,), (1372581930,), (1372581931,), (1372581932,), (1372581933,), (1372581935,), (1372581937,), (1372581952,), (1372581954,), (1372581955,), (1372581957,), (1372581959,), (1372581961,), (1372581988,), (1372581993,), (1372582001,), (1372582003,), (1372582005,), (1372582008,), (1372582023,), (1372582025,), (1372582027,), (1372582028,), (1372582031,), (1372582034,), (1372582058,), (1372582061,), (1372582063,), (1372582066,), (1372582067,), (1372582070,), (1372582105,), (1372582107,), (1372582112,), (1372582118,), (1372582119,), (1372582120,), (1372582145,), (1372582155,), (1372582163,), (1372582164,), (1372582165,), (1372582166,), (1372582195,), (1372582196,), (1372582197,), (1372582198,), (1372582199,), (1372582202,), (1372582233,), (1372582236,), (1372582238,), (1372582240,), (1372582241,), (1372582243,), (1372582264,), (1372582267,), (1372582270,), (1372582271,), (1372582273,), (1372582275,), (1372582290,), (1372582318,), (1372582371,), (1372582378,), (1372582382,), (1372582384,), (1372582410,), (1372582415,), (1372582463,), (1372582472,), (1372582486,), (1372582488,), (1372582489,), (1372582492,), (1372582587,), (1372582589,), (1372582592,), (1372582598,), (1372582622,), (1372582648,), (1372582695,), (1372582698,), (1372582700,), (1372582707,), (1372582711,), (1372582713,), (1372582733,), (1372582735,), (1372582749,), (1372582764,), (1372582765,), (1372582767,), (1372582797,), (1372582803,), (1372582827,), (1372582828,), (1372582829,), (1372582849,), (1372582917,), (1372582919,), (1372582921,), (1372582923,), (1372582939,), (1372582963,), (1372583025,), (1372583027,), (1372583030,), (1372583031,), (1372583033,), (1372583037,), (1372583052,), (1372583053,), (1372583057,), (1372583060,), (1372583061,), (1372583064,), (1372583093,), (1372583096,), (1372583097,), (1372583098,), (1372583099,), (1372583102,), (1372583136,), (1372583139,), (1372583140,), (1372583143,), (1372583146,), (1372583149,), (1372583167,), (1372583170,), (1372583173,), (1372583174,), (1372583177,), (1372583180,), (1372583198,), (1372583200,), (1372583202,), (1372583204,), (1372583206,), (1372583208,), (1372583253,), (1372583255,), (1372583257,), (1372583258,), (1372583260,), (1372583263,), (1372583279,), (1372583281,), (1372583282,), (1372583284,), (1372583286,), (1372583289,), (1372583309,), (1372583311,), (1372583314,), (1372583316,), (1372583318,), (1372583321,), (1372583335,), (1372583342,), (1372583345,), (1372583347,), (1372583349,), (1372583350,), (1372583378,), (1372583381,), (1372583384,), (1372583386,), (1372583387,), (1372583389,), (1372583403,), (1372583405,), (1372583407,), (1372583409,), (1372583411,), (1372583414,), (1372583446,), (1372583447,), (1372583448,), (1372583449,), (1372583450,), (1372583451,), (1372583530,), (1372583554,), (1372583578,), (1372583603,), (1372583627,), (1372583651,), (1372584316,), (1372584392,), (1372584440,), (1372584483,), (1372584528,), (1372584575,), (1372590078,), (1372590080,), (1372590092,), (1372590093,), (1372590104,), (1372590106,), (1372590142,), (1372590179,), (1372590204,), (1372590214,), (1372590227,), (1372590228,), (1372590246,), (1372590276,), (1372590279,), (1372590282,), (1372590283,), (1372590285,), (1372590286,), (1372590303,), (1372590309,), (1372590318,), (1372590319,), (1372590320,), (1372590321,), (1372590329,), (1372590331,), (1372590333,), (1372590335,), (1372590337,), (1372590339,), (1372590358,), (1372590369,), (1372590372,), (1372590374,), (1372590376,), (1372590377,), (1372590392,), (1372590394,), (1372590395,), (1372590397,), (1372590398,), (1372590399,), (1372590409,), (1372590422,), (1372590429,), (1372590431,), (1372590434,), (1372590438,), (1372590476,), (1372590477,), (1372590480,), (1372590484,), (1372590488,), (1372590493,), (1372590503,), (1372590513,), (1372590514,), (1372590516,), (1372590517,), (1372590519,), (1372590548,), (1372590550,), (1372590552,), (1372590554,), (1372590555,), (1372590557,), (1372590623,), (1372590634,), (1372590636,), (1372590638,), (1372590640,), (1372590642,), (1372590687,), (1372590690,), (1372590693,), (1372590694,), (1372590695,), (1372590696,), (1372590707,), (1372590718,), (1372590721,), (1372590722,), (1372590723,), (1372590724,), (1372590750,), (1372590752,), (1372590757,), (1372590759,), (1372590761,), (1372590763,), (1372590774,), (1372590784,), (1372590786,), (1372590788,), (1372590790,), (1372590792,), (1372590808,), (1372590810,), (1372590811,), (1372590813,), (1372590814,), (1372590815,), (1372590822,), (1372590833,), (1372590835,), (1372590836,), (1372590837,), (1372590838,), (1372590861,), (1372590880,), (1372590888,), (1372590889,), (1372590891,), (1372590892,), (1372590895,), (1372590916,), (1372590917,), (1372590918,), (1372590919,), (1372590920,), (1372590921,), (1372590933,), (1372590935,), (1372590944,), (1372590946,), (1372590948,), (1372590950,), (1372590962,), (1372590964,), (1372590967,), (1372590969,), (1372590971,), (1372590972,), (1372590983,), (1372590997,), (1372591000,), (1372591002,), (1372591004,), (1372591006,), (1372591033,), (1372591036,), (1372591038,), (1372591039,), (1372591041,), (1372591042,), (1372591055,), (1372591066,), (1372591069,), (1372591071,), (1372591073,), (1372591074,), (1372591101,), (1372591104,), (1372591106,), (1372591108,), (1372591110,), (1372591112,), (1372591123,), (1372591136,), (1372591138,), (1372591139,), (1372591140,), (1372591141,), (1372591156,), (1372591158,), (1372591161,), (1372591164,), (1372591165,), (1372591166,), (1372591173,), (1372591174,), (1372591186,), (1372591188,), (1372591190,), (1372591201,), (1372591214,), (1372591217,), (1372591218,), (1372591220,), (1372591221,), (1372591228,), (1372591247,), (1372591248,), (1372591258,), (1372591259,), (1372591260,), (1372591262,), (1372591287,), (1372591288,), (1372591289,), (1372591290,), (1372591291,), (1372591292,), (1372591309,), (1372591321,), (1372591324,), (1372591325,), (1372591326,), (1372591327,), (1372591356,), (1372591359,), (1372591361,), (1372591363,), (1372591365,), (1372591366,), (1372591371,), (1372591372,), (1372591380,), (1372591389,), (1372591390,), (1372591391,), (1372591411,), (1372591414,), (1372591416,), (1372591418,), (1372591419,), (1372591420,), (1372591427,), (1372591438,), (1372591441,), (1372591443,), (1372591444,), (1372591446,), (1372591487,), (1372591489,), (1372591491,), (1372591493,), (1372591494,), (1372591496,), (1372591502,), (1372591504,), (1372591505,), (1372591506,), (1372591508,), (1372591509,), (1372591534,), (1372591535,), (1372591536,), (1372591538,), (1372591540,), (1372591542,), (1372591635,), (1372591684,), (1372591742,), (1372591791,), (1372591840,), (1372591890,), (1372593219,), (1372593248,), (1372593296,), (1372593350,), (1372593382,), (1372593401,), (1372593595,), (1372593729,), (1372593738,), (1372593740,), (1372593742,), (1372593745,), (1372593749,), (1372593796,), (1372593800,), (1372593803,), (1372593806,), (1372593827,), (1372593848,), (1372593873,), (1372593877,), (1372593880,), (1372593883,), (1372593884,), (1372593887,), (1372593910,), (1372593911,), (1372593913,), (1372593915,), (1372593917,), (1372593923,), (1372593961,), (1372594008,), (1372594011,), (1372594013,), (1372594014,), (1372594015,), (1372594016,), (1372594042,), (1372594051,), (1372594052,), (1372594053,), (1372594055,), (1372594057,), (1372594087,), (1372594101,), (1372594106,), (1372594120,), (1372594125,), (1372594128,), (1372594165,), (1372594171,), (1372594183,), (1372594185,), (1372594188,), (1372594191,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18072025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25061056]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042] map_info['map_portfolio_photo'] : {25061056: [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042, 1372594016, 1372594015, 1372594014, 1372594013, 1372594011, 1372594008, 1372593961, 1372593923, 1372593917, 1372593915, 1372593913, 1372593911, 1372593910, 1372593887, 1372593884, 1372593883, 1372593880, 1372593877, 1372593873, 1372593848, 1372593827, 1372593806, 1372593803, 1372593800, 1372593796, 1372593749, 1372593745, 1372593742, 1372593740, 1372593738, 1372593729, 1372593595]} final : True mtd_id 4302 list_pids : [1372594191, 1372594188, 1372594185, 1372594183, 1372594171, 1372594165, 1372594128, 1372594125, 1372594120, 1372594106, 1372594101, 1372594087, 1372594057, 1372594055, 1372594053, 1372594052, 1372594051, 1372594042] Looping around the photos to save general results len do output : 1 /25061056Didn'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, '3306336') ('4302', '25061056', '1372594191', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594188', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594185', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594183', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594171', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594165', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594128', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594125', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594120', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594106', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594101', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594087', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594057', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594055', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594053', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594052', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594051', None, None, None, None, None, '3306336') ('4302', None, None, None, None, None, None, None, '3306336') ('4302', '25061056', '1372594042', None, None, None, None, None, '3306336') 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, '25061056', 'None', None, None, None, None, '3306336'), ('4302', '25061056', '1372594191', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594188', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594185', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594183', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594171', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594165', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594128', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594125', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594120', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594106', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594101', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594087', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594057', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594055', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594053', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594052', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594051', None, None, None, None, None, '3306336'), ('4302', '25061056', '1372594042', None, None, None, None, None, '3306336')] time used for this insertion : 0.016381025314331055 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3421471118927002 time spend to save output : 0.01658320426940918 total time spend for step 5 : 1.3587303161621094 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 (3306336) 2.43user 2.73system 0:08.70elapsed 59%CPU (0avgtext+0avgdata 160460maxresident)k 480inputs+13376outputs (2major+74863minor)pagefaults 0swaps