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 : 3735336 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 (4261826) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4261826) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636749 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4261826'] with mtr_portfolio_ids : ['29636749'] and first list_photo_ids : [] new path : /proc/3735336/ Name: python3 Umask: 0002 State: R (running) Tgid: 3735336 Ngid: 0 Pid: 3735336 PPid: 3735320 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3735336 NSpid: 3735336 NSpgid: 3734441 NSsid: 3734441 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105568 kB VmRSS: 105568 kB RssAnon: 66292 kB RssFile: 39276 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 572 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: 70 nonvoluntary_ctxt_switches: 221 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3735336', 'Ngid': '0', 'Pid': '3735336', 'PPid': '3735320', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3735336', 'NSpid': '3735336', 'NSpgid': '3734441', 'NSsid': '3734441', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105568 kB', 'VmRSS': '105568 kB', 'RssAnon': '66292 kB', 'RssFile': '39276 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '572 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': '70', 'nonvoluntary_ctxt_switches': '221'} ('datou_batch_current', '3735336', '1113364', '0', '1113364', '872092', '105568', b'', 'marlene', '4261826') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29636749) 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 (4261826 ) ) 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 (29636749) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400623344, 'portfolio_id': 29636749}, {'photo_id': 1400623341, 'portfolio_id': 29636749}, {'photo_id': 1400623339, 'portfolio_id': 29636749}, {'photo_id': 1400623313, 'portfolio_id': 29636749}, {'photo_id': 1400623310, 'portfolio_id': 29636749}, {'photo_id': 1400623273, 'portfolio_id': 29636749}, {'photo_id': 1400623270, 'portfolio_id': 29636749}, {'photo_id': 1400623268, 'portfolio_id': 29636749}, {'photo_id': 1400623267, 'portfolio_id': 29636749}, {'photo_id': 1400623265, 'portfolio_id': 29636749}, {'photo_id': 1400623249, 'portfolio_id': 29636749}, {'photo_id': 1400623247, 'portfolio_id': 29636749}, {'photo_id': 1400623246, 'portfolio_id': 29636749}, {'photo_id': 1400623243, 'portfolio_id': 29636749}, {'photo_id': 1400623223, 'portfolio_id': 29636749}, {'photo_id': 1400623220, 'portfolio_id': 29636749}, {'photo_id': 1400623217, 'portfolio_id': 29636749}, {'photo_id': 1400623054, 'portfolio_id': 29636749}, {'photo_id': 1400623053, 'portfolio_id': 29636749}, {'photo_id': 1400623035, 'portfolio_id': 29636749}, {'photo_id': 1400623033, 'portfolio_id': 29636749}, {'photo_id': 1400623010, 'portfolio_id': 29636749}, {'photo_id': 1400623007, 'portfolio_id': 29636749}] map_portfolio_id_photo_id: {29636749: [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007]} ##### 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.01898932456970215 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Dec 23 06:10:27 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 (29636749) 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 : 29636749 get user id for portfolio 29636749 get sub ptf for main ptf 29636749, type 3726 and hashtags ['Teint_Dans_La_Masse', 'kraft', 'environnement', 'plastique', 'mal_croppe', 'papier', 'cartonnette', 'Carton_brun', 'metal', 'autre_refus', 'Carton_gris', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29636749 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','environnement','plastique','mal_croppe','papier','cartonnette','Carton_brun','metal','autre_refus','Carton_gris','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29636749 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','environnement','plastique','mal_croppe','papier','cartonnette','Carton_brun','metal','autre_refus','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29636749, 'sub_port_id': 29636751, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235569, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'autre_refus': {'main_port_id': 29636749, 'sub_port_id': 29636752, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235570, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'mal_croppe': {'main_port_id': 29636749, 'sub_port_id': 29636753, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235571, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'cartonnette': {'main_port_id': 29636749, 'sub_port_id': 29636754, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235572, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'kraft': {'main_port_id': 29636749, 'sub_port_id': 29636755, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235573, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'Carton_gris': {'main_port_id': 29636749, 'sub_port_id': 29636756, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235574, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'metal': {'main_port_id': 29636749, 'sub_port_id': 29636757, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235575, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'papier': {'main_port_id': 29636749, 'sub_port_id': 29636758, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235576, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'Teint_Dans_La_Masse': {'main_port_id': 29636749, 'sub_port_id': 29636759, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235577, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'Carton_brun': {'main_port_id': 29636749, 'sub_port_id': 29636760, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235578, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'environnement': {'main_port_id': 29636749, 'sub_port_id': 29636761, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235579, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}, 'plastique': {'main_port_id': 29636749, 'sub_port_id': 29636762, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235580, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 8)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636751 , 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=29636749 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 (29636751) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636752 , 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=29636749 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 (29636752) result : ((1400623297,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636753 , 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=29636749 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 (29636753) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636754 , 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=29636749 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 (29636754) result : ((1400623299,), (1400623349,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636755 , 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=29636749 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 (29636755) result : ((1400623292,), (1400623293,), (1400623303,), (1400623304,), (1400623305,), (1400623306,), (1400623353,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636756 , 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=29636749 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 (29636756) result : ((1400623298,), (1400623348,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636757 , 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=29636749 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 (29636757) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636758 , 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=29636749 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 (29636758) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636759 , 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=29636749 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 (29636759) result : ((1400623113,), (1400623114,), (1400623279,), (1400623280,), (1400623281,), (1400623282,), (1400623295,), (1400623296,), (1400623347,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636760 , 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=29636749 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 (29636760) result : ((1400623069,), (1400623070,), (1400623071,), (1400623072,), (1400623073,), (1400623074,), (1400623116,), (1400623117,), (1400623118,), (1400623119,), (1400623120,), (1400623121,), (1400623125,), (1400623126,), (1400623127,), (1400623128,), (1400623284,), (1400623285,), (1400623286,), (1400623287,), (1400623300,), (1400623301,), (1400623302,), (1400623350,), (1400623351,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636761 , 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=29636749 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 (29636761) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29636762 , 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=29636749 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 (29636762) result : ((1400623289,), (1400623290,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29636749) result : ((1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29636749 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','environnement','plastique','mal_croppe','papier','cartonnette','Carton_brun','metal','autre_refus','Carton_gris','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29636749 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','environnement','plastique','mal_croppe','papier','cartonnette','Carton_brun','metal','autre_refus','Carton_gris','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29636749, 'sub_port_id': 29636763, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235581, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'autre_refus': {'main_port_id': 29636749, 'sub_port_id': 29636764, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235582, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'mal_croppe': {'main_port_id': 29636749, 'sub_port_id': 29636765, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235583, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'cartonnette': {'main_port_id': 29636749, 'sub_port_id': 29636766, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235584, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'kraft': {'main_port_id': 29636749, 'sub_port_id': 29636767, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235585, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'Carton_gris': {'main_port_id': 29636749, 'sub_port_id': 29636768, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235586, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'metal': {'main_port_id': 29636749, 'sub_port_id': 29636769, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235587, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'papier': {'main_port_id': 29636749, 'sub_port_id': 29636770, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235588, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'Teint_Dans_La_Masse': {'main_port_id': 29636749, 'sub_port_id': 29636771, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235589, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'Carton_brun': {'main_port_id': 29636749, 'sub_port_id': 29636772, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235590, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'environnement': {'main_port_id': 29636749, 'sub_port_id': 29636773, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235591, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 21, 14), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}, 'plastique': {'main_port_id': 29636749, 'sub_port_id': 29636774, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20235592, 'last_updated_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 0, 21, 14)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636754 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636767,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636755 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636768,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636756 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636769,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636757 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636770,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636758 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636771,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636759 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636772,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636760 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636773,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636761 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29636774,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29636762 lien utilise dans velours : https://marlene.fotonower.com/velours/29636763,29636764,29636765,29636766,29636767,29636768,29636769,29636770,29636771,29636772,29636773,29636774?tags=flou,autre_refus,mal_croppe,cartonnette,kraft,Carton_gris,metal,papier,Teint_Dans_La_Masse,Carton_brun,environnement,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29636749]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007] map_info['map_portfolio_photo'] : {29636749: [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007]} final : False mtd_id 4302 list_pids : [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007] Looping around the photos to save general results len do output : 1 /29636749. 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, '4261826') ('4302', '29636749', '1400623344', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623341', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623339', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623313', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623310', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623273', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623270', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623268', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623267', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623265', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623249', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623247', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623246', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623243', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623223', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623220', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623217', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623054', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623053', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623035', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623033', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623010', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623007', None, None, None, None, None, '4261826') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '29636749', "{'flou': 29636751, 'autre_refus': 29636752, 'mal_croppe': 29636753, 'cartonnette': 29636754, 'kraft': 29636755, 'Carton_gris': 29636756, 'metal': 29636757, 'papier': 29636758, 'Teint_Dans_La_Masse': 29636759, 'Carton_brun': 29636760, 'environnement': 29636761, 'plastique': 29636762}", None, None, None, None, '4261826'), ('4302', '29636749', '1400623344', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623341', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623339', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623313', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623310', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623273', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623270', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623268', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623267', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623265', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623249', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623247', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623246', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623243', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623223', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623220', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623217', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623054', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623053', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623035', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623033', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623010', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623007', None, None, None, None, None, '4261826')] time used for this insertion : 0.020293712615966797 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8485164642333984 time spend to save output : 0.020616531372070312 total time spend for step 1 : 1.8691329956054688 step2:final Tue Dec 23 06:10:29 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 (29636749) 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 29636749 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400623010,1400623007,1400623035,1400623054,1400623033,1400623053,1400623223,1400623220,1400623217,1400623249,1400623247,1400623246,1400623243,1400623273,1400623270,1400623268,1400623267,1400623265,1400623313,1400623344,1400623310,1400623341,1400623339); 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([29636749]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} new output for save of step final : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007] map_info['map_portfolio_photo'] : {29636749: [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007]} final : False mtd_id 4302 list_pids : [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007] Looping around the photos to save general results len do output : 23 /1400623344.Didn't retrieve data . /1400623341.Didn't retrieve data . /1400623339.Didn't retrieve data . /1400623313.Didn't retrieve data . /1400623310.Didn't retrieve data . /1400623273.Didn't retrieve data . /1400623270.Didn't retrieve data . /1400623268.Didn't retrieve data . /1400623267.Didn't retrieve data . /1400623265.Didn't retrieve data . /1400623249.Didn't retrieve data . /1400623247.Didn't retrieve data . /1400623246.Didn't retrieve data . /1400623243.Didn't retrieve data . /1400623223.Didn't retrieve data . /1400623220.Didn't retrieve data . /1400623217.Didn't retrieve data . /1400623054.Didn't retrieve data . /1400623053.Didn't retrieve data . /1400623035.Didn't retrieve data . /1400623033.Didn't retrieve data . /1400623010.Didn't retrieve data . /1400623007.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, '4261826') ('4302', '29636749', '1400623344', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623341', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623339', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623313', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623310', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623273', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623270', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623268', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623267', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623265', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623249', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623247', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623246', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623243', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623223', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623220', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623217', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623054', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623053', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623035', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623033', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623010', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623007', None, None, None, None, None, '4261826') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 69 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', '29636749', '1400623344', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623341', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623339', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623313', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623310', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623273', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623270', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623268', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623267', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623265', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623249', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623247', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623246', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623243', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623223', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623220', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623217', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623054', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623053', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623035', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623033', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623010', '0.16902849484634944', None, None, None, None, '4261826'), ('4302', '29636749', '1400623007', '0.16902849484634944', None, None, None, None, '4261826')] time used for this insertion : 0.021210193634033203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08069896697998047 time spend to save output : 0.022150516510009766 total time spend for step 2 : 0.10284948348999023 step3:velours_tree Tue Dec 23 06:10:29 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 : {29636749: [{'flou': 29636751, 'autre_refus': 29636752, 'mal_croppe': 29636753, 'cartonnette': 29636754, 'kraft': 29636755, 'Carton_gris': 29636756, 'metal': 29636757, 'papier': 29636758, 'Teint_Dans_La_Masse': 29636759, 'Carton_brun': 29636760, 'environnement': 29636761, 'plastique': 29636762}]} input_args_next_step : {29636749: ()} output_args : {29636749: [{'flou': 29636751, 'autre_refus': 29636752, 'mal_croppe': 29636753, 'cartonnette': 29636754, 'kraft': 29636755, 'Carton_gris': 29636756, 'metal': 29636757, 'papier': 29636758, 'Teint_Dans_La_Masse': 29636759, 'Carton_brun': 29636760, 'environnement': 29636761, 'plastique': 29636762}]} args : 29636749 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 29636751, 'autre_refus': 29636752, 'mal_croppe': 29636753, 'cartonnette': 29636754, 'kraft': 29636755, 'Carton_gris': 29636756, 'metal': 29636757, 'papier': 29636758, 'Teint_Dans_La_Masse': 29636759, 'Carton_brun': 29636760, 'environnement': 29636761, 'plastique': 29636762},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29636749) 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([29636749]) 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.3081998825073242 time spend to save output : 5.745887756347656e-05 total time spend for step 3 : 0.3082573413848877 step4:send_mail_cod Tue Dec 23 06:10:30 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 : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} input_args_next_step : {1400623344: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623344 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623341 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623339 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623313 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623310 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623273 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623270 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623268 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623267 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623265 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623249 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623247 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623246 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623243 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623223 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623220 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623217 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623054 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623053 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623035 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623033 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623010 depend.output_id : 0 input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ()} output_args : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',)} args : 1400623007 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 : {29636749: [{'flou': 29636751, 'autre_refus': 29636752, 'mal_croppe': 29636753, 'cartonnette': 29636754, 'kraft': 29636755, 'Carton_gris': 29636756, 'metal': 29636757, 'papier': 29636758, 'Teint_Dans_La_Masse': 29636759, 'Carton_brun': 29636760, 'environnement': 29636761, 'plastique': 29636762}]} input_args_next_step : {1400623344: ('0.16902849484634944',), 1400623341: ('0.16902849484634944',), 1400623339: ('0.16902849484634944',), 1400623313: ('0.16902849484634944',), 1400623310: ('0.16902849484634944',), 1400623273: ('0.16902849484634944',), 1400623270: ('0.16902849484634944',), 1400623268: ('0.16902849484634944',), 1400623267: ('0.16902849484634944',), 1400623265: ('0.16902849484634944',), 1400623249: ('0.16902849484634944',), 1400623247: ('0.16902849484634944',), 1400623246: ('0.16902849484634944',), 1400623243: ('0.16902849484634944',), 1400623223: ('0.16902849484634944',), 1400623220: ('0.16902849484634944',), 1400623217: ('0.16902849484634944',), 1400623054: ('0.16902849484634944',), 1400623053: ('0.16902849484634944',), 1400623035: ('0.16902849484634944',), 1400623033: ('0.16902849484634944',), 1400623010: ('0.16902849484634944',), 1400623007: ('0.16902849484634944',), 29636749: ()} output_args : {29636749: [{'flou': 29636751, 'autre_refus': 29636752, 'mal_croppe': 29636753, 'cartonnette': 29636754, 'kraft': 29636755, 'Carton_gris': 29636756, 'metal': 29636757, 'papier': 29636758, 'Teint_Dans_La_Masse': 29636759, 'Carton_brun': 29636760, 'environnement': 29636761, 'plastique': 29636762}]} args : 29636749 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 :24, first value : ('0.16902849484634944',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29636749) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1400623344,1400623341,1400623339,1400623313,1400623310,1400623273,1400623270,1400623268,1400623267,1400623265,1400623249,1400623247,1400623246,1400623243,1400623223,1400623220,1400623217,1400623054,1400623053,1400623035,1400623033,1400623010,1400623007) Found this number of photos: 23 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400623007 begin to download photo : 1400623054 begin to download photo : 1400623246 begin to download photo : 1400623268 begin to download photo : 1400623339 download finish for photo 1400623268 begin to download photo : 1400623270 download finish for photo 1400623007 begin to download photo : 1400623010 download finish for photo 1400623339 begin to download photo : 1400623341 download finish for photo 1400623054 begin to download photo : 1400623217 download finish for photo 1400623246 begin to download photo : 1400623247 download finish for photo 1400623341 begin to download photo : 1400623344 download finish for photo 1400623010 begin to download photo : 1400623033 download finish for photo 1400623270 begin to download photo : 1400623273 download finish for photo 1400623247 begin to download photo : 1400623249 download finish for photo 1400623217 begin to download photo : 1400623220 download finish for photo 1400623344 download finish for photo 1400623273 begin to download photo : 1400623310 download finish for photo 1400623033 begin to download photo : 1400623035 download finish for photo 1400623249 begin to download photo : 1400623265 download finish for photo 1400623220 begin to download photo : 1400623223 download finish for photo 1400623035 begin to download photo : 1400623053 download finish for photo 1400623310 begin to download photo : 1400623313 download finish for photo 1400623265 begin to download photo : 1400623267 download finish for photo 1400623223 begin to download photo : 1400623243 download finish for photo 1400623313 download finish for photo 1400623053 download finish for photo 1400623267 download finish for photo 1400623243 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette296367511766466631/ length of list_filenames : 23 ; length of list_pids : 23 ; length of list_args : 23 results_Auto_P29636749_23-12-2025_06_10_31.pdf 29636751 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296367511766466631 29636752 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400623297: '1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696525_0.png'} change filename to text .imagette296367521766466631/ imagette296367521766466631/1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696525_0.png.png imagette296367531766466631/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/3b201cfed8facbc14443e770c9f7fa8a_80847493.png imagette296367521766466631 29636753 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296367531766466631 29636754 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400623299: '1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696533_0.png', 1400623349: '1766446266_4089462_1400623267_5727f101bfa7c6677726969dabbe191c_rle_crop_4078696728_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/995319980163098d448cee194680b771_359539.png change filename to text .imagette296367541766466631/ imagette296367541766466631/1766446266_4089462_1400623267_5727f101bfa7c6677726969dabbe191c_rle_crop_4078696728_0.png.png imagette296367541766466631/1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696533_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/92b2df55d76d9670ec6835e9611c42f9_94879028.png imagette296367541766466631 29636755 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636755 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400623292: '1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696360_0.png', 1400623293: '1766446147_4083976_1400623246_0327cb7dfb60dc9e594a124537757cc3_rle_crop_4078696382_0.png', 1400623303: '1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696522_0.png', 1400623304: '1766446166_4084331_1400623220_77d740b7bec7a8372157f1a3de1a0b41_rle_crop_4078696544_0.png', 1400623305: '1766446166_4084331_1400623220_77d740b7bec7a8372157f1a3de1a0b41_rle_crop_4078696550_0.png', 1400623306: '1766446166_4084331_1400623217_dad6ee747d198d44059b74d5247c30f8_rle_crop_4078696566_0.png', 1400623353: '1766446266_4089462_1400623267_5727f101bfa7c6677726969dabbe191c_rle_crop_4078696725_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b026cb4540d6462ce786e86fffa1891d_91696157.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/7a16d3b3389969c9347854971377a727_4546724.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/72d68318fdfed62f6c24878089ec3660_13237846.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/bdad64a382b061acf3467bb46069354b_15096287.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/bba8ca4cb5405e6ea41552333c520186_40197551.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/543ddd2115f17f2589081ee596689008_47501410.png change filename to text .imagette296367551766466631/ imagette296367551766466631/1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696360_0.png.png imagette296367551766466631/1766446166_4084331_1400623217_dad6ee747d198d44059b74d5247c30f8_rle_crop_4078696566_0.png.png imagette296367551766466631/1766446266_4089462_1400623267_5727f101bfa7c6677726969dabbe191c_rle_crop_4078696725_0.png.png imagette296367551766466631/1766446166_4084331_1400623220_77d740b7bec7a8372157f1a3de1a0b41_rle_crop_4078696544_0.png.png imagette296367551766466631/1766446147_4083976_1400623246_0327cb7dfb60dc9e594a124537757cc3_rle_crop_4078696382_0.png.png imagette296367551766466631/1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696522_0.png.png imagette296367551766466631/1766446166_4084331_1400623220_77d740b7bec7a8372157f1a3de1a0b41_rle_crop_4078696550_0.png.png imagette296367571766466632/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/0842e5a97a8c6437a7fef5b458e08d96_23461963.png imagette296367551766466631 29636757 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636757 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296367571766466632 29636762 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636762 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400623289: '1766446147_4083976_1400623246_0327cb7dfb60dc9e594a124537757cc3_rle_crop_4078696381_0.png', 1400623290: '1766446147_4083976_1400623243_300231f497bd0fc68ec8f9d1084eb682_rle_crop_4078696402_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/cc7a8bf75f913740eb8baef53888ce18_73530038.png change filename to text .imagette296367621766466632/ imagette296367621766466632/1766446147_4083976_1400623246_0327cb7dfb60dc9e594a124537757cc3_rle_crop_4078696381_0.png.png imagette296367621766466632/1766446147_4083976_1400623243_300231f497bd0fc68ec8f9d1084eb682_rle_crop_4078696402_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/e6c85e899aa1ae8ea0aece0a75b66ab5_60547133.png imagette296367621766466632 29636756 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636756 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400623298: '1766446166_4084331_1400623220_77d740b7bec7a8372157f1a3de1a0b41_rle_crop_4078696541_0.png', 1400623348: '1766446266_4089462_1400623270_b755f832685082073f6e1e9f2ea9c00d_rle_crop_4078696698_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/0033723ee1a035efdef541e862e36201_69101835.png change filename to text .imagette296367561766466632/ imagette296367561766466632/1766446166_4084331_1400623220_77d740b7bec7a8372157f1a3de1a0b41_rle_crop_4078696541_0.png.png imagette296367561766466632/1766446266_4089462_1400623270_b755f832685082073f6e1e9f2ea9c00d_rle_crop_4078696698_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c5bb702628c1237bf56ad9d68a350c98_12407949.png imagette296367561766466632 29636759 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636759 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400623113: '1766445785_4068493_1400623053_952d99cf88eeab14109441ebff2f4470_rle_crop_4078695400_0.png', 1400623114: '1766445785_4068493_1400623033_303976f986c2cfb64a102317dc227d20_rle_crop_4078695413_0.png', 1400623279: '1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696370_0.png', 1400623280: '1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696371_0.png', 1400623281: '1766446147_4083976_1400623246_0327cb7dfb60dc9e594a124537757cc3_rle_crop_4078696390_0.png', 1400623282: '1766446147_4083976_1400623243_300231f497bd0fc68ec8f9d1084eb682_rle_crop_4078696399_0.png', 1400623295: '1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696529_0.png', 1400623296: '1766446166_4084331_1400623220_77d740b7bec7a8372157f1a3de1a0b41_rle_crop_4078696549_0.png', 1400623347: '1766446266_4089462_1400623267_5727f101bfa7c6677726969dabbe191c_rle_crop_4078696727_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/927d7af17c0d9682992b70dc2683aaf2_59014877.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/927d7af17c0d9682992b70dc2683aaf2_19584889.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b5c98a9b7cd6087b93948797a7847e3d_14551883.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/7c58054bee48e38ec46ac346ee66fa05_55059440.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/8371b7b6bcc7ba21d91b1307202974c5_55227806.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/5c1bd233c5c373f829e8d27a1e597dd8_15199207.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/0da284bec5cf4cf9b1085c2fd412c9ea_98329393.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/243a10ab4b1a8cc95adc84d48c596006_21406188.png change filename to text .imagette296367591766466632/ imagette296367591766466632/1766445785_4068493_1400623033_303976f986c2cfb64a102317dc227d20_rle_crop_4078695413_0.png.png imagette296367591766466632/1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696529_0.png.png imagette296367591766466632/1766446147_4083976_1400623246_0327cb7dfb60dc9e594a124537757cc3_rle_crop_4078696390_0.png.png imagette296367591766466632/1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696370_0.png.png imagette296367591766466632/1766446147_4083976_1400623243_300231f497bd0fc68ec8f9d1084eb682_rle_crop_4078696399_0.png.png imagette296367591766466632/1766446266_4089462_1400623267_5727f101bfa7c6677726969dabbe191c_rle_crop_4078696727_0.png.png imagette296367591766466632/1766445785_4068493_1400623053_952d99cf88eeab14109441ebff2f4470_rle_crop_4078695400_0.png.png imagette296367591766466632/1766446166_4084331_1400623220_77d740b7bec7a8372157f1a3de1a0b41_rle_crop_4078696549_0.png.png imagette296367591766466632/1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696371_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/9b4664588b889bf8264a06780dd00c2d_9358836.png imagette296367591766466632 29636760 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636760 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400623125: '1766445805_4068845_1400623054_36787e17b049051f1f025ca09f2494a4_rle_crop_4078695444_0.png', 1400623351: '1766446266_4089462_1400623268_a78aa11f74fc74b1bb35d892d428f1fc_rle_crop_4078696716_0.png', 1400623350: '1766446266_4089462_1400623270_b755f832685082073f6e1e9f2ea9c00d_rle_crop_4078696703_0.png', 1400623302: '1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696524_0.png', 1400623301: '1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696530_0.png', 1400623300: '1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696528_0.png', 1400623287: '1766446147_4083976_1400623246_0327cb7dfb60dc9e594a124537757cc3_rle_crop_4078696389_0.png', 1400623286: '1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696369_0.png', 1400623285: '1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696367_0.png', 1400623284: '1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696366_0.png', 1400623128: '1766445805_4068845_1400623054_36787e17b049051f1f025ca09f2494a4_rle_crop_4078695446_0.png', 1400623127: '1766445805_4068845_1400623054_36787e17b049051f1f025ca09f2494a4_rle_crop_4078695447_0.png', 1400623126: '1766445805_4068845_1400623054_36787e17b049051f1f025ca09f2494a4_rle_crop_4078695442_0.png', 1400623069: '1766445666_4062892_1400623035_5293066bd050f8b2f25f6229ee32f8a0_rle_crop_4078695281_0.png', 1400623121: '1766445785_4068493_1400623033_303976f986c2cfb64a102317dc227d20_rle_crop_4078695414_0.png', 1400623120: '1766445785_4068493_1400623033_303976f986c2cfb64a102317dc227d20_rle_crop_4078695415_0.png', 1400623119: '1766445785_4068493_1400623033_303976f986c2cfb64a102317dc227d20_rle_crop_4078695410_0.png', 1400623118: '1766445785_4068493_1400623053_952d99cf88eeab14109441ebff2f4470_rle_crop_4078695401_0.png', 1400623117: '1766445785_4068493_1400623053_952d99cf88eeab14109441ebff2f4470_rle_crop_4078695402_0.png', 1400623116: '1766445785_4068493_1400623053_952d99cf88eeab14109441ebff2f4470_rle_crop_4078695397_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/d4dc262456f885465307b83108e88004_11563351.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/98bf4bcb5f2cfaec605e700a70a07004_81943091.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f4e0fc84a46cdd77d757da13291a02f9_1551739.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b6e6f2aa83c9f845f403dcc9afd82ddf_27480501.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f0d02559b6dc2693fa79031239397be4_82101400.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ea800b0150cf9782b6d7fee96a7c99ed_2944808.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f2576252289ecdd7e54d329408555faf_52004141.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b8147d152cceb0e96fac511300eea493_48177697.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/e7cba18b6327c5f761b9fca7ab8645a2_36709297.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/96b3d8db7e6d2f40bcc28e8187aa3526_65768836.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/645c33e8fab5dd504c08a8c80928e0d3_98855113.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/7f1557ef8fae1b5aaf4a348fc37d8b15_1017522.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ef8b7f8a83ac3d0ca9d906ed20dd2a2d_31933547.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/d4dc262456f885465307b83108e88004_59092598.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/cd3c33dbab562cd6a20c4bc8c4990a7c_64412009.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ef5f2ebeb68874b1ceee304888119535_47455560.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/3a73809706e864210a6906eb6310a8d5_65739129.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/cd3c33dbab562cd6a20c4bc8c4990a7c_49822617.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ef5f2ebeb68874b1ceee304888119535_95101027.png change filename to text .imagette296367601766466633/ imagette296367601766466633/1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696369_0.png.png imagette296367601766466633/1766446266_4089462_1400623268_a78aa11f74fc74b1bb35d892d428f1fc_rle_crop_4078696716_0.png.png imagette296367601766466633/1766445805_4068845_1400623054_36787e17b049051f1f025ca09f2494a4_rle_crop_4078695447_0.png.png imagette296367601766466633/1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696530_0.png.png imagette296367601766466633/1766445785_4068493_1400623033_303976f986c2cfb64a102317dc227d20_rle_crop_4078695414_0.png.png imagette296367601766466633/1766445805_4068845_1400623054_36787e17b049051f1f025ca09f2494a4_rle_crop_4078695446_0.png.png imagette296367601766466633/1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696366_0.png.png imagette296367601766466633/1766445785_4068493_1400623033_303976f986c2cfb64a102317dc227d20_rle_crop_4078695410_0.png.png imagette296367601766466633/1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696528_0.png.png imagette296367601766466633/1766445666_4062892_1400623035_5293066bd050f8b2f25f6229ee32f8a0_rle_crop_4078695281_0.png.png imagette296367601766466633/1766445785_4068493_1400623033_303976f986c2cfb64a102317dc227d20_rle_crop_4078695415_0.png.png imagette296367601766466633/1766445785_4068493_1400623053_952d99cf88eeab14109441ebff2f4470_rle_crop_4078695397_0.png.png imagette296367601766466633/1766446147_4083976_1400623247_d47152b1e257542c52b7e5980e40d71f_rle_crop_4078696367_0.png.png imagette296367601766466633/1766446147_4083976_1400623246_0327cb7dfb60dc9e594a124537757cc3_rle_crop_4078696389_0.png.png imagette296367601766466633/1766445805_4068845_1400623054_36787e17b049051f1f025ca09f2494a4_rle_crop_4078695444_0.png.png imagette296367601766466633/1766445785_4068493_1400623053_952d99cf88eeab14109441ebff2f4470_rle_crop_4078695401_0.png.png imagette296367601766466633/1766446266_4089462_1400623270_b755f832685082073f6e1e9f2ea9c00d_rle_crop_4078696703_0.png.png imagette296367601766466633/1766446166_4084331_1400623249_181764fff30cfc525264037812d5d682_rle_crop_4078696524_0.png.png imagette296367601766466633/1766445805_4068845_1400623054_36787e17b049051f1f025ca09f2494a4_rle_crop_4078695442_0.png.png imagette296367601766466633/1766445785_4068493_1400623053_952d99cf88eeab14109441ebff2f4470_rle_crop_4078695402_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/3a73809706e864210a6906eb6310a8d5_2139060.png imagette296367601766466633 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29636749 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29636763,29636764,29636765,29636766,29636767,29636768,29636769,29636770,29636771,29636772,29636773,29636774?tags=flou,autre_refus,mal_croppe,cartonnette,kraft,Carton_gris,metal,papier,Teint_Dans_La_Masse,Carton_brun,environnement,plastique your option no_mail is active, we will not send the real mail to your client args[1400623344] : ('0.16902849484634944',) no score found for photo 1400623344 We are sending mail with results at report@fotonower.com args[1400623341] : ('0.16902849484634944',) no score found for photo 1400623341 We are sending mail with results at report@fotonower.com args[1400623339] : ('0.16902849484634944',) no score found for photo 1400623339 We are sending mail with results at report@fotonower.com args[1400623313] : ('0.16902849484634944',) no score found for photo 1400623313 We are sending mail with results at report@fotonower.com args[1400623310] : ('0.16902849484634944',) no score found for photo 1400623310 We are sending mail with results at report@fotonower.com args[1400623273] : ('0.16902849484634944',) no score found for photo 1400623273 We are sending mail with results at report@fotonower.com args[1400623270] : ('0.16902849484634944',) no score found for photo 1400623270 We are sending mail with results at report@fotonower.com args[1400623268] : ('0.16902849484634944',) no score found for photo 1400623268 We are sending mail with results at report@fotonower.com args[1400623267] : ('0.16902849484634944',) no score found for photo 1400623267 We are sending mail with results at report@fotonower.com args[1400623265] : ('0.16902849484634944',) no score found for photo 1400623265 We are sending mail with results at report@fotonower.com args[1400623249] : ('0.16902849484634944',) no score found for photo 1400623249 We are sending mail with results at report@fotonower.com args[1400623247] : ('0.16902849484634944',) no score found for photo 1400623247 We are sending mail with results at report@fotonower.com args[1400623246] : ('0.16902849484634944',) no score found for photo 1400623246 We are sending mail with results at report@fotonower.com args[1400623243] : ('0.16902849484634944',) no score found for photo 1400623243 We are sending mail with results at report@fotonower.com args[1400623223] : ('0.16902849484634944',) no score found for photo 1400623223 We are sending mail with results at report@fotonower.com args[1400623220] : ('0.16902849484634944',) no score found for photo 1400623220 We are sending mail with results at report@fotonower.com args[1400623217] : ('0.16902849484634944',) no score found for photo 1400623217 We are sending mail with results at report@fotonower.com args[1400623054] : ('0.16902849484634944',) no score found for photo 1400623054 We are sending mail with results at report@fotonower.com args[1400623053] : ('0.16902849484634944',) no score found for photo 1400623053 We are sending mail with results at report@fotonower.com args[1400623035] : ('0.16902849484634944',) no score found for photo 1400623035 We are sending mail with results at report@fotonower.com args[1400623033] : ('0.16902849484634944',) no score found for photo 1400623033 We are sending mail with results at report@fotonower.com args[1400623010] : ('0.16902849484634944',) no score found for photo 1400623010 We are sending mail with results at report@fotonower.com args[1400623007] : ('0.16902849484634944',) no score found for photo 1400623007 We are sending mail with results at report@fotonower.com refus_total : 0.16902849484634944 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636749 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_P29636749_23-12-2025_06_10_31.pdf results_Auto_P29636749_23-12-2025_06_10_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636749_23-12-2025_06_10_31.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','29636749','results_Auto_P29636749_23-12-2025_06_10_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636749_23-12-2025_06_10_31.pdf','pdf','','0.31','0.16902849484634944') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29636749]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007] map_info['map_portfolio_photo'] : {29636749: [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007]} final : False mtd_id 4302 list_pids : [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007] 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, '4261826') ('4302', '29636749', '1400623344', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623341', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623339', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623313', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623310', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623273', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623270', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623268', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623267', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623265', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623249', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623247', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623246', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623243', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623223', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623220', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623217', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623054', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623053', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623035', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623033', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623010', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623007', None, None, None, None, None, '4261826') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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', '29636749', '1400623344', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623341', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623339', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623313', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623310', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623273', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623270', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623268', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623267', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623265', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623249', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623247', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623246', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623243', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623223', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623220', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623217', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623054', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623053', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623035', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623033', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623010', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623007', None, None, None, None, None, '4261826')] time used for this insertion : 0.01906561851501465 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.3124473094940186 time spend to save output : 0.01938462257385254 total time spend for step 4 : 7.331831932067871 step5:split_time_score Tue Dec 23 06:10:37 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 : ['29636749'] 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 : [('29636749',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29636749) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400623339: {'path': 'temp/1766466630_3735336_1400623339_2ccbd0de61692d21a9c1bf3c46c2577f.jpg', 'extension': 'jpg'}, 1400623341: {'path': 'temp/1766466630_3735336_1400623341_861923f061aa2c6891ec800b0a26191e.jpg', 'extension': 'jpg'}, 1400623344: {'path': 'temp/1766466630_3735336_1400623344_3620ef706b7fd28e3b71bb52ec776c30.jpg', 'extension': 'jpg'}, 1400623268: {'path': 'temp/1766466630_3735336_1400623268_a78aa11f74fc74b1bb35d892d428f1fc.jpg', 'extension': 'jpg'}, 1400623270: {'path': 'temp/1766466630_3735336_1400623270_b755f832685082073f6e1e9f2ea9c00d.jpg', 'extension': 'jpg'}, 1400623273: {'path': 'temp/1766466630_3735336_1400623273_946e5c2310865ee77bba5f1924a63346.jpg', 'extension': 'jpg'}, 1400623310: {'path': 'temp/1766466630_3735336_1400623310_09477eebacb633016353271bb3e76166.jpg', 'extension': 'jpg'}, 1400623313: {'path': 'temp/1766466630_3735336_1400623313_f79d40bd213a4bd1bb672e403b8eb80e.jpg', 'extension': 'jpg'}, 1400623007: {'path': 'temp/1766466630_3735336_1400623007_bf9ede2d15d06d929b4bccbac10dee99.jpg', 'extension': 'jpg'}, 1400623010: {'path': 'temp/1766466630_3735336_1400623010_bfeaf5b3bd64074f289fc8d895e964f5.jpg', 'extension': 'jpg'}, 1400623033: {'path': 'temp/1766466630_3735336_1400623033_303976f986c2cfb64a102317dc227d20.jpg', 'extension': 'jpg'}, 1400623035: {'path': 'temp/1766466630_3735336_1400623035_5293066bd050f8b2f25f6229ee32f8a0.jpg', 'extension': 'jpg'}, 1400623053: {'path': 'temp/1766466630_3735336_1400623053_952d99cf88eeab14109441ebff2f4470.jpg', 'extension': 'jpg'}, 1400623246: {'path': 'temp/1766466630_3735336_1400623246_0327cb7dfb60dc9e594a124537757cc3.jpg', 'extension': 'jpg'}, 1400623247: {'path': 'temp/1766466630_3735336_1400623247_d47152b1e257542c52b7e5980e40d71f.jpg', 'extension': 'jpg'}, 1400623249: {'path': 'temp/1766466630_3735336_1400623249_181764fff30cfc525264037812d5d682.jpg', 'extension': 'jpg'}, 1400623265: {'path': 'temp/1766466630_3735336_1400623265_8f5d75aec7adf13420df0d8c82876c37.jpg', 'extension': 'jpg'}, 1400623267: {'path': 'temp/1766466630_3735336_1400623267_5727f101bfa7c6677726969dabbe191c.jpg', 'extension': 'jpg'}, 1400623054: {'path': 'temp/1766466630_3735336_1400623054_36787e17b049051f1f025ca09f2494a4.jpg', 'extension': 'jpg'}, 1400623217: {'path': 'temp/1766466630_3735336_1400623217_dad6ee747d198d44059b74d5247c30f8.jpg', 'extension': 'jpg'}, 1400623220: {'path': 'temp/1766466630_3735336_1400623220_77d740b7bec7a8372157f1a3de1a0b41.jpg', 'extension': 'jpg'}, 1400623223: {'path': 'temp/1766466630_3735336_1400623223_5dd28f2cdbd2b0c4053150030d0121ce.jpg', 'extension': 'jpg'}, 1400623243: {'path': 'temp/1766466630_3735336_1400623243_300231f497bd0fc68ec8f9d1084eb682.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 = 29636749; (('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29636749 group by h (('00', 23),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29636749 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 (29636749) 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 (29636749) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23122025 29636749 Nombre de photos uploadées : 23 / 23040 (0%) 23122025 29636749 Nombre de photos taguées (types de déchets): 0 / 23 (0%) 23122025 29636749 Nombre de photos taguées (volume) : 0 / 23 (0%) [{'photo_id': 1400623010, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/bfeaf5b3bd64074f289fc8d895e964f5.jpg', 'username': None, 'uploaded_at': 1766445547, 'text': 'image_23122025_00_18_25_010134m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400623007, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/bf9ede2d15d06d929b4bccbac10dee99.jpg', 'username': None, 'uploaded_at': 1766445547, 'text': 'image_23122025_00_18_35_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400623035, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/5293066bd050f8b2f25f6229ee32f8a0.jpg', 'username': None, 'uploaded_at': 1766445607, 'text': 'image_23122025_00_18_45_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400623054, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/36787e17b049051f1f025ca09f2494a4.jpg', 'username': None, 'uploaded_at': 1766445672, 'text': 'image_23122025_00_18_45_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00436711311340332 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29636749, '2025-12-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-23' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2776859,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2577352523803711 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= 2776859 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29636316, 'dashboard_result_id': 18644180, '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_P29636316_23-12-2025_00_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29636749, 'dashboard_result_id': 18644181, '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_P29636749_23-12-2025_00_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29637002, 'dashboard_result_id': 18644182, '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_P29637002_23-12-2025_00_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29637369, 'dashboard_result_id': 18644183, '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_P29637369_23-12-2025_01_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29638070, 'dashboard_result_id': 18644184, '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_P29638070_23-12-2025_01_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29638385, 'dashboard_result_id': 18644185, '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_P29638385_23-12-2025_02_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29638771, 'dashboard_result_id': 18644186, '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_P29638771_23-12-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29639188, 'dashboard_result_id': 18644187, '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_P29639188_23-12-2025_02_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29639703, 'dashboard_result_id': 18644188, '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_P29639703_23-12-2025_02_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29639712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639723, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29640097, 'dashboard_result_id': 18644189, '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_P29640097_23-12-2025_03_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640134, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29640520, 'dashboard_result_id': 18644190, '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_P29640520_23-12-2025_03_17_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640563, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29641030, 'dashboard_result_id': 18644191, '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_P29641030_23-12-2025_03_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29641037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641049, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29641457, 'dashboard_result_id': 18644192, '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_P29641457_23-12-2025_03_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641475, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29641822, 'dashboard_result_id': 18644193, '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_P29641822_23-12-2025_04_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641859, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29642134, 'dashboard_result_id': 18644194, '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_P29642134_23-12-2025_04_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29642187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29642188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29642189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29642190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29642191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29642192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29642193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29642194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29642195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29642196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29642197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29642198, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29643214, 'dashboard_result_id': 18644195, '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_P29643214_23-12-2025_05_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643226, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29643562, 'dashboard_result_id': 18644196, '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_P29643562_23-12-2025_05_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643588, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29643930, 'dashboard_result_id': 18644197, '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_P29643930_23-12-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29643934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643945, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29644377, 'dashboard_result_id': 18644198, '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_P29644377_23-12-2025_06_05_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644393, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784927, 'mtr_portfolio_id': 29644726, 'dashboard_result_id': 18644199, '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_P29644726_23-12-2025_06_09_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644732, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644741, '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 = 29636316 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': 4261825, 'mtr_portfolio_id': 29636316, 'created_at': datetime.datetime(2025, 12, 23, 6, 10, 1), 'result': '0.03940876924268868', 'result_long': None, 'result_double': None}] Qualite : 0.03940876924268868 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29636316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636316_23-12-2025_06_10_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29636316 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_P29636316_23-12-2025_06_10_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, 'pht': 3726}}" where mtr_portfolio_id = 29636316 and dashboard_run_id = 2784927 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`=29636316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644180, 0.03940876924268868, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636316_23-12-2025_06_10_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, '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 = 29636749 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': 4261826, 'mtr_portfolio_id': 29636749, 'created_at': datetime.datetime(2025, 12, 23, 6, 10, 29), 'result': '0.16902849484634944', 'result_long': None, 'result_double': None}] Qualite : 0.16902849484634944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29636749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636749_23-12-2025_06_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29636749 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_P29636749_23-12-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, 'pht': 3726}}" where mtr_portfolio_id = 29636749 and dashboard_run_id = 2784927 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`=29636749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644181, 0.16902849484634944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636749_23-12-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, '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 = 29637002 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': 4260689, 'mtr_portfolio_id': 29637002, 'created_at': datetime.datetime(2025, 12, 23, 0, 46, 58), 'result': '0.06958774364948957', 'result_long': None, 'result_double': None}] Qualite : 0.06958774364948957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29637002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637002_23-12-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29637002 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_P29637002_23-12-2025_00_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, 'pht': 3726}}" where mtr_portfolio_id = 29637002 and dashboard_run_id = 2784927 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`=29637002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644182, 0.06958774364948957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637002_23-12-2025_00_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, '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 = 29637369 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': 4260736, 'mtr_portfolio_id': 29637369, 'created_at': datetime.datetime(2025, 12, 23, 1, 3, 29), 'result': '0.0429940679226893', 'result_long': None, 'result_double': None}] Qualite : 0.0429940679226893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29637369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637369_23-12-2025_01_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29637369 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_P29637369_23-12-2025_01_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, 'pht': 3726}}" where mtr_portfolio_id = 29637369 and dashboard_run_id = 2784927 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`=29637369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644183, 0.0429940679226893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637369_23-12-2025_01_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, '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 = 29638070 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': 4260869, 'mtr_portfolio_id': 29638070, 'created_at': datetime.datetime(2025, 12, 23, 1, 48, 58), 'result': '0.0407676713805383', 'result_long': None, 'result_double': None}] Qualite : 0.0407676713805383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638070_23-12-2025_01_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638070 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_P29638070_23-12-2025_01_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, 'pht': 3726}}" where mtr_portfolio_id = 29638070 and dashboard_run_id = 2784927 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`=29638070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644184, 0.0407676713805383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638070_23-12-2025_01_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, '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 = 29638385 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': 4260911, 'mtr_portfolio_id': 29638385, 'created_at': datetime.datetime(2025, 12, 23, 2, 3, 29), 'result': '0.04063360586330179', 'result_long': None, 'result_double': None}] Qualite : 0.04063360586330179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638385_23-12-2025_02_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638385 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_P29638385_23-12-2025_02_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, 'pht': 3726}}" where mtr_portfolio_id = 29638385 and dashboard_run_id = 2784927 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`=29638385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644185, 0.04063360586330179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638385_23-12-2025_02_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, '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 = 29638771 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': 4260986, 'mtr_portfolio_id': 29638771, 'created_at': datetime.datetime(2025, 12, 23, 2, 16, 59), 'result': '0.06310366418016748', 'result_long': None, 'result_double': None}] Qualite : 0.06310366418016748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638771_23-12-2025_02_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638771 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_P29638771_23-12-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, 'pht': 3726}}" where mtr_portfolio_id = 29638771 and dashboard_run_id = 2784927 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`=29638771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644186, 0.06310366418016748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638771_23-12-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, '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 = 29639188 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': 4261044, 'mtr_portfolio_id': 29639188, 'created_at': datetime.datetime(2025, 12, 23, 2, 33), 'result': '0.05262910396961983', 'result_long': None, 'result_double': None}] Qualite : 0.05262910396961983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29639188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639188_23-12-2025_02_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29639188 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_P29639188_23-12-2025_02_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, 'pht': 3726}}" where mtr_portfolio_id = 29639188 and dashboard_run_id = 2784927 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`=29639188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644187, 0.05262910396961983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639188_23-12-2025_02_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, '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 = 29639703 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': 4261108, 'mtr_portfolio_id': 29639703, 'created_at': datetime.datetime(2025, 12, 23, 2, 46, 58), 'result': '0.054024351832757625', 'result_long': None, 'result_double': None}] Qualite : 0.054024351832757625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29639703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639703_23-12-2025_02_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29639703 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_P29639703_23-12-2025_02_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29639712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639723, 'pht': 3726}}" where mtr_portfolio_id = 29639703 and dashboard_run_id = 2784927 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`=29639703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644188, 0.054024351832757625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639703_23-12-2025_02_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29639712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639723, '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 = 29640097 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': 4261176, 'mtr_portfolio_id': 29640097, 'created_at': datetime.datetime(2025, 12, 23, 3, 4, 58), 'result': '0.02831021468958005', 'result_long': None, 'result_double': None}] Qualite : 0.02831021468958005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29640097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640097_23-12-2025_03_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29640097 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_P29640097_23-12-2025_03_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640134, 'pht': 3726}}" where mtr_portfolio_id = 29640097 and dashboard_run_id = 2784927 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`=29640097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644189, 0.02831021468958005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640097_23-12-2025_03_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640134, '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 = 29640520 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': 4261249, 'mtr_portfolio_id': 29640520, 'created_at': datetime.datetime(2025, 12, 23, 3, 17, 1), 'result': '0.06448411483976808', 'result_long': None, 'result_double': None}] Qualite : 0.06448411483976808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29640520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640520_23-12-2025_03_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29640520 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_P29640520_23-12-2025_03_17_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640563, 'pht': 3726}}" where mtr_portfolio_id = 29640520 and dashboard_run_id = 2784927 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`=29640520 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644190, 0.06448411483976808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640520_23-12-2025_03_17_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640563, '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 = 29641030 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': 4261294, 'mtr_portfolio_id': 29641030, 'created_at': datetime.datetime(2025, 12, 23, 3, 32, 57), 'result': '0.07107824018945803', 'result_long': None, 'result_double': None}] Qualite : 0.07107824018945803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29641030 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641030_23-12-2025_03_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29641030 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_P29641030_23-12-2025_03_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29641037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641049, 'pht': 3726}}" where mtr_portfolio_id = 29641030 and dashboard_run_id = 2784927 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`=29641030 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644191, 0.07107824018945803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641030_23-12-2025_03_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29641037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641049, '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 = 29641457 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': 4261349, 'mtr_portfolio_id': 29641457, 'created_at': datetime.datetime(2025, 12, 23, 3, 46, 59), 'result': '0.04214626367721399', 'result_long': None, 'result_double': None}] Qualite : 0.04214626367721399 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29641457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641457_23-12-2025_03_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29641457 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_P29641457_23-12-2025_03_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641475, 'pht': 3726}}" where mtr_portfolio_id = 29641457 and dashboard_run_id = 2784927 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`=29641457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644192, 0.04214626367721399, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641457_23-12-2025_03_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641475, '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 = 29641822 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': 4261415, 'mtr_portfolio_id': 29641822, 'created_at': datetime.datetime(2025, 12, 23, 4, 2, 59), 'result': '0.042517643544748566', 'result_long': None, 'result_double': None}] Qualite : 0.042517643544748566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29641822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641822_23-12-2025_04_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29641822 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_P29641822_23-12-2025_04_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641859, 'pht': 3726}}" where mtr_portfolio_id = 29641822 and dashboard_run_id = 2784927 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`=29641822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644193, 0.042517643544748566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641822_23-12-2025_04_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641859, '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 = 29642134 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': 4261488, 'mtr_portfolio_id': 29642134, 'created_at': datetime.datetime(2025, 12, 23, 6, 0, 30), 'result': '0.05594789448702286', 'result_long': None, 'result_double': None}] Qualite : 0.05594789448702286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29642134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29642134_23-12-2025_06_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29642134 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_P29642134_23-12-2025_06_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29642187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29642188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29642189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29642190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29642191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29642192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29642193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29642194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29642195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29642196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29642197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29642198, 'pht': 3726}}" where mtr_portfolio_id = 29642134 and dashboard_run_id = 2784927 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`=29642134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644194, 0.05594789448702286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29642134_23-12-2025_06_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29642187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29642188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29642189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29642190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29642191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29642192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29642193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29642194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29642195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29642196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29642197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29642198, '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 = 29643214 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': 4261678, 'mtr_portfolio_id': 29643214, 'created_at': datetime.datetime(2025, 12, 23, 5, 19), 'result': '0.04122215892081668', 'result_long': None, 'result_double': None}] Qualite : 0.04122215892081668 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29643214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643214_23-12-2025_05_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29643214 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_P29643214_23-12-2025_05_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643226, 'pht': 3726}}" where mtr_portfolio_id = 29643214 and dashboard_run_id = 2784927 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`=29643214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644195, 0.04122215892081668, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643214_23-12-2025_05_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643226, '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 = 29643562 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': 4261715, 'mtr_portfolio_id': 29643562, 'created_at': datetime.datetime(2025, 12, 23, 5, 33, 1), 'result': '0.041408135910020696', 'result_long': None, 'result_double': None}] Qualite : 0.041408135910020696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29643562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643562_23-12-2025_05_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29643562 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_P29643562_23-12-2025_05_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643588, 'pht': 3726}}" where mtr_portfolio_id = 29643562 and dashboard_run_id = 2784931 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`=29643562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644196, 0.041408135910020696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643562_23-12-2025_05_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643588, '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 = 29643930 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': 4261756, 'mtr_portfolio_id': 29643930, 'created_at': datetime.datetime(2025, 12, 23, 5, 49), 'result': '0.0496121970637117', 'result_long': None, 'result_double': None}] Qualite : 0.0496121970637117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29643930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643930_23-12-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29643930 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_P29643930_23-12-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29643934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643945, 'pht': 3726}}" where mtr_portfolio_id = 29643930 and dashboard_run_id = 2784931 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`=29643930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644197, 0.0496121970637117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643930_23-12-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29643934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643945, '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 = 29644377 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': 4261936, 'mtr_portfolio_id': 29644377, 'created_at': datetime.datetime(2025, 12, 23, 6, 5, 33), 'result': '0.054760300202230376', 'result_long': None, 'result_double': None}] Qualite : 0.054760300202230376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29644377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29644377_23-12-2025_06_05_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29644377 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_P29644377_23-12-2025_06_05_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644393, 'pht': 3726}}" where mtr_portfolio_id = 29644377 and dashboard_run_id = 2784931 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`=29644377 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644198, 0.054760300202230376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29644377_23-12-2025_06_05_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644393, '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 = 29644726 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': 4262007, 'mtr_portfolio_id': 29644726, 'created_at': datetime.datetime(2025, 12, 23, 6, 9), 'result': '0.060200091840936804', 'result_long': None, 'result_double': None}] Qualite : 0.060200091840936804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29644726 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29644726_23-12-2025_06_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29644726 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_P29644726_23-12-2025_06_09_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644732, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644741, 'pht': 3726}}" where mtr_portfolio_id = 29644726 and dashboard_run_id = 2784931 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`=29644726 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18644199, 0.060200091840936804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29644726_23-12-2025_06_09_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644732, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644741, '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 (29636316,29636749,29637002,29637369,29638070,29638385,29638771,29639188,29639703,29640097,29640520,29641030,29641457,29641822,29642134,29643214,29643562,29643930,29644377,29644726) result : ((1400619724,), (1400619761,), (1400619795,), (1400619831,), (1400620155,), (1400620158,), (1400620162,), (1400620784,), (1400620848,), (1400620936,), (1400620977,), (1400621034,), (1400621529,), (1400621566,), (1400621601,), (1400621636,), (1400621861,), (1400621863,), (1400621865,), (1400621868,), (1400621872,), (1400621875,), (1400621941,), (1400621976,), (1400622114,), (1400622141,), (1400622147,), (1400622251,), (1400622252,), (1400622253,), (1400622255,), (1400622259,), (1400622277,), (1400622278,), (1400622279,), (1400622280,), (1400622296,), (1400622298,), (1400622428,), (1400622430,), (1400622432,), (1400622437,), (1400622471,), (1400622495,), (1400622678,), (1400622679,), (1400622682,), (1400622714,), (1400622732,), (1400622737,), (1400622771,), (1400622774,), (1400623012,), (1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,), (1400623335,), (1400623337,), (1400623338,), (1400623362,), (1400623364,), (1400623365,), (1400623382,), (1400623384,), (1400623386,), (1400623388,), (1400623392,), (1400623395,), (1400623411,), (1400623413,), (1400623414,), (1400623428,), (1400623454,), (1400623455,), (1400623456,), (1400623458,), (1400623472,), (1400623474,), (1400623476,), (1400623494,), (1400623495,), (1400623496,), (1400623497,), (1400623500,), (1400623513,), (1400623514,), (1400623535,), (1400623536,), (1400623557,), (1400623559,), (1400623561,), (1400623565,), (1400623568,), (1400623570,), (1400623576,), (1400623579,), (1400623583,), (1400623584,), (1400623586,), (1400623588,), (1400623601,), (1400623604,), (1400623606,), (1400623609,), (1400623612,), (1400623620,), (1400623622,), (1400623623,), (1400623629,), (1400623632,), (1400623640,), (1400623643,), (1400623644,), (1400623650,), (1400623652,), (1400623655,), (1400623688,), (1400623686,), (1400623702,), (1400623703,), (1400623704,), (1400623706,), (1400623730,), (1400623731,), (1400623732,), (1400623734,), (1400623737,), (1400623754,), (1400623756,), (1400623758,), (1400623760,), (1400623779,), (1400623797,), (1400623799,), (1400623800,), (1400623801,), (1400623803,), (1400623804,), (1400623821,), (1400623822,), (1400623823,), (1400623825,), (1400623838,), (1400623839,), (1400623840,), (1400623842,), (1400623865,), (1400623867,), (1400623870,), (1400623871,), (1400623889,), (1400623891,), (1400623892,), (1400623893,), (1400623910,), (1400623911,), (1400623912,), (1400623929,), (1400623931,), (1400623934,), (1400623936,), (1400623955,), (1400623958,), (1400623959,), (1400623982,), (1400623986,), (1400623990,), (1400623995,), (1400623999,), (1400624341,), (1400624377,), (1400624410,), (1400624431,), (1400624434,), (1400624437,), (1400627807,), (1400627824,), (1400627825,), (1400627826,), (1400627844,), (1400627846,), (1400627848,), (1400627865,), (1400627867,), (1400627868,), (1400627869,), (1400627872,), (1400627887,), (1400627888,), (1400627889,), (1400627890,), (1400627895,), (1400627917,), (1400627918,), (1400627919,), (1400627941,), (1400627943,), (1400627945,), (1400627949,), (1400627952,), (1400627954,), (1400627974,), (1400627978,), (1400627979,), (1400627980,), (1400627983,), (1400627986,), (1400627998,), (1400627999,), (1400628021,), (1400628023,), (1400628025,), (1400628027,), (1400628043,), (1400628044,), (1400628045,), (1400628046,), (1400628073,), (1400628074,), (1400628075,), (1400628091,), (1400628097,), (1400628099,), (1400628103,), (1400628106,), (1400628129,), (1400628122,), (1400628124,), (1400628125,), (1400628126,), (1400628143,), (1400628144,), (1400628183,), (1400628184,), (1400628185,), (1400628208,), (1400628209,), (1400628210,), (1400628212,), (1400628239,), (1400628241,), (1400628263,), (1400628264,), (1400628265,), (1400628268,), (1400628271,), (1400628275,), (1400628289,), (1400628290,), (1400628291,), (1400628307,), (1400628309,), (1400628311,), (1400628312,), (1400628337,), (1400628338,), (1400628339,), (1400628340,), (1400628359,), (1400628362,), (1400628393,), (1400628396,), (1400628398,), (1400628400,), (1400628404,), (1400628418,), (1400628420,), (1400628421,), (1400628454,), (1400628457,), (1400628497,), (1400628501,), (1400628504,), (1400628509,), (1400628513,), (1400628685,), (1400628719,), (1400628755,), (1400628985,), (1400629050,), (1400629124,), (1400629186,), (1400629255,), (1400628574,), (1400628610,), (1400628644,), (1400629551,), (1400629649,), (1400629717,), (1400629789,), (1400629870,), (1400630303,), (1400630307,), (1400630310,), (1400630317,), (1400630319,), (1400630332,), (1400630453,), (1400630480,), (1400630485,), (1400630487,), (1400630634,), (1400630636,), (1400630692,), (1400630700,), (1400630759,), (1400630768,), (1400630866,), (1400630869,), (1400631220,), (1400631274,), (1400631308,), (1400631837,), (1400631840,), (1400631843,), (1400631846,), (1400631991,), (1400631994,), (1400632005,), (1400632039,), (1400632154,), (1400632155,), (1400632157,), (1400632159,), (1400632175,), (1400632177,), (1400632180,), (1400632183,), (1400632186,), (1400632189,), (1400632204,), (1400632207,), (1400632210,), (1400632212,), (1400632215,), (1400633129,), (1400633132,), (1400633134,), (1400633163,), (1400633165,), (1400633166,), (1400633168,), (1400633616,), (1400633640,), (1400633672,), (1400633695,), (1400633704,), (1400633707,), (1400633733,), (1400633756,), (1400633758,), (1400633760,), (1400633764,), (1400633797,), (1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,), (1400634222,), (1400634224,), (1400634226,), (1400634230,), (1400634252,), (1400634255,), (1400634256,), (1400634257,), (1400634259,), (1400634273,), (1400634276,), (1400634280,), (1400634284,), (1400634287,), (1400634299,), (1400634300,), (1400634326,), (1400634328,), (1400634330,), (1400634332,), (1400634336,), (1400634349,), (1400634351,), (1400634352,), (1400634417,), (1400634438,), (1400634440,), (1400634441,), (1400634461,), (1400634462,), (1400634463,), (1400634484,), (1400634486,), (1400634488,), (1400634492,), (1400634495,), (1400634498,), (1400634522,), (1400634542,), (1400634544,), (1400634545,), (1400634546,), (1400634549,), (1400634566,), (1400634567,), (1400634568,), (1400634593,), (1400634612,), (1400634616,), (1400634619,), (1400634648,), (1400634638,), (1400634642,), (1400634645,), (1400634670,), (1400634673,), (1400634675,), (1400634696,), (1400634698,), (1400634700,), (1400634703,), (1400634713,), (1400634722,), (1400634724,), (1400634727,), (1400634744,), (1400634747,), (1400634766,), (1400634767,), (1400634769,), (1400634772,), (1400634775,), (1400634796,), (1400634799,), (1400634802,), (1400634805,), (1400634809,), (1400634812,), (1400634822,), (1400634825,), (1400634827,), (1400634828,), (1400634830,), (1400634846,), (1400634848,), (1400634850,), (1400634874,), (1400634879,), (1400634883,), (1400634903,), (1400634905,), (1400634907,), (1400634909,), (1400634922,), (1400634924,), (1400634926,), (1400634929,), (1400634933,), (1400634937,), (1400634945,), (1400634953,), (1400634955,), (1400634981,), (1400634985,), (1400635001,), (1400635039,), (1400635075,), (1400635457,), (1400635488,), (1400635491,), (1400635539,), (1400635543,), (1400635547,), (1400635550,), (1400635552,), (1400635554,), (1400635566,), (1400635414,), (1400635416,), (1400635425,), (1400635559,), (1400635562,), (1400635845,), (1400635877,), (1400635912,), (1400636289,), (1400636328,), (1400636358,), (1400636388,), (1400636422,), (1400636767,), (1400636801,), (1400636833,), (1400636868,), (1400636901,), (1400636928,), (1400636930,), (1400636932,), (1400636935,), (1400636938,), (1400636940,), (1400636956,), (1400637077,), (1400637110,), (1400637460,), (1400637470,), (1400637473,), (1400637640,), (1400637641,), (1400637643,), (1400637645,), (1400637647,), (1400637672,), (1400637674,), (1400637676,), (1400637678,), (1400637681,), (1400637696,), (1400637699,), (1400637702,), (1400637707,), (1400637710,), (1400637713,), (1400637720,), (1400637721,), (1400637724,), (1400637739,), (1400637740,), (1400637742,), (1400637744,), (1400637746,), (1400637749,), (1400637759,), (1400637761,), (1400637803,), (1400637810,), (1400637812,), (1400637830,), (1400637833,), (1400637836,), (1400637837,), (1400637906,), (1400637888,), (1400637897,), (1400637900,), (1400637902,), (1400637920,), (1400637922,), (1400637924,), (1400637926,), (1400637943,), (1400637966,), (1400637967,), (1400637989,), (1400637991,), (1400637993,), (1400638014,), (1400638016,), (1400638018,), (1400638022,), (1400638026,), (1400638053,), (1400638054,), (1400638055,), (1400638057,), (1400638080,), (1400638081,), (1400638116,), (1400638118,), (1400638119,), (1400638135,), (1400638137,), (1400638139,), (1400638163,), (1400638166,), (1400638168,), (1400638171,), (1400638173,), (1400638187,), (1400638190,), (1400638192,), (1400638194,), (1400638197,), (1400638224,), (1400638226,), (1400638245,), (1400638247,), (1400638249,), (1400638251,), (1400638273,), (1400638276,), (1400638280,), (1400638320,), (1400638322,), (1400638340,), (1400638342,), (1400638312,), (1400638313,), (1400638315,), (1400638317,), (1400638358,), (1400638360,), (1400638361,), (1400638363,), (1400638382,), (1400638406,), (1400638408,), (1400638410,), (1400638463,), (1400638465,), (1400638467,), (1400638469,), (1400638473,), (1400638476,), (1400638480,), (1400638482,), (1400638488,), (1400638490,), (1400638491,), (1400638492,), (1400638524,), (1400638526,), (1400638527,), (1400638528,), (1400638544,), (1400638545,), (1400638547,), (1400638551,), (1400638555,), (1400638568,), (1400638570,), (1400638571,), (1400638574,), (1400638578,), (1400638590,), (1400638592,), (1400638593,), (1400638594,), (1400638621,), (1400638622,), (1400638623,), (1400638625,), (1400638640,), (1400638642,), (1400638644,), (1400638646,), (1400638682,), (1400638684,), (1400638685,), (1400638700,), (1400638703,), (1400638704,), (1400638706,), (1400638738,), (1400638736,), (1400638737,), (1400638753,), (1400638755,), (1400638757,), (1400638759,), (1400638762,), (1400638766,), (1400638783,), (1400638785,), (1400638786,), (1400638787,), (1400638790,), (1400638805,), (1400638806,), (1400638829,), (1400638831,), (1400638833,), (1400638835,), (1400638839,), (1400638863,), (1400638864,), (1400638865,), (1400638868,), (1400638871,), (1400638876,), (1400638886,), (1400638888,), (1400638893,), (1400638895,), (1400638896,), (1400638898,), (1400638901,), (1400638912,), (1400638914,), (1400638916,), (1400638936,), (1400638938,), (1400638939,), (1400638940,), (1400638943,), (1400638956,), (1400638958,), (1400638959,), (1400638961,), (1400638978,), (1400638980,), (1400638997,), (1400638999,), (1400639001,), (1400639004,), (1400639021,), (1400639024,), (1400639374,), (1400639407,), (1400639448,), (1400639482,), (1400639518,), (1400639554,), (1400639791,), (1400639661,), (1400639684,), (1400639719,), (1400639754,), (1400640253,), (1400640304,), (1400640341,), (1400640757,), (1400640791,), (1400640849,), (1400640913,), (1400640999,), (1400641441,), (1400641509,), (1400641575,), (1400641628,), (1400641667,), (1400642140,), (1400642176,), (1400642209,), (1400642242,), (1400642276,), (1400642447,), (1400642448,), (1400642449,), (1400642451,), (1400642455,), (1400642482,), (1400642483,), (1400642496,), (1400642532,), (1400642940,), (1400642978,), (1400642982,), (1400642984,), (1400642998,), (1400643155,), (1400643157,), (1400643158,), (1400643159,), (1400643162,), (1400643164,), (1400643195,), (1400643197,), (1400643198,), (1400643199,), (1400643222,), (1400643223,), (1400643225,), (1400643229,), (1400643233,), (1400643237,), (1400643246,), (1400646839,), (1400646859,), (1400646837,), (1400646858,), (1400646897,), (1400646898,), (1400646917,), (1400646919,), (1400646921,), (1400646950,), (1400646952,), (1400646954,), (1400646955,), (1400646970,), (1400646972,), (1400646974,), (1400646976,), (1400646980,), (1400646983,), (1400646997,), (1400646999,), (1400647000,), (1400647012,), (1400647013,), (1400647014,), (1400647016,), (1400647019,), (1400647022,), (1400647042,), (1400647047,), (1400647049,), (1400647051,), (1400647055,), (1400647065,), (1400647067,), (1400647068,), (1400647069,), (1400647103,), (1400647104,), (1400647106,), (1400647109,), (1400647112,), (1400647115,), (1400647127,), (1400647129,), (1400647133,), (1400647137,), (1400647141,), (1400647148,), (1400647154,), (1400647156,), (1400647163,), (1400647166,), (1400647168,), (1400647170,), (1400647179,), (1400647182,), (1400647185,), (1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,), (1400647652,), (1400647654,), (1400647655,), (1400647656,), (1400647659,), (1400647661,), (1400647678,), (1400647680,), (1400647681,), (1400647683,), (1400647686,), (1400647748,), (1400647752,), (1400647755,), (1400647767,), (1400647772,), (1400647780,), (1400647733,), (1400647735,), (1400647739,), (1400647785,), (1400647787,), (1400647791,), (1400647795,), (1400647799,), (1400647803,), (1400647806,), (1400647807,), (1400647808,), (1400647810,), (1400647814,), (1400647843,), (1400647845,), (1400647847,), (1400647851,), (1400647854,), (1400647857,), (1400647862,), (1400647864,), (1400647866,), (1400647872,), (1400647874,), (1400647876,), (1400647880,), (1400647884,), (1400647886,), (1400647912,), (1400647914,), (1400647916,), (1400647918,), (1400647922,), (1400647938,), (1400647940,), (1400647941,), (1400647942,), (1400647945,), (1400647948,), (1400647982,), (1400647983,), (1400647984,), (1400647986,), (1400647990,), (1400648007,), (1400648010,), (1400648015,), (1400648019,), (1400648022,), (1400648024,), (1400648037,), (1400648039,), (1400648040,), (1400648041,), (1400648057,), (1400648058,), (1400648059,), (1400648061,), (1400648064,), (1400648068,), (1400648100,), (1400648107,), (1400648108,), (1400648111,), (1400648129,), (1400648131,), (1400648133,), (1400648134,), (1400648136,), (1400648164,), (1400648166,), (1400648168,), (1400648171,), (1400648173,), (1400648176,), (1400648181,), (1400648183,), (1400648184,), (1400648186,), (1400648192,), (1400648194,), (1400648196,), (1400648200,), (1400648204,), (1400648255,), (1400648257,), (1400648258,), (1400648260,), (1400648262,), (1400648264,), (1400648240,), (1400648243,), (1400648246,), (1400648250,), (1400648253,), (1400648273,), (1400648274,), (1400648276,), (1400648277,), (1400648284,), (1400648287,), (1400648292,), (1400648293,), (1400648307,), (1400648309,), (1400648310,), (1400648311,), (1400648314,), (1400648329,), (1400648330,), (1400648331,), (1400648333,), (1400648337,), (1400648339,), (1400648360,), (1400648362,), (1400648364,), (1400648366,), (1400648382,), (1400648384,), (1400648388,), (1400648392,), (1400648397,), (1400648401,), (1400648415,), (1400648417,), (1400648418,), (1400648420,), (1400648434,), (1400648438,), (1400648440,), (1400648445,), (1400648456,), (1400648458,), (1400648459,), (1400648461,), (1400648463,), (1400648491,), (1400648492,), (1400648493,), (1400648496,), (1400648499,), (1400648502,), (1400648509,), (1400648511,), (1400648513,), (1400648514,), (1400648515,), (1400648519,), (1400648521,), (1400648525,), (1400648529,), (1400648554,), (1400648556,), (1400648557,), (1400648559,), (1400648564,), (1400648567,), (1400648581,), (1400648582,), (1400648583,), (1400648584,), (1400648603,), (1400648604,), (1400648605,), (1400648607,), (1400648631,), (1400648669,), (1400648902,), (1400648940,), (1400648976,), (1400649013,), (1400649604,), (1400649611,), (1400649647,), (1400649681,), (1400649715,), (1400649753,), (1400649786,), (1400649817,), (1400650294,), (1400650458,), (1400649455,), (1400649494,), (1400649530,), (1400649568,), (1400649974,), (1400650034,), (1400650099,), (1400650163,), (1400650230,), (1400650629,), (1400650668,), (1400650710,), (1400650746,), (1400650755,), (1400650901,), (1400650931,), (1400650963,), (1400650981,), (1400650986,), (1400650988,), (1400651052,), (1400651069,), (1400651081,), (1400651102,), (1400651112,), (1400651115,), (1400651118,), (1400651125,), (1400651133,), (1400651135,), (1400651139,), (1400651141,), (1400651142,), (1400651144,), (1400651148,), (1400651163,), (1400651165,), (1400651166,), (1400651167,), (1400651170,), (1400651194,), (1400651195,), (1400651196,), (1400651226,), (1400651227,), (1400651230,), (1400651232,), (1400651234,), (1400651237,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23122025': {'nb_upload': 23, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29636749]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007] map_info['map_portfolio_photo'] : {29636749: [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007]} final : True mtd_id 4302 list_pids : [1400623344, 1400623341, 1400623339, 1400623313, 1400623310, 1400623273, 1400623270, 1400623268, 1400623267, 1400623265, 1400623249, 1400623247, 1400623246, 1400623243, 1400623223, 1400623220, 1400623217, 1400623054, 1400623053, 1400623035, 1400623033, 1400623010, 1400623007] Looping around the photos to save general results len do output : 1 /29636749Didn'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, '4261826') ('4302', '29636749', '1400623344', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623341', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623339', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623313', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623310', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623273', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623270', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623268', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623267', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623265', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623249', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623247', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623246', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623243', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623223', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623220', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623217', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623054', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623053', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623035', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623033', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623010', None, None, None, None, None, '4261826') ('4302', None, None, None, None, None, None, None, '4261826') ('4302', '29636749', '1400623007', None, None, None, None, None, '4261826') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '29636749', 'None', None, None, None, None, '4261826'), ('4302', '29636749', '1400623344', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623341', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623339', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623313', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623310', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623273', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623270', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623268', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623267', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623265', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623249', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623247', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623246', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623243', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623223', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623220', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623217', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623054', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623053', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623035', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623033', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623010', None, None, None, None, None, '4261826'), ('4302', '29636749', '1400623007', None, None, None, None, None, '4261826')] time used for this insertion : 0.01796245574951172 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.1730082035064697 time spend to save output : 0.018343448638916016 total time spend for step 5 : 3.1913516521453857 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 (4261826) 3.12user 2.29system 0:15.34elapsed 35%CPU (0avgtext+0avgdata 168684maxresident)k 13344inputs+19696outputs (130major+82100minor)pagefaults 0swaps