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 : 2738151 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 (2896277) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2896277) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23126969 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2896277'] with mtr_portfolio_ids : ['23126969'] and first list_photo_ids : [] new path : /proc/2738151/ Name: python3 Umask: 0002 State: R (running) Tgid: 2738151 Ngid: 0 Pid: 2738151 PPid: 2738149 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2738151 NSpid: 2738151 NSpgid: 2736446 NSsid: 2736446 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98160 kB VmRSS: 98160 kB RssAnon: 60200 kB RssFile: 37960 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 69 nonvoluntary_ctxt_switches: 140 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2738151', 'Ngid': '0', 'Pid': '2738151', 'PPid': '2738149', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2738151', 'NSpid': '2738151', 'NSpgid': '2736446', 'NSsid': '2736446', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98160 kB', 'VmRSS': '98160 kB', 'RssAnon': '60200 kB', 'RssFile': '37960 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '69', 'nonvoluntary_ctxt_switches': '140'} ('datou_batch_current', '2738151', '1107228', '0', '1107228', '865976', '98160', b'', 'marlene', '2896277') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (23126969) 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 (2896277 ) ) 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 (23126969) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1359430281, 'portfolio_id': 23126969}, {'photo_id': 1359430275, 'portfolio_id': 23126969}, {'photo_id': 1359430271, 'portfolio_id': 23126969}, {'photo_id': 1359430236, 'portfolio_id': 23126969}, {'photo_id': 1359430232, 'portfolio_id': 23126969}, {'photo_id': 1359430208, 'portfolio_id': 23126969}, {'photo_id': 1359429875, 'portfolio_id': 23126969}, {'photo_id': 1359429826, 'portfolio_id': 23126969}, {'photo_id': 1359429777, 'portfolio_id': 23126969}, {'photo_id': 1359429704, 'portfolio_id': 23126969}, {'photo_id': 1359429626, 'portfolio_id': 23126969}, {'photo_id': 1359429550, 'portfolio_id': 23126969}, {'photo_id': 1359428900, 'portfolio_id': 23126969}, {'photo_id': 1359428898, 'portfolio_id': 23126969}, {'photo_id': 1359428897, 'portfolio_id': 23126969}, {'photo_id': 1359428862, 'portfolio_id': 23126969}, {'photo_id': 1359428831, 'portfolio_id': 23126969}, {'photo_id': 1359428816, 'portfolio_id': 23126969}, {'photo_id': 1359428815, 'portfolio_id': 23126969}, {'photo_id': 1359428732, 'portfolio_id': 23126969}, {'photo_id': 1359428641, 'portfolio_id': 23126969}, {'photo_id': 1359428439, 'portfolio_id': 23126969}, {'photo_id': 1359428434, 'portfolio_id': 23126969}, {'photo_id': 1359428429, 'portfolio_id': 23126969}, {'photo_id': 1359428425, 'portfolio_id': 23126969}, {'photo_id': 1359428241, 'portfolio_id': 23126969}, {'photo_id': 1359428201, 'portfolio_id': 23126969}, {'photo_id': 1359428172, 'portfolio_id': 23126969}, {'photo_id': 1359428145, 'portfolio_id': 23126969}, {'photo_id': 1359427856, 'portfolio_id': 23126969}, {'photo_id': 1359427839, 'portfolio_id': 23126969}, {'photo_id': 1359427802, 'portfolio_id': 23126969}, {'photo_id': 1359427757, 'portfolio_id': 23126969}, {'photo_id': 1359427709, 'portfolio_id': 23126969}, {'photo_id': 1359427497, 'portfolio_id': 23126969}, {'photo_id': 1359427491, 'portfolio_id': 23126969}, {'photo_id': 1359427487, 'portfolio_id': 23126969}, {'photo_id': 1359427476, 'portfolio_id': 23126969}, {'photo_id': 1359427252, 'portfolio_id': 23126969}, {'photo_id': 1359427217, 'portfolio_id': 23126969}, {'photo_id': 1359427171, 'portfolio_id': 23126969}, {'photo_id': 1359426810, 'portfolio_id': 23126969}, {'photo_id': 1359426781, 'portfolio_id': 23126969}, {'photo_id': 1359426744, 'portfolio_id': 23126969}, {'photo_id': 1359426719, 'portfolio_id': 23126969}] map_portfolio_id_photo_id: {23126969: [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550, 1359428900, 1359428898, 1359428897, 1359428862, 1359428831, 1359428816, 1359428815, 1359428732, 1359428641, 1359428439, 1359428434, 1359428429, 1359428425, 1359428241, 1359428201, 1359428172, 1359428145, 1359427856, 1359427839, 1359427802, 1359427757, 1359427709, 1359427497, 1359427491, 1359427487, 1359427476, 1359427252, 1359427217, 1359427171, 1359426810, 1359426781, 1359426744, 1359426719]} ##### 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.015276432037353516 #### 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 Mon May 19 17:26:28 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 (23126969) 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 : 23126969 get user id for portfolio 23126969 get sub ptf for main ptf 23126969, type 3726 and hashtags ['kraft', 'Carton_gris', 'cartonnette', 'environnement', 'papier', 'Teint_Dans_La_Masse', 'plastique', 'mal_croppe', 'Carton_brun', 'metal', 'flou', 'autre_refus'] 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`=23126969 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','cartonnette','environnement','papier','Teint_Dans_La_Masse','plastique','mal_croppe','Carton_brun','metal','flou','autre_refus')) 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`=23126969 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','cartonnette','environnement','papier','Teint_Dans_La_Masse','plastique','mal_croppe','Carton_brun','metal','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 23126969, 'sub_port_id': 23126995, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430378, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'papier': {'main_port_id': 23126969, 'sub_port_id': 23126996, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430379, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'flou': {'main_port_id': 23126969, 'sub_port_id': 23126997, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430380, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'environnement': {'main_port_id': 23126969, 'sub_port_id': 23126998, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430381, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'cartonnette': {'main_port_id': 23126969, 'sub_port_id': 23126999, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430382, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'metal': {'main_port_id': 23126969, 'sub_port_id': 23127000, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430383, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 23126969, 'sub_port_id': 23127001, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430384, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'Carton_gris': {'main_port_id': 23126969, 'sub_port_id': 23127002, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430385, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'plastique': {'main_port_id': 23126969, 'sub_port_id': 23127003, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430386, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'Carton_brun': {'main_port_id': 23126969, 'sub_port_id': 23127004, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430387, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'kraft': {'main_port_id': 23126969, 'sub_port_id': 23127005, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430388, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}, 'autre_refus': {'main_port_id': 23126969, 'sub_port_id': 23127006, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430389, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23126995 , 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=23126969 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 (23126995) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23126996 , 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=23126969 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 (23126996) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23126997 , 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=23126969 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 (23126997) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23126998 , 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=23126969 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 (23126998) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23126999 , 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=23126969 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 (23126999) result : ((1359429682,), (1359429686,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23127000 , 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=23126969 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 (23127000) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23127001 , 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=23126969 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 (23127001) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23127002 , 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=23126969 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 (23127002) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23127003 , 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=23126969 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 (23127003) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23127004 , 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=23126969 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 (23127004) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23127005 , 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=23126969 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 (23127005) result : ((1359429713,), (1359429717,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23127006 , 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=23126969 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 (23127006) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23126969) result : ((1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) 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 (1359428900) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23126969 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','cartonnette','environnement','papier','Teint_Dans_La_Masse','plastique','mal_croppe','Carton_brun','metal','flou','autre_refus')) 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`=23126969 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','cartonnette','environnement','papier','Teint_Dans_La_Masse','plastique','mal_croppe','Carton_brun','metal','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 23126969, 'sub_port_id': 23127007, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430390, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'papier': {'main_port_id': 23126969, 'sub_port_id': 23127008, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430391, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'flou': {'main_port_id': 23126969, 'sub_port_id': 23127009, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430392, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'environnement': {'main_port_id': 23126969, 'sub_port_id': 23127010, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430393, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'cartonnette': {'main_port_id': 23126969, 'sub_port_id': 23127011, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430394, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'metal': {'main_port_id': 23126969, 'sub_port_id': 23127012, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430395, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 23126969, 'sub_port_id': 23127013, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430396, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'Carton_gris': {'main_port_id': 23126969, 'sub_port_id': 23127014, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430397, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'plastique': {'main_port_id': 23126969, 'sub_port_id': 23127015, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430398, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'Carton_brun': {'main_port_id': 23126969, 'sub_port_id': 23127016, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430399, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'kraft': {'main_port_id': 23126969, 'sub_port_id': 23127017, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430400, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}, 'autre_refus': {'main_port_id': 23126969, 'sub_port_id': 23127018, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15430401, 'last_updated_at': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 19, 17, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 19, 17, 19, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23126995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23126996 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23126997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23126998 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23126999 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23127000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23127001 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127014,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23127002 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23127003 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23127004 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127017,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23127005 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23127018,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23127006 lien utilise dans velours : https://www.fotonower.com/velours/23127007,23127008,23127009,23127010,23127011,23127012,23127013,23127014,23127015,23127016,23127017,23127018?tags=mal_croppe,papier,flou,environnement,cartonnette,metal,Teint_Dans_La_Masse,Carton_gris,plastique,Carton_brun,kraft,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23126969]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550] map_info['map_portfolio_photo'] : {23126969: [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550, 1359428900, 1359428898, 1359428897, 1359428862, 1359428831, 1359428816, 1359428815, 1359428732, 1359428641, 1359428439, 1359428434, 1359428429, 1359428425, 1359428241, 1359428201, 1359428172, 1359428145, 1359427856, 1359427839, 1359427802, 1359427757, 1359427709, 1359427497, 1359427491, 1359427487, 1359427476, 1359427252, 1359427217, 1359427171, 1359426810, 1359426781, 1359426744, 1359426719]} final : False mtd_id 4302 list_pids : [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550] Looping around the photos to save general results len do output : 1 /23126969. 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, '2896277') ('4302', '23126969', '1359430281', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430275', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430271', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430236', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430232', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430208', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429875', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429826', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429777', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429704', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429626', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429550', None, None, None, None, None, '2896277') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '23126969', "{'mal_croppe': 23126995, 'papier': 23126996, 'flou': 23126997, 'environnement': 23126998, 'cartonnette': 23126999, 'metal': 23127000, 'Teint_Dans_La_Masse': 23127001, 'Carton_gris': 23127002, 'plastique': 23127003, 'Carton_brun': 23127004, 'kraft': 23127005, 'autre_refus': 23127006}", None, None, None, None, '2896277'), ('4302', '23126969', '1359430281', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430275', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430271', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430236', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430232', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430208', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429875', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429826', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429777', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429704', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429626', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429550', None, None, None, None, None, '2896277')] time used for this insertion : 0.017627716064453125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4354403018951416 time spend to save output : 0.017993450164794922 total time spend for step 1 : 0.4534337520599365 step2:final Mon May 19 17:26: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 (23126969) 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 23126969 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1359426810,1359426781,1359426744,1359426719,1359427252,1359427217,1359427171,1359427497,1359427491,1359427487,1359427476,1359427856,1359427839,1359427802,1359427757,1359427709,1359428241,1359428201,1359428172,1359428145,1359428439,1359428434,1359428429,1359428425,1359428862,1359428831,1359428816,1359428815,1359428732,1359428641,1359428900,1359428898,1359428897,1359429875,1359429826,1359429777,1359429704,1359429626,1359429550,1359430281,1359430275,1359430271,1359430236,1359430232,1359430208); 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([23126969]) Inside saveOutput : final : False verbose : True original output for save of step final : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} new output for save of step final : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550] map_info['map_portfolio_photo'] : {23126969: [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550, 1359428900, 1359428898, 1359428897, 1359428862, 1359428831, 1359428816, 1359428815, 1359428732, 1359428641, 1359428439, 1359428434, 1359428429, 1359428425, 1359428241, 1359428201, 1359428172, 1359428145, 1359427856, 1359427839, 1359427802, 1359427757, 1359427709, 1359427497, 1359427491, 1359427487, 1359427476, 1359427252, 1359427217, 1359427171, 1359426810, 1359426781, 1359426744, 1359426719]} final : False mtd_id 4302 list_pids : [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550] Looping around the photos to save general results len do output : 12 /1359430281.Didn't retrieve data . /1359430275.Didn't retrieve data . /1359430271.Didn't retrieve data . /1359430236.Didn't retrieve data . /1359430232.Didn't retrieve data . /1359430208.Didn't retrieve data . /1359429875.Didn't retrieve data . /1359429826.Didn't retrieve data . /1359429777.Didn't retrieve data . /1359429704.Didn't retrieve data . /1359429626.Didn't retrieve data . /1359429550.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, '2896277') ('4302', '23126969', '1359430281', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430275', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430271', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430236', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430232', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430208', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429875', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429826', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429777', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429704', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429626', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429550', None, None, None, None, None, '2896277') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '23126969', '1359430281', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359430275', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359430271', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359430236', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359430232', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359430208', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359429875', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359429826', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359429777', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359429704', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359429626', '0.09828506525954321', None, None, None, None, '2896277'), ('4302', '23126969', '1359429550', '0.09828506525954321', None, None, None, None, '2896277')] time used for this insertion : 0.015391111373901367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.11678481101989746 time spend to save output : 0.01605391502380371 total time spend for step 2 : 0.13283872604370117 step3:velours_tree Mon May 19 17:26: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 : {23126969: [{'mal_croppe': 23126995, 'papier': 23126996, 'flou': 23126997, 'environnement': 23126998, 'cartonnette': 23126999, 'metal': 23127000, 'Teint_Dans_La_Masse': 23127001, 'Carton_gris': 23127002, 'plastique': 23127003, 'Carton_brun': 23127004, 'kraft': 23127005, 'autre_refus': 23127006}]} input_args_next_step : {23126969: ()} output_args : {23126969: [{'mal_croppe': 23126995, 'papier': 23126996, 'flou': 23126997, 'environnement': 23126998, 'cartonnette': 23126999, 'metal': 23127000, 'Teint_Dans_La_Masse': 23127001, 'Carton_gris': 23127002, 'plastique': 23127003, 'Carton_brun': 23127004, 'kraft': 23127005, 'autre_refus': 23127006}]} args : 23126969 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'mal_croppe': 23126995, 'papier': 23126996, 'flou': 23126997, 'environnement': 23126998, 'cartonnette': 23126999, 'metal': 23127000, 'Teint_Dans_La_Masse': 23127001, 'Carton_gris': 23127002, 'plastique': 23127003, 'Carton_brun': 23127004, 'kraft': 23127005, 'autre_refus': 23127006},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23126969) 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([23126969]) 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.3242011070251465 time spend to save output : 7.43865966796875e-05 total time spend for step 3 : 0.32427549362182617 step4:send_mail_cod Mon May 19 17:26: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 ! complete output_args for input 2 : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} input_args_next_step : {1359430281: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359430281 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359430275 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359430271 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359430236 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359430232 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359430208 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359429875 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359429826 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359429777 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359429704 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359429626 depend.output_id : 0 input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ()} output_args : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',)} args : 1359429550 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 : {23126969: [{'mal_croppe': 23126995, 'papier': 23126996, 'flou': 23126997, 'environnement': 23126998, 'cartonnette': 23126999, 'metal': 23127000, 'Teint_Dans_La_Masse': 23127001, 'Carton_gris': 23127002, 'plastique': 23127003, 'Carton_brun': 23127004, 'kraft': 23127005, 'autre_refus': 23127006}]} input_args_next_step : {1359430281: ('0.09828506525954321',), 1359430275: ('0.09828506525954321',), 1359430271: ('0.09828506525954321',), 1359430236: ('0.09828506525954321',), 1359430232: ('0.09828506525954321',), 1359430208: ('0.09828506525954321',), 1359429875: ('0.09828506525954321',), 1359429826: ('0.09828506525954321',), 1359429777: ('0.09828506525954321',), 1359429704: ('0.09828506525954321',), 1359429626: ('0.09828506525954321',), 1359429550: ('0.09828506525954321',), 23126969: ()} output_args : {23126969: [{'mal_croppe': 23126995, 'papier': 23126996, 'flou': 23126997, 'environnement': 23126998, 'cartonnette': 23126999, 'metal': 23127000, 'Teint_Dans_La_Masse': 23127001, 'Carton_gris': 23127002, 'plastique': 23127003, 'Carton_brun': 23127004, 'kraft': 23127005, 'autre_refus': 23127006}]} args : 23126969 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 :13, first value : ('0.09828506525954321',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23126969) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1359430281,1359430275,1359430271,1359430236,1359430232,1359430208,1359429875,1359429826,1359429777,1359429704,1359429626,1359429550) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1359429550 begin to download photo : 1359429777 begin to download photo : 1359430208 begin to download photo : 1359430271 download finish for photo 1359430271 begin to download photo : 1359430275 download finish for photo 1359430208 begin to download photo : 1359430232 download finish for photo 1359429550 begin to download photo : 1359429626 download finish for photo 1359429777 begin to download photo : 1359429826 download finish for photo 1359430275 begin to download photo : 1359430281 download finish for photo 1359429826 begin to download photo : 1359429875 download finish for photo 1359429626 begin to download photo : 1359429704 download finish for photo 1359429875 download finish for photo 1359430281 download finish for photo 1359429704 download finish for photo 1359430232 begin to download photo : 1359430236 download finish for photo 1359430236 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette231269951747668390/ imagette231269971747668390/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P23126969_19-05-2025_17_26_30.pdf 23126995 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23126995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231269951747668390 23126997 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23126997 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231269971747668390 23126999 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23126999 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359429682: '1747668221_869866_1359428201_ff5d94b5d9211ee0e14d3de3312a6c69_rle_crop_3804109673_0.png', 1359429686: '1747668221_869866_1359428172_8e0e186e6e5f4a5498f911326d69fc46_rle_crop_3804109681_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/19/7078af727c6c9f02404e73f6e476c860_52949789.png change filename to text .imagette231269991747668390/ imagette231269991747668390/1747668221_869866_1359428172_8e0e186e6e5f4a5498f911326d69fc46_rle_crop_3804109681_0.png.png imagette231269991747668390/1747668221_869866_1359428201_ff5d94b5d9211ee0e14d3de3312a6c69_rle_crop_3804109673_0.png.png imagette231270001747668390/ imagette231270031747668390/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/19/c1959856659e5c14fb3fd0cddea73971_28252616.png imagette231269991747668390 23127000 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23127000 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231270001747668390 23127003 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23127003 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231270031747668390 23127005 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23127005 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359429713: '1747668221_869866_1359428201_ff5d94b5d9211ee0e14d3de3312a6c69_rle_crop_3804109675_0.png', 1359429717: '1747668221_869866_1359428172_8e0e186e6e5f4a5498f911326d69fc46_rle_crop_3804109689_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/19/a395042e4d65455bb9c7f5c275dd7116_7348014.png change filename to text .imagette231270051747668390/ imagette231270051747668390/1747668221_869866_1359428172_8e0e186e6e5f4a5498f911326d69fc46_rle_crop_3804109689_0.png.png imagette231270051747668390/1747668221_869866_1359428201_ff5d94b5d9211ee0e14d3de3312a6c69_rle_crop_3804109675_0.png.png imagette231270061747668390/ imagette231270011747668390/ imagette231270021747668390/ imagette231270041747668390/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/19/1c7700b93fee1571c346a31e116176f3_82611441.png imagette231270051747668390 23127006 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23127006 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231270061747668390 23127001 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23127001 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231270011747668390 23127002 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23127002 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231270021747668390 23127004 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23127004 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231270041747668390 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23126969 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23127007,23127008,23127009,23127010,23127011,23127012,23127013,23127014,23127015,23127016,23127017,23127018?tags=mal_croppe,papier,flou,environnement,cartonnette,metal,Teint_Dans_La_Masse,Carton_gris,plastique,Carton_brun,kraft,autre_refus your option no_mail is active, we will not send the real mail to your client args[1359430281] : ('0.09828506525954321',) no score found for photo 1359430281 We are sending mail with results at report@fotonower.com args[1359430275] : ('0.09828506525954321',) no score found for photo 1359430275 We are sending mail with results at report@fotonower.com args[1359430271] : ('0.09828506525954321',) no score found for photo 1359430271 We are sending mail with results at report@fotonower.com args[1359430236] : ('0.09828506525954321',) no score found for photo 1359430236 We are sending mail with results at report@fotonower.com args[1359430232] : ('0.09828506525954321',) no score found for photo 1359430232 We are sending mail with results at report@fotonower.com args[1359430208] : ('0.09828506525954321',) no score found for photo 1359430208 We are sending mail with results at report@fotonower.com args[1359429875] : ('0.09828506525954321',) no score found for photo 1359429875 We are sending mail with results at report@fotonower.com args[1359429826] : ('0.09828506525954321',) no score found for photo 1359429826 We are sending mail with results at report@fotonower.com args[1359429777] : ('0.09828506525954321',) no score found for photo 1359429777 We are sending mail with results at report@fotonower.com args[1359429704] : ('0.09828506525954321',) no score found for photo 1359429704 We are sending mail with results at report@fotonower.com args[1359429626] : ('0.09828506525954321',) no score found for photo 1359429626 We are sending mail with results at report@fotonower.com args[1359429550] : ('0.09828506525954321',) no score found for photo 1359429550 We are sending mail with results at report@fotonower.com refus_total : 0.09828506525954321 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23126969 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_P23126969_19-05-2025_17_26_30.pdf results_Auto_P23126969_19-05-2025_17_26_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23126969_19-05-2025_17_26_30.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','23126969','results_Auto_P23126969_19-05-2025_17_26_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23126969_19-05-2025_17_26_30.pdf','pdf','','0.14','0.09828506525954321') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23126969]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550] map_info['map_portfolio_photo'] : {23126969: [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550, 1359428900, 1359428898, 1359428897, 1359428862, 1359428831, 1359428816, 1359428815, 1359428732, 1359428641, 1359428439, 1359428434, 1359428429, 1359428425, 1359428241, 1359428201, 1359428172, 1359428145, 1359427856, 1359427839, 1359427802, 1359427757, 1359427709, 1359427497, 1359427491, 1359427487, 1359427476, 1359427252, 1359427217, 1359427171, 1359426810, 1359426781, 1359426744, 1359426719]} final : False mtd_id 4302 list_pids : [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550] 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, '2896277') ('4302', '23126969', '1359430281', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430275', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430271', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430236', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430232', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430208', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429875', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429826', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429777', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429704', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429626', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429550', None, None, None, None, None, '2896277') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '23126969', '1359430281', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430275', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430271', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430236', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430232', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430208', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429875', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429826', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429777', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429704', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429626', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429550', None, None, None, None, None, '2896277')] time used for this insertion : 0.01757359504699707 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9086599349975586 time spend to save output : 0.017897367477416992 total time spend for step 4 : 1.9265573024749756 step5:split_time_score Mon May 19 17:26:31 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 : ['23126969'] 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 : [('23126969',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23126969) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1359429777: {'path': 'temp/1747668389_2738151_1359429777_3964403c1d64c2e140a0a9bb063e1f0b.jpg', 'extension': 'jpg'}, 1359429826: {'path': 'temp/1747668389_2738151_1359429826_089138355b75222b50bcb196cefbb80c.jpg', 'extension': 'jpg'}, 1359429875: {'path': 'temp/1747668389_2738151_1359429875_8255cea260e9c8f9b207b1f7499a7fa8.jpg', 'extension': 'jpg'}, 1359430271: {'path': 'temp/1747668389_2738151_1359430271_beef36f68dbcc91529b9ac2cbdbbbff6.jpg', 'extension': 'jpg'}, 1359430275: {'path': 'temp/1747668389_2738151_1359430275_830f72a641e727fd55b5c3936bd598c7.jpg', 'extension': 'jpg'}, 1359430281: {'path': 'temp/1747668389_2738151_1359430281_d0c0ddcc3db04daa562a7c8fcb9d38a7.jpg', 'extension': 'jpg'}, 1359429550: {'path': 'temp/1747668389_2738151_1359429550_9cf85bfbd4e465bb8d05496b7db42d4e.jpg', 'extension': 'jpg'}, 1359429626: {'path': 'temp/1747668389_2738151_1359429626_0a020f518708e62d0937167fbb3f734d.jpg', 'extension': 'jpg'}, 1359429704: {'path': 'temp/1747668389_2738151_1359429704_41b48c85787ef31c45e32b46dfb082c2.jpg', 'extension': 'jpg'}, 1359430208: {'path': 'temp/1747668389_2738151_1359430208_3f8af8306ce058383763f0ca85e9ae39.jpg', 'extension': 'jpg'}, 1359430232: {'path': 'temp/1747668389_2738151_1359430232_ecfe17ca6523fa8f2f9559d208f2e9ff.jpg', 'extension': 'jpg'}, 1359430236: {'path': 'temp/1747668389_2738151_1359430236_da3d1416a21a5816e1735002320078fa.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 = 23126969; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 23126969 group by h (('17', 45),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23126969 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 (23126969) 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 (23126969) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 19052025 23126969 Nombre de photos uploadées : 45 / 23040 (0%) 19052025 23126969 Nombre de photos taguées (types de déchets): 0 / 45 (0%) 19052025 23126969 Nombre de photos taguées (volume) : 0 / 45 (0%) [{'photo_id': 1359426810, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/19/a85e318a4fda8ed8fed51147e10e8801.jpg', 'username': None, 'uploaded_at': 1747667768, 'text': 'image_19052025_17_15_14_10135.jpg'}, {'photo_id': 1359426781, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/19/d23b41f29d2083ab05a891a2318a3d17.jpg', 'username': None, 'uploaded_at': 1747667768, 'text': 'image_19052025_17_15_24_10141.jpg'}, {'photo_id': 1359426744, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/19/79b29567c67be443be47bacd4d8c6480.jpg', 'username': None, 'uploaded_at': 1747667768, 'text': 'image_19052025_17_15_34_10136.jpg'}, {'photo_id': 1359426719, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/19/271094011d8b6fa72f106c07dff3ed8b.jpg', 'username': None, 'uploaded_at': 1747667768, 'text': 'image_19052025_17_15_44_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014028549194335938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23126969, '2025-05-19' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1818689,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03346824645996094 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= 1818689 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23101417, 'dashboard_result_id': 10689031, '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_P23101417_19-05-2025_05_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23101419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23101420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23101421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23101422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23101423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23101424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23101425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23101426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23101427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23101428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23101429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23101430, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23101488, 'dashboard_result_id': 10689032, '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_P23101488_19-05-2025_05_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23101501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23101502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23101503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23101504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23101505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23101506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23101507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23101508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23101509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23101510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23101511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23101512, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23101750, 'dashboard_result_id': 10689033, '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_P23101750_19-05-2025_05_55_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23101776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23101778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23101779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23101780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23101781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23101782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23101783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23101784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23101785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23101786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23101787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23101788, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23102243, 'dashboard_result_id': 10689034, '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_P23102243_19-05-2025_05_56_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23102258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23102259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23102260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23102261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23102262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23102263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23102264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23102265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23102266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23102267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23102268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23102269, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23107773, 'dashboard_result_id': 10689035, '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_P23107773_19-05-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23107923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23107924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23107926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23107927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23107928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23107930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23107931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23107932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23107934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23107935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23107936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23107938, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23108470, 'dashboard_result_id': 10689036, '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_P23108470_19-05-2025_11_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23108489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23108491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23108492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23108493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23108494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23108495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23108496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23108497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23108498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23108499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23108500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23108501, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23109021, 'dashboard_result_id': 10689037, '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_P23109021_19-05-2025_11_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23109135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23109136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23109137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23109138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23109139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23109140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23109141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23109142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23109143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23109144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23109145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23109146, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23110229, 'dashboard_result_id': 10689038, '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_P23110229_19-05-2025_12_02_56.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23110241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23110242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23110243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23110244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23110245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23110246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23110247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23110248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23110249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23110250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23110251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23110252, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23111029, 'dashboard_result_id': 10689039, '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_P23111029_19-05-2025_12_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23111124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23111125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23111126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23111127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23111128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23111129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23111130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23111131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23111132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23111133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23111134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23111135, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23111767, 'dashboard_result_id': 10689040, '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_P23111767_19-05-2025_14_59_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23111843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23111844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23111845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23111846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23111847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23111848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23111849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23111850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23111851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23111852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23111853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23111854, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23115188, 'dashboard_result_id': 10689041, '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_P23115188_19-05-2025_13_46_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23115206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23115207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23115208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23115209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23115210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23115211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23115212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23115213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23115214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23115215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23115216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23115217, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23115836, 'dashboard_result_id': 10689042, '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_P23115836_19-05-2025_14_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23115895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23115896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23115897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23115898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23115899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23115900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23115901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23115902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23115903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23115904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23115905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23115906, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23116544, 'dashboard_result_id': 10689043, '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_P23116544_19-05-2025_14_17_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23116595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23116596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23116597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23116598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23116599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23116600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23116601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23116602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23116603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23116604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23116605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23116606, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23124152, 'dashboard_result_id': 10689044, '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_P23124152_19-05-2025_16_50_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23124229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23124230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23124231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23124232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23124233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23124234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23124235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23124236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23124237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23124238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23124239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23124240, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23125442, 'dashboard_result_id': 10689045, '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_P23125442_19-05-2025_17_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23125455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23125456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23125457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23125458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23125459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23125460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23125461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23125462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23125463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23125465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23125466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23125467, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23126030, 'dashboard_result_id': 10689046, '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_P23126030_19-05-2025_17_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23126136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23126137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23126138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23126139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23126140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23126141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23126142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23126143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23126144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23126145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23126146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23126147, 'pht': 3726}}"}, {'dashboat_entry_day': 1818689, 'dashboard_run_id': 1826681, 'mtr_portfolio_id': 23126969, 'dashboard_result_id': 10689047, '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_P23126969_19-05-2025_17_25_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23126995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23126996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23126997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23126998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23126999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23127000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23127001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23127002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23127003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23127004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23127005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23127006, '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 = 23101417 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23101417 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23101417 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23101417 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23101417 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23101417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23101417_19-05-2025_05_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23101417 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_P23101417_19-05-2025_05_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23101419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23101420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23101421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23101422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23101423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23101424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23101425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23101426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23101427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23101428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23101429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23101430, 'pht': 3726}}" where mtr_portfolio_id = 23101417 and dashboard_run_id = 1826681 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 = 23101488 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23101488 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23101488 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23101488 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23101488 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23101488 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23101488_19-05-2025_05_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23101488 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_P23101488_19-05-2025_05_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23101501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23101502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23101503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23101504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23101505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23101506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23101507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23101508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23101509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23101510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23101511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23101512, 'pht': 3726}}" where mtr_portfolio_id = 23101488 and dashboard_run_id = 1826681 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 = 23101750 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23101750 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23101750 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23101750 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23101750 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23101750 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23101750_19-05-2025_05_55_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23101750 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_P23101750_19-05-2025_05_55_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23101776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23101778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23101779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23101780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23101781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23101782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23101783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23101784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23101785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23101786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23101787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23101788, 'pht': 3726}}" where mtr_portfolio_id = 23101750 and dashboard_run_id = 1826681 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 = 23102243 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23102243 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23102243 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23102243 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23102243 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23102243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23102243_19-05-2025_15_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23102243 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_P23102243_19-05-2025_15_00_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23102258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23102259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23102260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23102261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23102262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23102263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23102264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23102265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23102266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23102267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23102268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23102269, 'pht': 3726}}" where mtr_portfolio_id = 23102243 and dashboard_run_id = 1826681 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 = 23107773 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': 2891378, 'mtr_portfolio_id': 23107773, 'created_at': datetime.datetime(2025, 5, 19, 11, 18, 59), 'result': '0.02843689435309623', 'result_long': None, 'result_double': None}] Qualite : 0.02843689435309623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23107773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23107773_19-05-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23107773 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_P23107773_19-05-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23107923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23107924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23107926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23107927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23107928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23107930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23107931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23107932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23107934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23107935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23107936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23107938, 'pht': 3726}}" where mtr_portfolio_id = 23107773 and dashboard_run_id = 1826681 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`=23107773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689035, 0.02843689435309623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23107773_19-05-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23107923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23107924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23107926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23107927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23107928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23107930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23107931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23107932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23107934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23107935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23107936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23107938, '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 = 23108470 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': 2891479, 'mtr_portfolio_id': 23108470, 'created_at': datetime.datetime(2025, 5, 19, 11, 32, 58), 'result': '0.01818216348419087', 'result_long': None, 'result_double': None}] Qualite : 0.01818216348419087 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23108470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23108470_19-05-2025_11_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23108470 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_P23108470_19-05-2025_11_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23108489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23108491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23108492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23108493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23108494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23108495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23108496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23108497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23108498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23108499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23108500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23108501, 'pht': 3726}}" where mtr_portfolio_id = 23108470 and dashboard_run_id = 1826681 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`=23108470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689036, 0.01818216348419087, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23108470_19-05-2025_11_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23108489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23108491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23108492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23108493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23108494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23108495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23108496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23108497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23108498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23108499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23108500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23108501, '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 = 23109021 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': 2891629, 'mtr_portfolio_id': 23109021, 'created_at': datetime.datetime(2025, 5, 19, 11, 48, 58), 'result': '0.12672602254904772', 'result_long': None, 'result_double': None}] Qualite : 0.12672602254904772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23109021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23109021_19-05-2025_11_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23109021 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_P23109021_19-05-2025_11_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23109135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23109136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23109137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23109138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23109139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23109140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23109141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23109142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23109143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23109144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23109145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23109146, 'pht': 3726}}" where mtr_portfolio_id = 23109021 and dashboard_run_id = 1826681 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`=23109021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689037, 0.12672602254904772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23109021_19-05-2025_11_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23109135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23109136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23109137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23109138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23109139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23109140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23109141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23109142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23109143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23109144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23109145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23109146, '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 = 23110229 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': 2891923, 'mtr_portfolio_id': 23110229, 'created_at': datetime.datetime(2025, 5, 19, 12, 2, 56), 'result': '0.014036946772471744', 'result_long': None, 'result_double': None}] Qualite : 0.014036946772471744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23110229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23110229_19-05-2025_12_02_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23110229 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_P23110229_19-05-2025_12_02_56.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23110241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23110242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23110243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23110244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23110245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23110246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23110247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23110248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23110249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23110250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23110251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23110252, 'pht': 3726}}" where mtr_portfolio_id = 23110229 and dashboard_run_id = 1826681 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`=23110229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689038, 0.014036946772471744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23110229_19-05-2025_12_02_56.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23110241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23110242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23110243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23110244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23110245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23110246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23110247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23110248, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23110249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23110250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23110251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23110252, '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 = 23111029 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23111029 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23111029 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23111029 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23111029 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23111029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23111029_19-05-2025_12_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23111029 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_P23111029_19-05-2025_12_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23111124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23111125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23111126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23111127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23111128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23111129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23111130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23111131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23111132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23111133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23111134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23111135, 'pht': 3726}}" where mtr_portfolio_id = 23111029 and dashboard_run_id = 1826681 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 = 23111767 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': 2892393, 'mtr_portfolio_id': 23111767, 'created_at': datetime.datetime(2025, 5, 19, 14, 59, 58), 'result': '0.03839580101495516', 'result_long': None, 'result_double': None}] Qualite : 0.03839580101495516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23111767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23111767_19-05-2025_14_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23111767 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_P23111767_19-05-2025_14_59_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23111843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23111844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23111845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23111846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23111847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23111848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23111849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23111850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23111851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23111852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23111853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23111854, 'pht': 3726}}" where mtr_portfolio_id = 23111767 and dashboard_run_id = 1826681 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`=23111767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689040, 0.03839580101495516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23111767_19-05-2025_14_59_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23111843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23111844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23111845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23111846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23111847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23111848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23111849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23111850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23111851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23111852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23111853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23111854, '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 = 23115188 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': 2893172, 'mtr_portfolio_id': 23115188, 'created_at': datetime.datetime(2025, 5, 19, 13, 46, 32), 'result': '0.0467687183887975', 'result_long': None, 'result_double': None}] Qualite : 0.0467687183887975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23115188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23115188_19-05-2025_13_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23115188 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_P23115188_19-05-2025_13_46_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23115206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23115207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23115208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23115209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23115210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23115211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23115212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23115213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23115214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23115215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23115216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23115217, 'pht': 3726}}" where mtr_portfolio_id = 23115188 and dashboard_run_id = 1826681 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`=23115188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689041, 0.0467687183887975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23115188_19-05-2025_13_46_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23115206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23115207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23115208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23115209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23115210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23115211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23115212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23115213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23115214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23115215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23115216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23115217, '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 = 23115836 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': 2893225, 'mtr_portfolio_id': 23115836, 'created_at': datetime.datetime(2025, 5, 19, 14, 3), 'result': '0.024401274744859335', 'result_long': None, 'result_double': None}] Qualite : 0.024401274744859335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23115836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23115836_19-05-2025_14_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23115836 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_P23115836_19-05-2025_14_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23115895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23115896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23115897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23115898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23115899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23115900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23115901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23115902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23115903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23115904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23115905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23115906, 'pht': 3726}}" where mtr_portfolio_id = 23115836 and dashboard_run_id = 1826681 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`=23115836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689042, 0.024401274744859335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23115836_19-05-2025_14_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23115895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23115896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23115897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23115898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23115899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23115900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23115901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23115902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23115903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23115904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23115905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23115906, '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 = 23116544 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23116544 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23116544 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23116544 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23116544 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23116544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23116544_19-05-2025_14_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23116544 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_P23116544_19-05-2025_14_17_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23116595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23116596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23116597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23116598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23116599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23116600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23116601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23116602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23116603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23116604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23116605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23116606, 'pht': 3726}}" where mtr_portfolio_id = 23116544 and dashboard_run_id = 1826681 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 = 23124152 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': 2895238, 'mtr_portfolio_id': 23124152, 'created_at': datetime.datetime(2025, 5, 19, 16, 50, 58), 'result': '0.037297313726918656', 'result_long': None, 'result_double': None}] Qualite : 0.037297313726918656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23124152 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23124152_19-05-2025_16_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23124152 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_P23124152_19-05-2025_16_50_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23124229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23124230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23124231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23124232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23124233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23124234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23124235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23124236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23124237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23124238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23124239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23124240, 'pht': 3726}}" where mtr_portfolio_id = 23124152 and dashboard_run_id = 1826681 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`=23124152 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689044, 0.037297313726918656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23124152_19-05-2025_16_50_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23124229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23124230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23124231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23124232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23124233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23124234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23124235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23124236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23124237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23124238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23124239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23124240, '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 = 23125442 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': 2895722, 'mtr_portfolio_id': 23125442, 'created_at': datetime.datetime(2025, 5, 19, 17, 2, 56), 'result': '0.054570067373247995', 'result_long': None, 'result_double': None}] Qualite : 0.054570067373247995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23125442 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23125442_19-05-2025_17_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23125442 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_P23125442_19-05-2025_17_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23125455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23125456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23125457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23125458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23125459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23125460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23125461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23125462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23125463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23125465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23125466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23125467, 'pht': 3726}}" where mtr_portfolio_id = 23125442 and dashboard_run_id = 1826681 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`=23125442 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689045, 0.054570067373247995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23125442_19-05-2025_17_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23125455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23125456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23125457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23125458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23125459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23125460, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23125461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23125462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23125463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23125465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23125466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23125467, '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 = 23126030 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': 2895948, 'mtr_portfolio_id': 23126030, 'created_at': datetime.datetime(2025, 5, 19, 17, 18, 58), 'result': '0.038887824441139585', 'result_long': None, 'result_double': None}] Qualite : 0.038887824441139585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23126030 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23126030_19-05-2025_17_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23126030 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_P23126030_19-05-2025_17_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23126136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23126137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23126138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23126139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23126140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23126141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23126142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23126143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23126144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23126145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23126146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23126147, 'pht': 3726}}" where mtr_portfolio_id = 23126030 and dashboard_run_id = 1826681 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`=23126030 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689046, 0.038887824441139585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23126030_19-05-2025_17_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23126136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23126137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23126138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23126139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23126140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23126141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23126142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23126143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23126144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23126145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23126146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23126147, '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 = 23126969 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': 2896277, 'mtr_portfolio_id': 23126969, 'created_at': datetime.datetime(2025, 5, 19, 17, 26, 29), 'result': '0.09828506525954321', 'result_long': None, 'result_double': None}] Qualite : 0.09828506525954321 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23126969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23126969_19-05-2025_17_26_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23126969 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_P23126969_19-05-2025_17_26_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23126995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23126996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23126997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23126998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23126999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23127000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23127001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23127002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23127003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23127004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23127005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23127006, 'pht': 3726}}" where mtr_portfolio_id = 23126969 and dashboard_run_id = 1826681 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`=23126969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10689047, 0.09828506525954321, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23126969_19-05-2025_17_26_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23126995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23126996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23126997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23126998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23126999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23127000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23127001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23127002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23127003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23127004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23127005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23127006, '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 (23101417,23101488,23101750,23102243,23107773,23108470,23109021,23110229,23111029,23111767,23115188,23115836,23116544,23124152,23125442,23126030,23126969) result : ((1359275991,), (1359275994,), (1359276016,), (1359276018,), (1359276020,), (1359276036,), (1359276052,), (1359276070,), (1359276072,), (1359276075,), (1359276093,), (1359276096,), (1359276098,), (1359276100,), (1359276118,), (1359276139,), (1359276141,), (1359276143,), (1359276145,), (1359276165,), (1359276166,), (1359276168,), (1359276170,), (1359276171,), (1359276172,), (1359276196,), (1359276198,), (1359276200,), (1359276202,), (1359276223,), (1359276226,), (1359276230,), (1359276244,), (1359276247,), (1359276253,), (1359276256,), (1359276259,), (1359276262,), (1359276275,), (1359276278,), (1359276281,), (1359276284,), (1359276286,), (1359276305,), (1359276327,), (1359276330,), (1359276333,), (1359276363,), (1359276358,), (1359276360,), (1359276362,), (1359276381,), (1359276383,), (1359276385,), (1359276387,), (1359276404,), (1359276406,), (1359276408,), (1359276410,), (1359276428,), (1359276430,), (1359276432,), (1359276434,), (1359276464,), (1359276466,), (1359276468,), (1359276470,), (1359276490,), (1359276518,), (1359276521,), (1359276523,), (1359276525,), (1359276527,), (1359276530,), (1359276546,), (1359276548,), (1359276550,), (1359276552,), (1359276568,), (1359276570,), (1359276572,), (1359276574,), (1359276583,), (1359276638,), (1359276639,), (1359276640,), (1359276641,), (1359276642,), (1359276693,), (1359276695,), (1359276697,), (1359276803,), (1359276805,), (1359276807,), (1359276809,), (1359276810,), (1359276848,), (1359276874,), (1359276876,), (1359276878,), (1359276880,), (1359276881,), (1359276882,), (1359276915,), (1359276917,), (1359276919,), (1359276921,), (1359276922,), (1359276936,), (1359276939,), (1359276942,), (1359276960,), (1359276964,), (1359276967,), (1359276970,), (1359276972,), (1359276998,), (1359276987,), (1359276990,), (1359276993,), (1359276996,), (1359277013,), (1359277016,), (1359277020,), (1359277023,), (1359277045,), (1359277049,), (1359277051,), (1359277054,), (1359277056,), (1359277069,), (1359277072,), (1359277074,), (1359277078,), (1359277080,), (1359277092,), (1359277094,), (1359277098,), (1359277101,), (1359277117,), (1359277121,), (1359277124,), (1359277127,), (1359277129,), (1359277131,), (1359277144,), (1359277147,), (1359277150,), (1359277152,), (1359277154,), (1359277169,), (1359277172,), (1359277175,), (1359277194,), (1359277198,), (1359277201,), (1359277206,), (1359277208,), (1359277219,), (1359277222,), (1359277225,), (1359277228,), (1359277246,), (1359277249,), (1359277252,), (1359277254,), (1359277268,), (1359277270,), (1359277273,), (1359277276,), (1359277290,), (1359277292,), (1359277857,), (1359277434,), (1359277848,), (1359277852,), (1359277855,), (1359277879,), (1359277886,), (1359277887,), (1359277888,), (1359323049,), (1359323272,), (1359323290,), (1359323302,), (1359323575,), (1359323577,), (1359323585,), (1359323590,), (1359323611,), (1359323615,), (1359323842,), (1359323869,), (1359323896,), (1359323934,), (1359323990,), (1359324098,), (1359324681,), (1359324758,), (1359324845,), (1359325468,), (1359325496,), (1359325529,), (1359325557,), (1359325585,), (1359325947,), (1359325951,), (1359325971,), (1359325987,), (1359325996,), (1359326320,), (1359326349,), (1359326375,), (1359326394,), (1359326542,), (1359326546,), (1359326550,), (1359326554,), (1359326559,), (1359326600,), (1359326605,), (1359326611,), (1359326615,), (1359326620,), (1359326625,), (1359326663,), (1359326666,), (1359326670,), (1359326784,), (1359326789,), (1359326795,), (1359326799,), (1359326803,), (1359326806,), (1359326832,), (1359326836,), (1359326840,), (1359326845,), (1359326849,), (1359326853,), (1359327003,), (1359327032,), (1359327061,), (1359327088,), (1359327117,), (1359327149,), (1359327396,), (1359327424,), (1359327452,), (1359327762,), (1359327696,), (1359327700,), (1359327728,), (1359327756,), (1359327758,), (1359328046,), (1359328072,), (1359328094,), (1359328102,), (1359328138,), (1359328390,), (1359328394,), (1359328399,), (1359328403,), (1359328440,), (1359328443,), (1359328447,), (1359328471,), (1359328498,), (1359328516,), (1359328615,), (1359328621,), (1359328626,), (1359328630,), (1359328673,), (1359328677,), (1359328681,), (1359328690,), (1359328702,), (1359328706,), (1359328844,), (1359328848,), (1359328853,), (1359329016,), (1359329019,), (1359329022,), (1359329025,), (1359329031,), (1359329035,), (1359329076,), (1359329077,), (1359329108,), (1359329114,), (1359329120,), (1359329151,), (1359329156,), (1359329163,), (1359329168,), (1359329263,), (1359329300,), (1359329330,), (1359329371,), (1359329376,), (1359329384,), (1359329397,), (1359329405,), (1359329411,), (1359329416,), (1359329420,), (1359329424,), (1359329439,), (1359329443,), (1359329471,), (1359329476,), (1359329534,), (1359329561,), (1359329589,), (1359329617,), (1359329743,), (1359329747,), (1359329753,), (1359329780,), (1359329816,), (1359329869,), (1359330102,), (1359330105,), (1359330113,), (1359330116,), (1359330117,), (1359330179,), (1359330166,), (1359330169,), (1359330173,), (1359330176,), (1359330251,), (1359330293,), (1359330322,), (1359330349,), (1359330377,), (1359330401,), (1359330477,), (1359330490,), (1359330491,), (1359330494,), (1359330528,), (1359330532,), (1359330536,), (1359330540,), (1359330544,), (1359330549,), (1359330599,), (1359330602,), (1359330604,), (1359330607,), (1359330792,), (1359330842,), (1359330878,), (1359330905,), (1359330933,), (1359330961,), (1359331410,), (1359331491,), (1359331568,), (1359332193,), (1359332247,), (1359332309,), (1359332359,), (1359332880,), (1359333270,), (1359333587,), (1359334448,), (1359334482,), (1359334509,), (1359334835,), (1359334841,), (1359334873,), (1359334895,), (1359334899,), (1359335128,), (1359335222,), (1359335252,), (1359335279,), (1359335306,), (1359335334,), (1359335570,), (1359335599,), (1359335608,), (1359336025,), (1359336074,), (1359336108,), (1359336150,), (1359336203,), (1359336764,), (1359336800,), (1359336833,), (1359336863,), (1359336913,), (1359336962,), (1359337548,), (1359337598,), (1359337649,), (1359337757,), (1359338264,), (1359338305,), (1359338333,), (1359338374,), (1359338402,), (1359338427,), (1359338547,), (1359338551,), (1359338555,), (1359338558,), (1359338731,), (1359338775,), (1359338809,), (1359338838,), (1359338867,), (1359339303,), (1359339353,), (1359339383,), (1359339410,), (1359339443,), (1359339482,), (1359339721,), (1359339772,), (1359339819,), (1359339848,), (1359340569,), (1359340639,), (1359340702,), (1359340760,), (1359340813,), (1359340874,), (1359342175,), (1359341718,), (1359341831,), (1359341938,), (1359342061,), (1359343085,), (1359343187,), (1359343290,), (1359343390,), (1359344055,), (1359344105,), (1359344155,), (1359344207,), (1359344263,), (1359344334,), (1359344986,), (1359345039,), (1359345113,), (1359345209,), (1359345525,), (1359345569,), (1359345579,), (1359345585,), (1359345603,), (1359345607,), (1359345725,), (1359345729,), (1359345748,), (1359345775,), (1359345805,), (1359346029,), (1359346032,), (1359346248,), (1359346251,), (1359346255,), (1359346259,), (1359346261,), (1359346283,), (1359346288,), (1359346292,), (1359346298,), (1359346303,), (1359346397,), (1359346401,), (1359346406,), (1359346412,), (1359346416,), (1359346448,), (1359346543,), (1359346571,), (1359346603,), (1359346660,), (1359346664,), (1359346669,), (1359346673,), (1359346676,), (1359346679,), (1359346698,), (1359346700,), (1359346706,), (1359346861,), (1359347085,), (1359347114,), (1359347135,), (1359347156,), (1359347160,), (1359347163,), (1359347518,), (1359347477,), (1359347481,), (1359347485,), (1359347489,), (1359347778,), (1359347793,), (1359347807,), (1359347826,), (1359347834,), (1359347871,), (1359347876,), (1359347881,), (1359347884,), (1359347887,), (1359347890,), (1359347910,), (1359347914,), (1359347917,), (1359347921,), (1359347946,), (1359347959,), (1359348001,), (1359348021,), (1359348033,), (1359348049,), (1359348073,), (1359348078,), (1359348084,), (1359348089,), (1359348181,), (1359348210,), (1359348223,), (1359348238,), (1359348239,), (1359348261,), (1359348320,), (1359348322,), (1359348325,), (1359348344,), (1359348375,), (1359348407,), (1359348458,), (1359348493,), (1359348504,), (1359348587,), (1359348598,), (1359348627,), (1359348652,), (1359348700,), (1359348716,), (1359348720,), (1359348724,), (1359348726,), (1359348728,), (1359348744,), (1359348747,), (1359361613,), (1359361609,), (1359362055,), (1359362105,), (1359362172,), (1359362228,), (1359362261,), (1359362399,), (1359362425,), (1359362467,), (1359362477,), (1359362567,), (1359362573,), (1359362579,), (1359362585,), (1359362913,), (1359362918,), (1359362923,), (1359362966,), (1359362969,), (1359362974,), (1359362979,), (1359362985,), (1359363013,), (1359363103,), (1359363107,), (1359363113,), (1359363118,), (1359363149,), (1359363153,), (1359363202,), (1359363218,), (1359363252,), (1359363725,), (1359363917,), (1359363924,), (1359364128,), (1359364136,), (1359364141,), (1359364147,), (1359364151,), (1359364190,), (1359364186,), (1359364320,), (1359364330,), (1359364352,), (1359364356,), (1359364559,), (1359364582,), (1359364585,), (1359364611,), (1359364615,), (1359364619,), (1359364623,), (1359364627,), (1359364632,), (1359364660,), (1359364665,), (1359364672,), (1359364911,), (1359364971,), (1359364972,), (1359365175,), (1359365181,), (1359365189,), (1359365289,), (1359365298,), (1359365301,), (1359365311,), (1359365473,), (1359365475,), (1359365478,), (1359365481,), (1359365484,), (1359365486,), (1359365571,), (1359365583,), (1359365589,), (1359365737,), (1359365769,), (1359365819,), (1359365861,), (1359365884,), (1359365899,), (1359365934,), (1359365939,), (1359365944,), (1359365949,), (1359365952,), (1359365973,), (1359365978,), (1359366540,), (1359367398,), (1359367073,), (1359367132,), (1359367214,), (1359367293,), (1359368099,), (1359368179,), (1359368249,), (1359368315,), (1359368412,), (1359368494,), (1359368725,), (1359368727,), (1359369124,), (1359369154,), (1359369160,), (1359369300,), (1359369303,), (1359369307,), (1359369310,), (1359369407,), (1359369435,), (1359369456,), (1359369459,), (1359369460,), (1359369584,), (1359369588,), (1359369601,), (1359369718,), (1359369720,), (1359369737,), (1359369768,), (1359369770,), (1359369908,), (1359369911,), (1359369917,), (1359369935,), (1359369956,), (1359369967,), (1359370176,), (1359370217,), (1359370283,), (1359370819,), (1359370870,), (1359370918,), (1359370941,), (1359370971,), (1359370990,), (1359371299,), (1359371352,), (1359371409,), (1359371457,), (1359371511,), (1359371759,), (1359371765,), (1359371771,), (1359371778,), (1359371781,), (1359372114,), (1359372157,), (1359372379,), (1359372383,), (1359372388,), (1359372392,), (1359407578,), (1359407619,), (1359407647,), (1359407659,), (1359408148,), (1359408182,), (1359408217,), (1359408247,), (1359408835,), (1359408892,), (1359408955,), (1359409523,), (1359409553,), (1359409581,), (1359409608,), (1359409635,), (1359409660,), (1359409780,), (1359409805,), (1359409841,), (1359410412,), (1359410436,), (1359410439,), (1359410446,), (1359410474,), (1359410709,), (1359410712,), (1359410715,), (1359410746,), (1359410749,), (1359410770,), (1359410795,), (1359410831,), (1359410858,), (1359411461,), (1359411516,), (1359411693,), (1359411732,), (1359411855,), (1359411860,), (1359411872,), (1359411877,), (1359412218,), (1359412352,), (1359413157,), (1359413237,), (1359413341,), (1359413418,), (1359413482,), (1359414135,), (1359414176,), (1359414228,), (1359414262,), (1359414287,), (1359414294,), (1359414392,), (1359414394,), (1359414400,), (1359415050,), (1359417530,), (1359417661,), (1359417687,), (1359417691,), (1359417694,), (1359417698,), (1359417932,), (1359417963,), (1359417999,), (1359418051,), (1359418103,), (1359418321,), (1359418335,), (1359418356,), (1359418361,), (1359418365,), (1359418814,), (1359418819,), (1359418826,), (1359418912,), (1359418917,), (1359418923,), (1359418927,), (1359418932,), (1359418966,), (1359418971,), (1359418977,), (1359418986,), (1359418990,), (1359418993,), (1359419023,), (1359419027,), (1359419030,), (1359419081,), (1359419090,), (1359419100,), (1359419123,), (1359419157,), (1359419188,), (1359419762,), (1359419795,), (1359419841,), (1359419902,), (1359420020,), (1359420057,), (1359420086,), (1359420616,), (1359420381,), (1359420436,), (1359420494,), (1359420558,), (1359421179,), (1359421224,), (1359421261,), (1359421288,), (1359421602,), (1359421631,), (1359421662,), (1359421674,), (1359421926,), (1359421933,), (1359421957,), (1359421987,), (1359422015,), (1359422024,), (1359422126,), (1359422130,), (1359422136,), (1359422140,), (1359422146,), (1359422167,), (1359422169,), (1359422172,), (1359422175,), (1359422564,), (1359422592,), (1359422625,), (1359422655,), (1359423036,), (1359423065,), (1359423086,), (1359423090,), (1359423094,), (1359423281,), (1359423285,), (1359423296,), (1359423339,), (1359423393,), (1359423426,), (1359423958,), (1359424012,), (1359424069,), (1359424554,), (1359424581,), (1359424626,), (1359424641,), (1359424650,), (1359424664,), (1359424743,), (1359424782,), (1359424815,), (1359424847,), (1359424899,), (1359424952,), (1359425449,), (1359425503,), (1359425543,), (1359425786,), (1359425839,), (1359426380,), (1359426407,), (1359426427,), (1359426431,), (1359426432,), (1359426438,), (1359426838,), (1359426719,), (1359426744,), (1359426781,), (1359426810,), (1359427171,), (1359427217,), (1359427252,), (1359427476,), (1359427487,), (1359427491,), (1359427497,), (1359427709,), (1359427757,), (1359427802,), (1359427839,), (1359427856,), (1359428145,), (1359428172,), (1359428201,), (1359428241,), (1359428425,), (1359428429,), (1359428434,), (1359428439,), (1359428641,), (1359428732,), (1359428815,), (1359428816,), (1359428831,), (1359428862,), (1359428897,), (1359428898,), (1359428900,), (1359429550,), (1359429626,), (1359429704,), (1359429777,), (1359429826,), (1359429875,), (1359430208,), (1359430232,), (1359430236,), (1359430271,), (1359430275,), (1359430281,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'19052025': {'nb_upload': 45, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23126969]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550] map_info['map_portfolio_photo'] : {23126969: [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550, 1359428900, 1359428898, 1359428897, 1359428862, 1359428831, 1359428816, 1359428815, 1359428732, 1359428641, 1359428439, 1359428434, 1359428429, 1359428425, 1359428241, 1359428201, 1359428172, 1359428145, 1359427856, 1359427839, 1359427802, 1359427757, 1359427709, 1359427497, 1359427491, 1359427487, 1359427476, 1359427252, 1359427217, 1359427171, 1359426810, 1359426781, 1359426744, 1359426719]} final : True mtd_id 4302 list_pids : [1359430281, 1359430275, 1359430271, 1359430236, 1359430232, 1359430208, 1359429875, 1359429826, 1359429777, 1359429704, 1359429626, 1359429550] Looping around the photos to save general results len do output : 1 /23126969Didn'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, '2896277') ('4302', '23126969', '1359430281', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430275', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430271', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430236', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430232', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359430208', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429875', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429826', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429777', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429704', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429626', None, None, None, None, None, '2896277') ('4302', None, None, None, None, None, None, None, '2896277') ('4302', '23126969', '1359429550', None, None, None, None, None, '2896277') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '23126969', 'None', None, None, None, None, '2896277'), ('4302', '23126969', '1359430281', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430275', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430271', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430236', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430232', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359430208', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429875', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429826', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429777', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429704', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429626', None, None, None, None, None, '2896277'), ('4302', '23126969', '1359429550', None, None, None, None, None, '2896277')] time used for this insertion : 0.042275190353393555 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3069963455200195 time spend to save output : 0.04256176948547363 total time spend for step 5 : 1.3495581150054932 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 (2896277) 2.25user 2.07system 0:08.14elapsed 53%CPU (0avgtext+0avgdata 159912maxresident)k 896inputs+8352outputs (11major+77859minor)pagefaults 0swaps