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 : 2523982 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 (3232108) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3232108) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552414 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3232108'] with mtr_portfolio_ids : ['24552414'] and first list_photo_ids : [] new path : /proc/2523982/ Name: python3 Umask: 0002 State: R (running) Tgid: 2523982 Ngid: 0 Pid: 2523982 PPid: 2523981 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2523982 NSpid: 2523982 NSpgid: 2523020 NSsid: 2523020 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98880 kB VmRSS: 98880 kB RssAnon: 59804 kB RssFile: 39076 kB RssShmem: 0 kB VmData: 865620 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: 9/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 56 nonvoluntary_ctxt_switches: 188 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2523982', 'Ngid': '0', 'Pid': '2523982', 'PPid': '2523981', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2523982', 'NSpid': '2523982', 'NSpgid': '2523020', 'NSsid': '2523020', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98880 kB', 'VmRSS': '98880 kB', 'RssAnon': '59804 kB', 'RssFile': '39076 kB', 'RssShmem': '0 kB', 'VmData': '865620 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': '9/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '56', 'nonvoluntary_ctxt_switches': '188'} ('datou_batch_current', '2523982', '1106868', '0', '1106868', '865620', '98880', b'', 'marlene', '3232108') 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 (24552414) 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 (3232108 ) ) 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 (24552414) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1370289874, 'portfolio_id': 24552414}, {'photo_id': 1370289811, 'portfolio_id': 24552414}, {'photo_id': 1370289806, 'portfolio_id': 24552414}, {'photo_id': 1370289805, 'portfolio_id': 24552414}, {'photo_id': 1370289803, 'portfolio_id': 24552414}, {'photo_id': 1370289800, 'portfolio_id': 24552414}, {'photo_id': 1370289671, 'portfolio_id': 24552414}, {'photo_id': 1370289669, 'portfolio_id': 24552414}, {'photo_id': 1370289629, 'portfolio_id': 24552414}, {'photo_id': 1370289622, 'portfolio_id': 24552414}, {'photo_id': 1370289600, 'portfolio_id': 24552414}, {'photo_id': 1370289599, 'portfolio_id': 24552414}, {'photo_id': 1370289593, 'portfolio_id': 24552414}, {'photo_id': 1370289592, 'portfolio_id': 24552414}, {'photo_id': 1370289586, 'portfolio_id': 24552414}, {'photo_id': 1370289580, 'portfolio_id': 24552414}, {'photo_id': 1370289522, 'portfolio_id': 24552414}, {'photo_id': 1370289516, 'portfolio_id': 24552414}, {'photo_id': 1370289260, 'portfolio_id': 24552414}, {'photo_id': 1370289185, 'portfolio_id': 24552414}, {'photo_id': 1370289110, 'portfolio_id': 24552414}, {'photo_id': 1370289037, 'portfolio_id': 24552414}, {'photo_id': 1370288966, 'portfolio_id': 24552414}, {'photo_id': 1370288903, 'portfolio_id': 24552414}, {'photo_id': 1370288552, 'portfolio_id': 24552414}, {'photo_id': 1370288509, 'portfolio_id': 24552414}, {'photo_id': 1370288473, 'portfolio_id': 24552414}, {'photo_id': 1370288438, 'portfolio_id': 24552414}, {'photo_id': 1370288373, 'portfolio_id': 24552414}, {'photo_id': 1370288309, 'portfolio_id': 24552414}, {'photo_id': 1370288053, 'portfolio_id': 24552414}, {'photo_id': 1370287941, 'portfolio_id': 24552414}, {'photo_id': 1370287843, 'portfolio_id': 24552414}, {'photo_id': 1370287750, 'portfolio_id': 24552414}, {'photo_id': 1370287671, 'portfolio_id': 24552414}, {'photo_id': 1370287597, 'portfolio_id': 24552414}] map_portfolio_id_photo_id: {24552414: [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516, 1370289260, 1370289185, 1370289110, 1370289037, 1370288966, 1370288903, 1370288552, 1370288509, 1370288473, 1370288438, 1370288373, 1370288309, 1370288053, 1370287941, 1370287843, 1370287750, 1370287671, 1370287597]} ##### 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.0177004337310791 #### 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 Thu Jul 3 05:06:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24552414) 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 : 24552414 get user id for portfolio 24552414 get sub ptf for main ptf 24552414, type 3726 and hashtags ['kraft', 'metal', 'plastique', 'environnement', 'flou', 'autre_refus', 'Teint_Dans_La_Masse', 'cartonnette', 'mal_croppe', 'Carton_brun', 'papier', 'Carton_gris'] 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`=24552414 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','plastique','environnement','flou','autre_refus','Teint_Dans_La_Masse','cartonnette','mal_croppe','Carton_brun','papier','Carton_gris')) 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`=24552414 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','plastique','environnement','flou','autre_refus','Teint_Dans_La_Masse','cartonnette','mal_croppe','Carton_brun','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 24552414, 'sub_port_id': 24552502, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485610, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'Carton_brun': {'main_port_id': 24552414, 'sub_port_id': 24552503, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485611, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'metal': {'main_port_id': 24552414, 'sub_port_id': 24552504, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485612, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'Carton_gris': {'main_port_id': 24552414, 'sub_port_id': 24552505, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485613, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'plastique': {'main_port_id': 24552414, 'sub_port_id': 24552506, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485614, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 24552414, 'sub_port_id': 24552507, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485615, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'papier': {'main_port_id': 24552414, 'sub_port_id': 24552508, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485616, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'flou': {'main_port_id': 24552414, 'sub_port_id': 24552509, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485617, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'kraft': {'main_port_id': 24552414, 'sub_port_id': 24552510, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485618, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'environnement': {'main_port_id': 24552414, 'sub_port_id': 24552511, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485619, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'autre_refus': {'main_port_id': 24552414, 'sub_port_id': 24552512, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485620, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}, 'mal_croppe': {'main_port_id': 24552414, 'sub_port_id': 24552514, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485621, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24552502 , 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=24552414 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 (24552502) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552503 , 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=24552414 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 (24552503) result : ((1370289340,), (1370289343,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552504 , 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=24552414 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 (24552504) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552505 , 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=24552414 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 (24552505) result : ((1370289319,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552506 , 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=24552414 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 (24552506) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552507 , 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=24552414 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 (24552507) result : ((1370289290,), (1370289293,), (1370289296,), (1370289299,), (1370289302,), (1370289305,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552508 , 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=24552414 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 (24552508) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552509 , 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=24552414 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 (24552509) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552510 , 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=24552414 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 (24552510) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552511 , 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=24552414 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 (24552511) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552512 , 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=24552414 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 (24552512) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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 24552514 , 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=24552414 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 (24552514) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24552414) result : ((1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) 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 (1370289800,1370289600) 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`=24552414 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','plastique','environnement','flou','autre_refus','Teint_Dans_La_Masse','cartonnette','mal_croppe','Carton_brun','papier','Carton_gris')) 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`=24552414 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','plastique','environnement','flou','autre_refus','Teint_Dans_La_Masse','cartonnette','mal_croppe','Carton_brun','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 24552414, 'sub_port_id': 24552515, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485622, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'Carton_brun': {'main_port_id': 24552414, 'sub_port_id': 24552516, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485623, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'metal': {'main_port_id': 24552414, 'sub_port_id': 24552517, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485624, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'Carton_gris': {'main_port_id': 24552414, 'sub_port_id': 24552518, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485625, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'plastique': {'main_port_id': 24552414, 'sub_port_id': 24552519, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485626, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 24552414, 'sub_port_id': 24552520, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485627, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'papier': {'main_port_id': 24552414, 'sub_port_id': 24552521, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485628, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'flou': {'main_port_id': 24552414, 'sub_port_id': 24552522, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485629, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'kraft': {'main_port_id': 24552414, 'sub_port_id': 24552523, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485630, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'environnement': {'main_port_id': 24552414, 'sub_port_id': 24552524, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485631, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'autre_refus': {'main_port_id': 24552414, 'sub_port_id': 24552525, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485632, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}, 'mal_croppe': {'main_port_id': 24552414, 'sub_port_id': 24552526, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16485633, 'last_updated_at': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 5, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 5, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552515,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552502 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552516,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552503 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552517,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552504 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552518,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552505 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552519,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552506 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552520,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552507 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552521,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552508 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552522,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552509 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552523,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552510 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552524,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552511 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552525,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552512 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24552526,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24552514 lien utilise dans velours : https://www.fotonower.com/velours/24552515,24552516,24552517,24552518,24552519,24552520,24552521,24552522,24552523,24552524,24552525,24552526?tags=cartonnette,Carton_brun,metal,Carton_gris,plastique,Teint_Dans_La_Masse,papier,flou,kraft,environnement,autre_refus,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24552414]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516] map_info['map_portfolio_photo'] : {24552414: [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516, 1370289260, 1370289185, 1370289110, 1370289037, 1370288966, 1370288903, 1370288552, 1370288509, 1370288473, 1370288438, 1370288373, 1370288309, 1370288053, 1370287941, 1370287843, 1370287750, 1370287671, 1370287597]} final : False mtd_id 4302 list_pids : [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516] Looping around the photos to save general results len do output : 1 /24552414. 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, '3232108') ('4302', '24552414', '1370289874', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289811', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289806', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289805', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289803', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289800', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289671', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289669', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289629', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289622', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289600', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289599', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289593', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289592', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289586', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289580', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289522', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289516', None, None, None, None, None, '3232108') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24552414', "{'cartonnette': 24552502, 'Carton_brun': 24552503, 'metal': 24552504, 'Carton_gris': 24552505, 'plastique': 24552506, 'Teint_Dans_La_Masse': 24552507, 'papier': 24552508, 'flou': 24552509, 'kraft': 24552510, 'environnement': 24552511, 'autre_refus': 24552512, 'mal_croppe': 24552514}", None, None, None, None, '3232108'), ('4302', '24552414', '1370289874', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289811', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289806', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289805', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289803', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289800', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289671', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289669', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289629', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289622', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289600', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289599', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289593', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289592', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289586', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289580', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289522', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289516', None, None, None, None, None, '3232108')] time used for this insertion : 0.018803834915161133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43680620193481445 time spend to save output : 0.019186973571777344 total time spend for step 1 : 0.4559931755065918 step2:final Thu Jul 3 05:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (24552414) 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 24552414 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1370288053,1370287941,1370287843,1370287750,1370287671,1370287597,1370288552,1370288509,1370288473,1370288438,1370288373,1370288309,1370289260,1370289185,1370289110,1370289037,1370288966,1370288903,1370289671,1370289669,1370289622,1370289629,1370289599,1370289600,1370289592,1370289593,1370289580,1370289586,1370289516,1370289522,1370289874,1370289811,1370289806,1370289805,1370289803,1370289800); 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([24552414]) Inside saveOutput : final : False verbose : True original output for save of step final : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} new output for save of step final : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516] map_info['map_portfolio_photo'] : {24552414: [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516, 1370289260, 1370289185, 1370289110, 1370289037, 1370288966, 1370288903, 1370288552, 1370288509, 1370288473, 1370288438, 1370288373, 1370288309, 1370288053, 1370287941, 1370287843, 1370287750, 1370287671, 1370287597]} final : False mtd_id 4302 list_pids : [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516] Looping around the photos to save general results len do output : 18 /1370289874.Didn't retrieve data . /1370289811.Didn't retrieve data . /1370289806.Didn't retrieve data . /1370289805.Didn't retrieve data . /1370289803.Didn't retrieve data . /1370289800.Didn't retrieve data . /1370289671.Didn't retrieve data . /1370289669.Didn't retrieve data . /1370289629.Didn't retrieve data . /1370289622.Didn't retrieve data . /1370289600.Didn't retrieve data . /1370289599.Didn't retrieve data . /1370289593.Didn't retrieve data . /1370289592.Didn't retrieve data . /1370289586.Didn't retrieve data . /1370289580.Didn't retrieve data . /1370289522.Didn't retrieve data . /1370289516.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, '3232108') ('4302', '24552414', '1370289874', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289811', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289806', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289805', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289803', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289800', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289671', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289669', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289629', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289622', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289600', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289599', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289593', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289592', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289586', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289580', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289522', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289516', None, None, None, None, None, '3232108') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24552414', '1370289874', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289811', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289806', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289805', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289803', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289800', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289671', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289669', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289629', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289622', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289600', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289599', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289593', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289592', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289586', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289580', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289522', '0.2713661355744875', None, None, None, None, '3232108'), ('4302', '24552414', '1370289516', '0.2713661355744875', None, None, None, None, '3232108')] time used for this insertion : 0.017235755920410156 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06983804702758789 time spend to save output : 0.01804661750793457 total time spend for step 2 : 0.08788466453552246 step3:velours_tree Thu Jul 3 05:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24552414: [{'cartonnette': 24552502, 'Carton_brun': 24552503, 'metal': 24552504, 'Carton_gris': 24552505, 'plastique': 24552506, 'Teint_Dans_La_Masse': 24552507, 'papier': 24552508, 'flou': 24552509, 'kraft': 24552510, 'environnement': 24552511, 'autre_refus': 24552512, 'mal_croppe': 24552514}]} input_args_next_step : {24552414: ()} output_args : {24552414: [{'cartonnette': 24552502, 'Carton_brun': 24552503, 'metal': 24552504, 'Carton_gris': 24552505, 'plastique': 24552506, 'Teint_Dans_La_Masse': 24552507, 'papier': 24552508, 'flou': 24552509, 'kraft': 24552510, 'environnement': 24552511, 'autre_refus': 24552512, 'mal_croppe': 24552514}]} args : 24552414 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 : ({'cartonnette': 24552502, 'Carton_brun': 24552503, 'metal': 24552504, 'Carton_gris': 24552505, 'plastique': 24552506, 'Teint_Dans_La_Masse': 24552507, 'papier': 24552508, 'flou': 24552509, 'kraft': 24552510, 'environnement': 24552511, 'autre_refus': 24552512, 'mal_croppe': 24552514},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24552414) 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([24552414]) 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.48830199241638184 time spend to save output : 4.410743713378906e-05 total time spend for step 3 : 0.4883460998535156 step4:send_mail_cod Thu Jul 3 05:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} input_args_next_step : {1370289874: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289874 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289811 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289806 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289805 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289803 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289800 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289671 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289669 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289629 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289622 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289600 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289599 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289593 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289592 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289586 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289580 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289522 depend.output_id : 0 input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ()} output_args : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',)} args : 1370289516 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 : {24552414: [{'cartonnette': 24552502, 'Carton_brun': 24552503, 'metal': 24552504, 'Carton_gris': 24552505, 'plastique': 24552506, 'Teint_Dans_La_Masse': 24552507, 'papier': 24552508, 'flou': 24552509, 'kraft': 24552510, 'environnement': 24552511, 'autre_refus': 24552512, 'mal_croppe': 24552514}]} input_args_next_step : {1370289874: ('0.2713661355744875',), 1370289811: ('0.2713661355744875',), 1370289806: ('0.2713661355744875',), 1370289805: ('0.2713661355744875',), 1370289803: ('0.2713661355744875',), 1370289800: ('0.2713661355744875',), 1370289671: ('0.2713661355744875',), 1370289669: ('0.2713661355744875',), 1370289629: ('0.2713661355744875',), 1370289622: ('0.2713661355744875',), 1370289600: ('0.2713661355744875',), 1370289599: ('0.2713661355744875',), 1370289593: ('0.2713661355744875',), 1370289592: ('0.2713661355744875',), 1370289586: ('0.2713661355744875',), 1370289580: ('0.2713661355744875',), 1370289522: ('0.2713661355744875',), 1370289516: ('0.2713661355744875',), 24552414: ()} output_args : {24552414: [{'cartonnette': 24552502, 'Carton_brun': 24552503, 'metal': 24552504, 'Carton_gris': 24552505, 'plastique': 24552506, 'Teint_Dans_La_Masse': 24552507, 'papier': 24552508, 'flou': 24552509, 'kraft': 24552510, 'environnement': 24552511, 'autre_refus': 24552512, 'mal_croppe': 24552514}]} args : 24552414 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :19, first value : ('0.2713661355744875',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24552414) 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 (1370289874,1370289811,1370289806,1370289805,1370289803,1370289800,1370289671,1370289669,1370289629,1370289622,1370289600,1370289599,1370289593,1370289592,1370289586,1370289580,1370289522,1370289516) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1370289516 begin to download photo : 1370289592 begin to download photo : 1370289622 begin to download photo : 1370289800 begin to download photo : 1370289811 download finish for photo 1370289516 begin to download photo : 1370289522 download finish for photo 1370289800 begin to download photo : 1370289803 download finish for photo 1370289622 begin to download photo : 1370289629 download finish for photo 1370289811 begin to download photo : 1370289874 download finish for photo 1370289592 begin to download photo : 1370289593 download finish for photo 1370289803 begin to download photo : 1370289805 download finish for photo 1370289629 begin to download photo : 1370289669 download finish for photo 1370289874 download finish for photo 1370289522 begin to download photo : 1370289580 download finish for photo 1370289805 begin to download photo : 1370289806 download finish for photo 1370289669 begin to download photo : 1370289671 download finish for photo 1370289580 begin to download photo : 1370289586 download finish for photo 1370289806 download finish for photo 1370289671 download finish for photo 1370289586 download finish for photo 1370289593 begin to download photo : 1370289599 download finish for photo 1370289599 begin to download photo : 1370289600 download finish for photo 1370289600 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette245525021751512021/ imagette245525041751512021/ imagette245525061751512021/ imagette245525091751512021/ imagette245525101751512021/ imagette245525121751512021/ imagette245525141751512021/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P24552414_03-07-2025_05_07_01.pdf 24552502 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=24552502 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245525021751512021 24552504 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=24552504 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245525041751512021 24552506 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=24552506 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245525061751512021 24552509 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=24552509 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245525091751512021 24552510 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=24552510 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245525101751512021 24552512 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=24552512 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245525121751512021 24552514 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=24552514 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245525141751512021 24552503 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=24552503 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370289340: '1751511807_1048675_1370288053_5d1a6b700e78d6bf58caab8515d9d04d_rle_crop_3870046536_0.png', 1370289343: '1751511807_1048675_1370287671_187270c5a2a1df82ef25d8a07aba7677_rle_crop_3870046634_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/58456f6f088117da6b2d52d22dab9cda_29248482.png change filename to text .imagette245525031751512021/ imagette245525031751512021/1751511807_1048675_1370287671_187270c5a2a1df82ef25d8a07aba7677_rle_crop_3870046634_0.png.png imagette245525031751512021/1751511807_1048675_1370288053_5d1a6b700e78d6bf58caab8515d9d04d_rle_crop_3870046536_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/7f9772137a1b13fb0e4ea78674c6bcb6_65916484.png imagette245525031751512021 24552505 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=24552505 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370289319: '1751511807_1048675_1370287750_e6dc6bc7f1146ddc96c800ace2843a44_rle_crop_3870046614_0.png'} change filename to text .imagette245525051751512022/ imagette245525051751512022/1751511807_1048675_1370287750_e6dc6bc7f1146ddc96c800ace2843a44_rle_crop_3870046614_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/4baea0caf0e4740d1c0234d82c31a497_99345205.png imagette245525051751512022 24552507 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=24552507 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370289290: '1751511807_1048675_1370288053_5d1a6b700e78d6bf58caab8515d9d04d_rle_crop_3870046539_0.png', 1370289293: '1751511807_1048675_1370287941_f6a3d33e431718e345eebe329faf1099_rle_crop_3870046556_0.png', 1370289296: '1751511807_1048675_1370287843_b4ba4671e9644258868f454a7dc65ce7_rle_crop_3870046562_0.png', 1370289299: '1751511807_1048675_1370287750_e6dc6bc7f1146ddc96c800ace2843a44_rle_crop_3870046619_0.png', 1370289302: '1751511807_1048675_1370287671_187270c5a2a1df82ef25d8a07aba7677_rle_crop_3870046635_0.png', 1370289305: '1751511807_1048675_1370287597_2557594af8269883258c639b3bc96ae5_rle_crop_3870046674_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/7f0603ea18fcc766436310b2524595bd_50352162.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/707b59da698091ea30164567872aed46_66856654.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/541d5c16ba9efdccaa3dfaed93445ebd_17214708.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/9d16304d76a317b457eeb1c086024a19_61807734.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/5ede6d897e1ec271aa1e3c8f43b03da6_24297602.png change filename to text .imagette245525071751512022/ imagette245525071751512022/1751511807_1048675_1370287750_e6dc6bc7f1146ddc96c800ace2843a44_rle_crop_3870046619_0.png.png imagette245525071751512022/1751511807_1048675_1370287597_2557594af8269883258c639b3bc96ae5_rle_crop_3870046674_0.png.png imagette245525071751512022/1751511807_1048675_1370287843_b4ba4671e9644258868f454a7dc65ce7_rle_crop_3870046562_0.png.png imagette245525071751512022/1751511807_1048675_1370288053_5d1a6b700e78d6bf58caab8515d9d04d_rle_crop_3870046539_0.png.png imagette245525071751512022/1751511807_1048675_1370287941_f6a3d33e431718e345eebe329faf1099_rle_crop_3870046556_0.png.png imagette245525071751512022/1751511807_1048675_1370287671_187270c5a2a1df82ef25d8a07aba7677_rle_crop_3870046635_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/1dd9142e2b2727052f98097de75f81c3_60189201.png imagette245525071751512022 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24552414 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24552515,24552516,24552517,24552518,24552519,24552520,24552521,24552522,24552523,24552524,24552525,24552526?tags=cartonnette,Carton_brun,metal,Carton_gris,plastique,Teint_Dans_La_Masse,papier,flou,kraft,environnement,autre_refus,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1370289874] : ('0.2713661355744875',) no score found for photo 1370289874 We are sending mail with results at report@fotonower.com args[1370289811] : ('0.2713661355744875',) no score found for photo 1370289811 We are sending mail with results at report@fotonower.com args[1370289806] : ('0.2713661355744875',) no score found for photo 1370289806 We are sending mail with results at report@fotonower.com args[1370289805] : ('0.2713661355744875',) no score found for photo 1370289805 We are sending mail with results at report@fotonower.com args[1370289803] : ('0.2713661355744875',) no score found for photo 1370289803 We are sending mail with results at report@fotonower.com args[1370289800] : ('0.2713661355744875',) no score found for photo 1370289800 We are sending mail with results at report@fotonower.com args[1370289671] : ('0.2713661355744875',) no score found for photo 1370289671 We are sending mail with results at report@fotonower.com args[1370289669] : ('0.2713661355744875',) no score found for photo 1370289669 We are sending mail with results at report@fotonower.com args[1370289629] : ('0.2713661355744875',) no score found for photo 1370289629 We are sending mail with results at report@fotonower.com args[1370289622] : ('0.2713661355744875',) no score found for photo 1370289622 We are sending mail with results at report@fotonower.com args[1370289600] : ('0.2713661355744875',) no score found for photo 1370289600 We are sending mail with results at report@fotonower.com args[1370289599] : ('0.2713661355744875',) no score found for photo 1370289599 We are sending mail with results at report@fotonower.com args[1370289593] : ('0.2713661355744875',) no score found for photo 1370289593 We are sending mail with results at report@fotonower.com args[1370289592] : ('0.2713661355744875',) no score found for photo 1370289592 We are sending mail with results at report@fotonower.com args[1370289586] : ('0.2713661355744875',) no score found for photo 1370289586 We are sending mail with results at report@fotonower.com args[1370289580] : ('0.2713661355744875',) no score found for photo 1370289580 We are sending mail with results at report@fotonower.com args[1370289522] : ('0.2713661355744875',) no score found for photo 1370289522 We are sending mail with results at report@fotonower.com args[1370289516] : ('0.2713661355744875',) no score found for photo 1370289516 We are sending mail with results at report@fotonower.com refus_total : 0.2713661355744875 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=24552414 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_P24552414_03-07-2025_05_07_01.pdf results_Auto_P24552414_03-07-2025_05_07_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24552414_03-07-2025_05_07_01.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','24552414','results_Auto_P24552414_03-07-2025_05_07_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24552414_03-07-2025_05_07_01.pdf','pdf','','0.17','0.2713661355744875') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24552414]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516] map_info['map_portfolio_photo'] : {24552414: [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516, 1370289260, 1370289185, 1370289110, 1370289037, 1370288966, 1370288903, 1370288552, 1370288509, 1370288473, 1370288438, 1370288373, 1370288309, 1370288053, 1370287941, 1370287843, 1370287750, 1370287671, 1370287597]} final : False mtd_id 4302 list_pids : [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516] 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, '3232108') ('4302', '24552414', '1370289874', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289811', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289806', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289805', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289803', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289800', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289671', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289669', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289629', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289622', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289600', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289599', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289593', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289592', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289586', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289580', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289522', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289516', None, None, None, None, None, '3232108') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24552414', '1370289874', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289811', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289806', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289805', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289803', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289800', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289671', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289669', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289629', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289622', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289600', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289599', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289593', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289592', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289586', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289580', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289522', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289516', None, None, None, None, None, '3232108')] time used for this insertion : 0.015766143798828125 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.139598369598389 time spend to save output : 0.01598644256591797 total time spend for step 4 : 4.155584812164307 step5:split_time_score Thu Jul 3 05:07:04 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 : ['24552414'] 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 : [('24552414',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24552414) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1370289811: {'path': 'temp/1751512020_2523982_1370289811_16f07f770145ecb00814c639fdfabf15.jpg', 'extension': 'jpg'}, 1370289874: {'path': 'temp/1751512020_2523982_1370289874_911ffc935192aa0ed27f29d79e8791a0.jpg', 'extension': 'jpg'}, 1370289800: {'path': 'temp/1751512020_2523982_1370289800_5ab24db4838d5dfe10fbda326fcaf85f.jpg', 'extension': 'jpg'}, 1370289803: {'path': 'temp/1751512020_2523982_1370289803_6496219af9a6ff50bd0ca8215e06c2e6.jpg', 'extension': 'jpg'}, 1370289805: {'path': 'temp/1751512020_2523982_1370289805_dac4f0274dbaf08ba846a927ef69193c.jpg', 'extension': 'jpg'}, 1370289806: {'path': 'temp/1751512020_2523982_1370289806_b01379e3ddd8ca161a48905e1cb34c3c.jpg', 'extension': 'jpg'}, 1370289622: {'path': 'temp/1751512020_2523982_1370289622_1cd7aaf1df2aaf398e18e6eddfed5fdd.jpg', 'extension': 'jpg'}, 1370289629: {'path': 'temp/1751512020_2523982_1370289629_e796cff210daeb47ebb8a5ed1f0b94b7.jpg', 'extension': 'jpg'}, 1370289669: {'path': 'temp/1751512020_2523982_1370289669_041ff7f3b14306066f62082953b9e148.jpg', 'extension': 'jpg'}, 1370289671: {'path': 'temp/1751512020_2523982_1370289671_f11406df93a75ce5e0b8969d087e75e2.jpg', 'extension': 'jpg'}, 1370289516: {'path': 'temp/1751512020_2523982_1370289516_217771c7b09ee38d30cb23b00ae9aae6.jpg', 'extension': 'jpg'}, 1370289522: {'path': 'temp/1751512020_2523982_1370289522_6b20eadf4650addb65c986551ea4a863.jpg', 'extension': 'jpg'}, 1370289580: {'path': 'temp/1751512020_2523982_1370289580_0e8045c459fb83ef30be1645e86b744b.jpg', 'extension': 'jpg'}, 1370289586: {'path': 'temp/1751512020_2523982_1370289586_eb383580182f2d7db654731a31a24493.jpg', 'extension': 'jpg'}, 1370289592: {'path': 'temp/1751512020_2523982_1370289592_a61c69e6f642c4eed95dd101de9ddb17.jpg', 'extension': 'jpg'}, 1370289593: {'path': 'temp/1751512020_2523982_1370289593_cb356b883985843214c9afd7b537fe87.jpg', 'extension': 'jpg'}, 1370289599: {'path': 'temp/1751512020_2523982_1370289599_eb4563b72e71ae0c01181cdafebef315.jpg', 'extension': 'jpg'}, 1370289600: {'path': 'temp/1751512020_2523982_1370289600_3db3a1c89d9456e4d06b8a1cc8c4a85e.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 = 24552414; (('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 = 24552414 group by h (('05', 36),) 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=24552414 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 (24552414) 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 (24552414) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03072025 24552414 Nombre de photos uploadées : 36 / 23040 (0%) 03072025 24552414 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 03072025 24552414 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1370288053, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/5d1a6b700e78d6bf58caab8515d9d04d.jpg', 'username': None, 'uploaded_at': 1751511687, 'text': 'image_03072025_05_00_04_10136.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370287941, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/f6a3d33e431718e345eebe329faf1099.jpg', 'username': None, 'uploaded_at': 1751511687, 'text': 'image_03072025_05_00_14_10133.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370287843, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/b4ba4671e9644258868f454a7dc65ce7.jpg', 'username': None, 'uploaded_at': 1751511687, 'text': 'image_03072025_05_00_25_10134.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370287750, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/e6dc6bc7f1146ddc96c800ace2843a44.jpg', 'username': None, 'uploaded_at': 1751511687, 'text': 'image_03072025_05_00_34_9123.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002863645553588867 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24552414, '2025-07-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1948253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028156757354736328 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= 1948253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24536200, 'dashboard_result_id': 12094851, '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_P24536200_03-07-2025_00_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24536995, 'dashboard_result_id': 12094852, '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_P24536995_03-07-2025_00_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537022, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24537684, 'dashboard_result_id': 12094853, '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_P24537684_03-07-2025_00_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537765, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24538618, 'dashboard_result_id': 12094854, '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_P24538618_03-07-2025_01_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24538634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24538635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24538636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24538637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24538638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24538639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24538640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24538641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24538642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24538643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24538644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24538645, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24539400, 'dashboard_result_id': 12094855, '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_P24539400_03-07-2025_01_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24539493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24539494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24539495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24539496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24539497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24539498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24539499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24539500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24539501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24539502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24539503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24539504, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24540440, 'dashboard_result_id': 12094856, '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_P24540440_03-07-2025_01_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24540520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24540521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24540522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24540524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24540525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24540526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24540527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24540529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24540530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24540531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24540532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24540533, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24541210, 'dashboard_result_id': 12094857, '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_P24541210_03-07-2025_01_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24541297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24541298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24541299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24541300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24541301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24541302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24541303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24541304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24541305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24541306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24541307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24541308, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24542140, 'dashboard_result_id': 12094858, '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_P24542140_03-07-2025_02_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24542143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24542144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24542145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24542146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24542147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24542148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24542149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24542150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24542151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24542152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24542153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24542154, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24542941, 'dashboard_result_id': 12094859, '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_P24542941_03-07-2025_02_17_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543019, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24543938, 'dashboard_result_id': 12094860, '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_P24543938_03-07-2025_02_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543981, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24544741, 'dashboard_result_id': 12094861, '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_P24544741_03-07-2025_02_40_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24544791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24544792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24544793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24544794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24544795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24544796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24544797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24544798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24544799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24544800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24544801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24544802, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24550150, 'dashboard_result_id': 12094862, '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_P24550150_03-07-2025_04_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550193, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24550895, 'dashboard_result_id': 12094863, '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_P24550895_03-07-2025_04_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550912, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24551663, 'dashboard_result_id': 12094864, '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_P24551663_03-07-2025_05_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24551726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24551727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24551728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24551729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24551730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24551731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24551732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24551733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24551734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24551735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24551736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24551737, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1956287, 'mtr_portfolio_id': 24552414, 'dashboard_result_id': 12094865, '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_P24552414_03-07-2025_05_04_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24552502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24552503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24552504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24552505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24552506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24552507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24552508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24552509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24552510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24552511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24552512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24552514, '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 = 24536200 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': 3231084, 'mtr_portfolio_id': 24536200, 'created_at': datetime.datetime(2025, 7, 3, 0, 16, 57), 'result': '0.06841203960177072', 'result_long': None, 'result_double': None}] Qualite : 0.06841203960177072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24536200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536200_03-07-2025_00_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24536200 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_P24536200_03-07-2025_00_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, 'pht': 3726}}" where mtr_portfolio_id = 24536200 and dashboard_run_id = 1956287 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`=24536200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094851, 0.06841203960177072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536200_03-07-2025_00_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, '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 = 24536995 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': 3231129, 'mtr_portfolio_id': 24536995, 'created_at': datetime.datetime(2025, 7, 3, 0, 32, 59), 'result': '0.05586406851115436', 'result_long': None, 'result_double': None}] Qualite : 0.05586406851115436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24536995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536995_03-07-2025_00_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24536995 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_P24536995_03-07-2025_00_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537022, 'pht': 3726}}" where mtr_portfolio_id = 24536995 and dashboard_run_id = 1956287 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`=24536995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094852, 0.05586406851115436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536995_03-07-2025_00_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537022, '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 = 24537684 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': 3231169, 'mtr_portfolio_id': 24537684, 'created_at': datetime.datetime(2025, 7, 3, 0, 46, 30), 'result': '0.09176858600063752', 'result_long': None, 'result_double': None}] Qualite : 0.09176858600063752 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24537684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24537684_03-07-2025_00_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24537684 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_P24537684_03-07-2025_00_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537765, 'pht': 3726}}" where mtr_portfolio_id = 24537684 and dashboard_run_id = 1956287 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`=24537684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094853, 0.09176858600063752, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24537684_03-07-2025_00_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537765, '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 = 24538618 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': 3231218, 'mtr_portfolio_id': 24538618, 'created_at': datetime.datetime(2025, 7, 3, 1, 2, 59), 'result': '0.07305641418656655', 'result_long': None, 'result_double': None}] Qualite : 0.07305641418656655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24538618 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24538618_03-07-2025_01_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24538618 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_P24538618_03-07-2025_01_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24538634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24538635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24538636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24538637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24538638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24538639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24538640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24538641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24538642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24538643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24538644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24538645, 'pht': 3726}}" where mtr_portfolio_id = 24538618 and dashboard_run_id = 1956287 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`=24538618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094854, 0.07305641418656655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24538618_03-07-2025_01_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24538634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24538635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24538636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24538637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24538638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24538639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24538640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24538641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24538642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24538643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24538644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24538645, '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 = 24539400 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 = 24539400 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 = 24539400 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24539400 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 = 24539400 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3231271, 'mtr_portfolio_id': 24539400, 'created_at': datetime.datetime(2025, 7, 3, 1, 16, 57), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24539400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24539400_03-07-2025_01_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24539400 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_P24539400_03-07-2025_01_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24539493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24539494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24539495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24539496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24539497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24539498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24539499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24539500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24539501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24539502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24539503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24539504, 'pht': 3726}}" where mtr_portfolio_id = 24539400 and dashboard_run_id = 1956287 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`=24539400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094855, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24539400_03-07-2025_01_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24539493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24539494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24539495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24539496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24539497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24539498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24539499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24539500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24539501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24539502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24539503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24539504, '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 = 24540440 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 = 24540440 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 = 24540440 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24540440 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 = 24540440 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3231355, 'mtr_portfolio_id': 24540440, 'created_at': datetime.datetime(2025, 7, 3, 1, 32, 59), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24540440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24540440_03-07-2025_01_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24540440 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_P24540440_03-07-2025_01_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24540520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24540521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24540522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24540524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24540525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24540526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24540527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24540529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24540530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24540531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24540532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24540533, 'pht': 3726}}" where mtr_portfolio_id = 24540440 and dashboard_run_id = 1956287 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`=24540440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094856, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24540440_03-07-2025_01_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24540520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24540521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24540522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24540524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24540525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24540526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24540527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24540529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24540530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24540531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24540532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24540533, '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 = 24541210 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': 3231392, 'mtr_portfolio_id': 24541210, 'created_at': datetime.datetime(2025, 7, 3, 1, 46, 58), 'result': '0.08091416775506845', 'result_long': None, 'result_double': None}] Qualite : 0.08091416775506845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24541210 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24541210_03-07-2025_01_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24541210 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_P24541210_03-07-2025_01_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24541297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24541298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24541299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24541300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24541301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24541302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24541303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24541304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24541305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24541306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24541307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24541308, 'pht': 3726}}" where mtr_portfolio_id = 24541210 and dashboard_run_id = 1956287 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`=24541210 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094857, 0.08091416775506845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24541210_03-07-2025_01_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24541297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24541298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24541299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24541300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24541301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24541302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24541303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24541304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24541305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24541306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24541307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24541308, '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 = 24542140 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': 3231436, 'mtr_portfolio_id': 24542140, 'created_at': datetime.datetime(2025, 7, 3, 2, 2, 59), 'result': '0.07466849654012321', 'result_long': None, 'result_double': None}] Qualite : 0.07466849654012321 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24542140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542140_03-07-2025_02_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24542140 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_P24542140_03-07-2025_02_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24542143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24542144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24542145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24542146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24542147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24542148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24542149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24542150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24542151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24542152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24542153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24542154, 'pht': 3726}}" where mtr_portfolio_id = 24542140 and dashboard_run_id = 1956287 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`=24542140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094858, 0.07466849654012321, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542140_03-07-2025_02_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24542143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24542144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24542145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24542146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24542147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24542148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24542149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24542150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24542151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24542152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24542153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24542154, '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 = 24542941 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': 3231487, 'mtr_portfolio_id': 24542941, 'created_at': datetime.datetime(2025, 7, 3, 2, 17, 2), 'result': '0.06907460210665119', 'result_long': None, 'result_double': None}] Qualite : 0.06907460210665119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24542941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542941_03-07-2025_02_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24542941 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_P24542941_03-07-2025_02_17_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543019, 'pht': 3726}}" where mtr_portfolio_id = 24542941 and dashboard_run_id = 1956287 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`=24542941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094859, 0.06907460210665119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542941_03-07-2025_02_17_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543019, '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 = 24543938 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': 3231542, 'mtr_portfolio_id': 24543938, 'created_at': datetime.datetime(2025, 7, 3, 2, 32, 59), 'result': '0.05690284967498808', 'result_long': None, 'result_double': None}] Qualite : 0.05690284967498808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24543938 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24543938_03-07-2025_02_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24543938 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_P24543938_03-07-2025_02_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543981, 'pht': 3726}}" where mtr_portfolio_id = 24543938 and dashboard_run_id = 1956287 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`=24543938 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094860, 0.05690284967498808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24543938_03-07-2025_02_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543981, '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 = 24544741 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': 3231584, 'mtr_portfolio_id': 24544741, 'created_at': datetime.datetime(2025, 7, 3, 2, 46, 30), 'result': '0.010711717720567076', 'result_long': None, 'result_double': None}] Qualite : 0.010711717720567076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24544741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24544741_03-07-2025_02_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24544741 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_P24544741_03-07-2025_02_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24544791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24544792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24544793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24544794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24544795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24544796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24544797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24544798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24544799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24544800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24544801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24544802, 'pht': 3726}}" where mtr_portfolio_id = 24544741 and dashboard_run_id = 1956287 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`=24544741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094861, 0.010711717720567076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24544741_03-07-2025_02_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24544791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24544792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24544793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24544794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24544795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24544796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24544797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24544798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24544799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24544800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24544801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24544802, '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 = 24550150 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': 3231959, 'mtr_portfolio_id': 24550150, 'created_at': datetime.datetime(2025, 7, 3, 4, 32, 59), 'result': '0.2654869334366404', 'result_long': None, 'result_double': None}] Qualite : 0.2654869334366404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24550150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24550150_03-07-2025_04_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24550150 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_P24550150_03-07-2025_04_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550193, 'pht': 3726}}" where mtr_portfolio_id = 24550150 and dashboard_run_id = 1956289 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`=24550150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094862, 0.2654869334366404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24550150_03-07-2025_04_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550193, '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 = 24550895 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': 3231998, 'mtr_portfolio_id': 24550895, 'created_at': datetime.datetime(2025, 7, 3, 4, 48, 59), 'result': '0.3017238902078139', 'result_long': None, 'result_double': None}] Qualite : 0.3017238902078139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24550895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24550895_03-07-2025_04_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24550895 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_P24550895_03-07-2025_04_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550912, 'pht': 3726}}" where mtr_portfolio_id = 24550895 and dashboard_run_id = 1956289 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`=24550895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094863, 0.3017238902078139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24550895_03-07-2025_04_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550912, '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 = 24551663 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': 3232049, 'mtr_portfolio_id': 24551663, 'created_at': datetime.datetime(2025, 7, 3, 5, 3), 'result': '0.24451164933901565', 'result_long': None, 'result_double': None}] Qualite : 0.24451164933901565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24551663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24551663_03-07-2025_05_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24551663 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_P24551663_03-07-2025_05_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24551726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24551727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24551728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24551729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24551730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24551731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24551732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24551733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24551734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24551735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24551736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24551737, 'pht': 3726}}" where mtr_portfolio_id = 24551663 and dashboard_run_id = 1956289 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`=24551663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094864, 0.24451164933901565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24551663_03-07-2025_05_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24551726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24551727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24551728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24551729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24551730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24551731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24551732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24551733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24551734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24551735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24551736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24551737, '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 = 24552414 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': 3232108, 'mtr_portfolio_id': 24552414, 'created_at': datetime.datetime(2025, 7, 3, 5, 7), 'result': '0.2713661355744875', 'result_long': None, 'result_double': None}] Qualite : 0.2713661355744875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24552414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24552414_03-07-2025_05_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24552414 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_P24552414_03-07-2025_05_07_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24552502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24552503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24552504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24552505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24552506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24552507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24552508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24552509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24552510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24552511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24552512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24552514, 'pht': 3726}}" where mtr_portfolio_id = 24552414 and dashboard_run_id = 1956289 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`=24552414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12094865, 0.2713661355744875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24552414_03-07-2025_05_07_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24552502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24552503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24552504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24552505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24552506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24552507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24552508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24552509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24552510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24552511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24552512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24552514, '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 (24536200,24536995,24537684,24538618,24539400,24540440,24541210,24542140,24542941,24543938,24544741,24550150,24550895,24551663,24552414) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,), (1370178993,), (1370178995,), (1370179000,), (1370179003,), (1370179004,), (1370179006,), (1370179011,), (1370179034,), (1370179065,), (1370179097,), (1370179161,), (1370179215,), (1370179997,), (1370180030,), (1370180063,), (1370180096,), (1370180104,), (1370180111,), (1370180188,), (1370180192,), (1370180194,), (1370180235,), (1370180267,), (1370180331,), (1370180476,), (1370180531,), (1370180582,), (1370180624,), (1370180649,), (1370180672,), (1370180801,), (1370180806,), (1370180834,), (1370180866,), (1370180880,), (1370180915,), (1370181017,), (1370181029,), (1370181038,), (1370181059,), (1370181073,), (1370181081,), (1370181095,), (1370181096,), (1370181098,), (1370181117,), (1370181160,), (1370181213,), (1370181257,), (1370181298,), (1370181306,), (1370181308,), (1370181311,), (1370181345,), (1370181570,), (1370181576,), (1370181588,), (1370181591,), (1370181600,), (1370181604,), (1370181628,), (1370181629,), (1370181631,), (1370181633,), (1370181636,), (1370181659,), (1370181848,), (1370181890,), (1370181946,), (1370181976,), (1370181982,), (1370181984,), (1370182706,), (1370182782,), (1370182866,), (1370182950,), (1370183032,), (1370183120,), (1370183360,), (1370183369,), (1370183371,), (1370183373,), (1370183376,), (1370183378,), (1370183391,), (1370183396,), (1370183397,), (1370183398,), (1370183399,), (1370183401,), (1370183514,), (1370183516,), (1370183526,), (1370183529,), (1370183532,), (1370183536,), (1370183629,), (1370183654,), (1370183655,), (1370183684,), (1370183702,), (1370183738,), (1370183794,), (1370183795,), (1370183828,), (1370183864,), (1370183899,), (1370183930,), (1370184169,), (1370184185,), (1370184211,), (1370184237,), (1370184266,), (1370184284,), (1370184372,), (1370184373,), (1370184385,), (1370184386,), (1370184392,), (1370184398,), (1370184433,), (1370184438,), (1370184479,), (1370184482,), (1370184483,), (1370184485,), (1370184507,), (1370184545,), (1370184557,), (1370184568,), (1370184571,), (1370184601,), (1370184671,), (1370184688,), (1370184698,), (1370184701,), (1370184717,), (1370184718,), (1370184964,), (1370184966,), (1370184996,), (1370184999,), (1370185038,), (1370185042,), (1370185078,), (1370185084,), (1370185135,), (1370185146,), (1370185201,), (1370185213,), (1370185353,), (1370185410,), (1370185474,), (1370185544,), (1370185597,), (1370185633,), (1370185667,), (1370185669,), (1370185698,), (1370185745,), (1370185785,), (1370185815,), (1370186321,), (1370186353,), (1370186389,), (1370186421,), (1370186488,), (1370186551,), (1370186758,), (1370186803,), (1370186834,), (1370186859,), (1370186884,), (1370186929,), (1370187259,), (1370187322,), (1370187384,), (1370187419,), (1370187465,), (1370187519,), (1370187721,), (1370187761,), (1370187797,), (1370187860,), (1370187955,), (1370187996,), (1370188087,), (1370188125,), (1370188148,), (1370188179,), (1370188210,), (1370188245,), (1370188440,), (1370188464,), (1370188466,), (1370188473,), (1370188522,), (1370188577,), (1370189007,), (1370189072,), (1370189141,), (1370189208,), (1370189309,), (1370189407,), (1370189567,), (1370189609,), (1370189626,), (1370189680,), (1370189712,), (1370189725,), (1370190468,), (1370190560,), (1370190618,), (1370190649,), (1370190685,), (1370190734,), (1370190866,), (1370190894,), (1370190895,), (1370190896,), (1370190902,), (1370190913,), (1370190964,), (1370190974,), (1370191014,), (1370191045,), (1370191093,), (1370191129,), (1370191337,), (1370191354,), (1370191399,), (1370191464,), (1370191530,), (1370191564,), (1370191656,), (1370191695,), (1370191765,), (1370191829,), (1370191924,), (1370192022,), (1370192339,), (1370192416,), (1370192486,), (1370192549,), (1370192586,), (1370192618,), (1370192868,), (1370192873,), (1370192885,), (1370192892,), (1370192912,), (1370192922,), (1370192961,), (1370192975,), (1370192986,), (1370192988,), (1370192989,), (1370192990,), (1370193002,), (1370193017,), (1370193018,), (1370193019,), (1370193020,), (1370193021,), (1370193119,), (1370193120,), (1370193132,), (1370193133,), (1370193152,), (1370193153,), (1370193155,), (1370193156,), (1370193179,), (1370193182,), (1370193196,), (1370193197,), (1370193224,), (1370193230,), (1370193237,), (1370193239,), (1370193241,), (1370193243,), (1370193256,), (1370193267,), (1370193297,), (1370193338,), (1370193375,), (1370193426,), (1370194061,), (1370194107,), (1370194135,), (1370194145,), (1370194152,), (1370194155,), (1370194230,), (1370194278,), (1370194342,), (1370194415,), (1370194504,), (1370194616,), (1370195882,), (1370195912,), (1370195987,), (1370196062,), (1370196125,), (1370196173,), (1370196535,), (1370196537,), (1370196560,), (1370196561,), (1370196573,), (1370196574,), (1370196593,), (1370196595,), (1370196612,), (1370196617,), (1370196674,), (1370196723,), (1370196775,), (1370196828,), (1370196859,), (1370196871,), (1370197028,), (1370197080,), (1370197112,), (1370197157,), (1370197203,), (1370197240,), (1370198193,), (1370198281,), (1370198352,), (1370198458,), (1370198574,), (1370198666,), (1370198942,), (1370198976,), (1370199010,), (1370199057,), (1370199093,), (1370199154,), (1370199232,), (1370199253,), (1370199262,), (1370199287,), (1370199316,), (1370199321,), (1370200070,), (1370200128,), (1370200137,), (1370200140,), (1370200170,), (1370200200,), (1370200219,), (1370200245,), (1370200283,), (1370200341,), (1370200385,), (1370200421,), (1370200568,), (1370200604,), (1370200667,), (1370200738,), (1370200808,), (1370200842,), (1370200860,), (1370200894,), (1370200901,), (1370200918,), (1370200931,), (1370200945,), (1370201332,), (1370201344,), (1370201351,), (1370201352,), (1370201361,), (1370201372,), (1370201419,), (1370201456,), (1370201500,), (1370201533,), (1370201556,), (1370201591,), (1370201684,), (1370201718,), (1370201755,), (1370201788,), (1370201835,), (1370201906,), (1370202482,), (1370202513,), (1370202546,), (1370202553,), (1370202555,), (1370202558,), (1370202673,), (1370202676,), (1370202681,), (1370202700,), (1370202746,), (1370202799,), (1370202848,), (1370202856,), (1370202880,), (1370202943,), (1370203006,), (1370203066,), (1370204012,), (1370204093,), (1370204164,), (1370204248,), (1370204274,), (1370204303,), (1370204424,), (1370204440,), (1370204459,), (1370204480,), (1370204518,), (1370204568,), (1370204629,), (1370204650,), (1370204653,), (1370204655,), (1370204668,), (1370204698,), (1370204958,), (1370205028,), (1370205056,), (1370205089,), (1370205111,), (1370205125,), (1370205197,), (1370205229,), (1370205237,), (1370205243,), (1370205258,), (1370205267,), (1370205351,), (1370205398,), (1370205436,), (1370205462,), (1370205479,), (1370205480,), (1370205608,), (1370205654,), (1370205707,), (1370205789,), (1370205839,), (1370205878,), (1370206131,), (1370206174,), (1370206177,), (1370206179,), (1370206190,), (1370206208,), (1370206310,), (1370206362,), (1370206395,), (1370206429,), (1370206468,), (1370206539,), (1370206618,), (1370206620,), (1370206633,), (1370206636,), (1370206638,), (1370206653,), (1370206957,), (1370206972,), (1370206982,), (1370207017,), (1370207032,), (1370207050,), (1370207265,), (1370207319,), (1370207387,), (1370207450,), (1370207517,), (1370207566,), (1370207691,), (1370207693,), (1370207695,), (1370207697,), (1370207724,), (1370207756,), (1370208212,), (1370208245,), (1370208275,), (1370208285,), (1370208291,), (1370208312,), (1370208359,), (1370208387,), (1370208396,), (1370208402,), (1370208409,), (1370208411,), (1370208413,), (1370208414,), (1370208457,), (1370208492,), (1370208523,), (1370208532,), (1370209619,), (1370209717,), (1370209835,), (1370209899,), (1370209967,), (1370210009,), (1370210119,), (1370210121,), (1370210124,), (1370210125,), (1370210152,), (1370210153,), (1370210168,), (1370210170,), (1370210185,), (1370210191,), (1370210205,), (1370210206,), (1370210274,), (1370210275,), (1370210283,), (1370210300,), (1370210302,), (1370210311,), (1370210513,), (1370210655,), (1370210761,), (1370210857,), (1370210954,), (1370211070,), (1370211940,), (1370211955,), (1370212025,), (1370212039,), (1370212095,), (1370212120,), (1370212198,), (1370212223,), (1370212282,), (1370212299,), (1370212324,), (1370212395,), (1370212585,), (1370212601,), (1370212606,), (1370212608,), (1370212622,), (1370212633,), (1370212677,), (1370212681,), (1370212726,), (1370212731,), (1370212742,), (1370212751,), (1370213023,), (1370213075,), (1370213121,), (1370213183,), (1370213227,), (1370213289,), (1370213554,), (1370213618,), (1370213655,), (1370213713,), (1370213751,), (1370213785,), (1370213861,), (1370213896,), (1370213933,), (1370213964,), (1370213967,), (1370213969,), (1370214040,), (1370214052,), (1370214056,), (1370214061,), (1370214064,), (1370214080,), (1370214105,), (1370214125,), (1370214126,), (1370214155,), (1370214198,), (1370214285,), (1370214590,), (1370214630,), (1370214649,), (1370214652,), (1370214661,), (1370214694,), (1370214856,), (1370214955,), (1370215056,), (1370215102,), (1370215144,), (1370215183,), (1370215662,), (1370215664,), (1370215688,), (1370215689,), (1370215692,), (1370215693,), (1370215694,), (1370215695,), (1370215696,), (1370215697,), (1370215707,), (1370215710,), (1370215864,), (1370215866,), (1370215869,), (1370215870,), (1370215891,), (1370215892,), (1370215934,), (1370215965,), (1370215996,), (1370216046,), (1370216085,), (1370216126,), (1370216571,), (1370216576,), (1370216609,), (1370216616,), (1370216643,), (1370216652,), (1370216671,), (1370216678,), (1370216680,), (1370216682,), (1370216686,), (1370216705,), (1370216832,), (1370216865,), (1370216895,), (1370216904,), (1370216938,), (1370216971,), (1370217004,), (1370217080,), (1370217128,), (1370217177,), (1370217217,), (1370217236,), (1370217836,), (1370217878,), (1370217912,), (1370217945,), (1370217972,), (1370218007,), (1370218023,), (1370218042,), (1370218045,), (1370218047,), (1370218050,), (1370218051,), (1370218200,), (1370218262,), (1370218339,), (1370218394,), (1370218431,), (1370218500,), (1370218884,), (1370218923,), (1370218947,), (1370218969,), (1370218986,), (1370219028,), (1370219143,), (1370219208,), (1370219262,), (1370219291,), (1370219336,), (1370219364,), (1370219386,), (1370219388,), (1370219393,), (1370219395,), (1370219406,), (1370219416,), (1370220272,), (1370220376,), (1370220417,), (1370220451,), (1370220485,), (1370220538,), (1370221096,), (1370221153,), (1370221225,), (1370221290,), (1370221399,), (1370221933,), (1370222027,), (1370222098,), (1370222197,), (1370222325,), (1370222415,), (1370222709,), (1370222787,), (1370222851,), (1370222912,), (1370223005,), (1370223128,), (1370223538,), (1370223542,), (1370223572,), (1370223584,), (1370223607,), (1370223619,), (1370223641,), (1370223654,), (1370223675,), (1370223684,), (1370223686,), (1370223687,), (1370223691,), (1370223693,), (1370223725,), (1370223766,), (1370223834,), (1370223899,), (1370224119,), (1370224211,), (1370224310,), (1370224478,), (1370224535,), (1370224573,), (1370225073,), (1370225111,), (1370225151,), (1370225185,), (1370225217,), (1370225252,), (1370225360,), (1370225392,), (1370225422,), (1370225455,), (1370225487,), (1370225520,), (1370225670,), (1370225673,), (1370225676,), (1370225679,), (1370225702,), (1370225704,), (1370225720,), (1370225745,), (1370225756,), (1370225766,), (1370225768,), (1370225770,), (1370226411,), (1370226421,), (1370226423,), (1370226439,), (1370226473,), (1370226480,), (1370226519,), (1370226550,), (1370226569,), (1370226583,), (1370226584,), (1370226585,), (1370226615,), (1370226628,), (1370226640,), (1370226645,), (1370226647,), (1370226648,), (1370226729,), (1370226740,), (1370226747,), (1370226756,), (1370226759,), (1370226770,), (1370226935,), (1370227035,), (1370227111,), (1370227162,), (1370227165,), (1370227168,), (1370227700,), (1370227719,), (1370227745,), (1370227768,), (1370227810,), (1370227899,), (1370228022,), (1370228024,), (1370228043,), (1370228105,), (1370228159,), (1370228198,), (1370228397,), (1370228457,), (1370228504,), (1370228547,), (1370228601,), (1370228602,), (1370229099,), (1370229195,), (1370229309,), (1370229409,), (1370229502,), (1370229644,), (1370229936,), (1370230047,), (1370230125,), (1370230169,), (1370230189,), (1370230191,), (1370230317,), (1370230345,), (1370230347,), (1370230349,), (1370230372,), (1370230395,), (1370230433,), (1370230475,), (1370230484,), (1370230510,), (1370230521,), (1370230527,), (1370231090,), (1370231140,), (1370231178,), (1370231205,), (1370231236,), (1370231275,), (1370231302,), (1370231349,), (1370231420,), (1370231479,), (1370231530,), (1370231554,), (1370231719,), (1370231796,), (1370231855,), (1370231916,), (1370231948,), (1370231982,), (1370232450,), (1370232525,), (1370232594,), (1370232634,), (1370232668,), (1370232720,), (1370232895,), (1370232959,), (1370233029,), (1370233070,), (1370233103,), (1370233141,), (1370233243,), (1370233278,), (1370233304,), (1370233328,), (1370233367,), (1370233410,), (1370233732,), (1370233750,), (1370233781,), (1370233804,), (1370233807,), (1370233824,), (1370233889,), (1370233891,), (1370233903,), (1370233909,), (1370233912,), (1370233915,), (1370233926,), (1370233984,), (1370234018,), (1370234048,), (1370234103,), (1370234139,), (1370234206,), (1370234251,), (1370234255,), (1370234261,), (1370234294,), (1370234331,), (1370235287,), (1370235321,), (1370235357,), (1370235373,), (1370235406,), (1370235446,), (1370235629,), (1370235697,), (1370235789,), (1370235852,), (1370235913,), (1370235937,), (1370235997,), (1370236046,), (1370236057,), (1370236064,), (1370236066,), (1370236068,), (1370236074,), (1370236082,), (1370236104,), (1370236112,), (1370236114,), (1370236122,), (1370236592,), (1370236627,), (1370236768,), (1370236922,), (1370236987,), (1370237049,), (1370237293,), (1370237363,), (1370237432,), (1370237478,), (1370237532,), (1370237609,), (1370237700,), (1370237730,), (1370237758,), (1370237771,), (1370237799,), (1370237866,), (1370237931,), (1370237975,), (1370238010,), (1370238050,), (1370238073,), (1370238078,), (1370238337,), (1370238339,), (1370238359,), (1370238391,), (1370238424,), (1370238450,), (1370238473,), (1370238510,), (1370238569,), (1370238599,), (1370238636,), (1370238676,), (1370238827,), (1370238889,), (1370238932,), (1370238965,), (1370238999,), (1370239031,), (1370239256,), (1370239281,), (1370239297,), (1370239306,), (1370239311,), (1370239332,), (1370239351,), (1370239368,), (1370239414,), (1370239468,), (1370239507,), (1370239549,), (1370271510,), (1370271544,), (1370271577,), (1370271610,), (1370271639,), (1370271656,), (1370271662,), (1370271667,), (1370271669,), (1370271671,), (1370271677,), (1370271691,), (1370271887,), (1370271892,), (1370271902,), (1370271934,), (1370271955,), (1370271982,), (1370272020,), (1370272058,), (1370272092,), (1370272150,), (1370272168,), (1370272172,), (1370272262,), (1370272323,), (1370272365,), (1370272372,), (1370272394,), (1370272441,), (1370272594,), (1370272636,), (1370272658,), (1370272675,), (1370272702,), (1370272710,), (1370273401,), (1370273417,), (1370273448,), (1370273480,), (1370273484,), (1370273493,), (1370273531,), (1370273581,), (1370273643,), (1370273695,), (1370273724,), (1370273739,), (1370273914,), (1370273998,), (1370274064,), (1370274103,), (1370274140,), (1370274182,), (1370274696,), (1370274699,), (1370274727,), (1370274731,), (1370274761,), (1370274764,), (1370274767,), (1370274768,), (1370274770,), (1370274771,), (1370274773,), (1370274774,), (1370274850,), (1370274915,), (1370274977,), (1370275047,), (1370275111,), (1370275178,), (1370275303,), (1370275337,), (1370275379,), (1370275435,), (1370275487,), (1370275519,), (1370276097,), (1370276099,), (1370276153,), (1370276154,), (1370276185,), (1370276186,), (1370276217,), (1370276220,), (1370276252,), (1370276253,), (1370276285,), (1370276287,), (1370276341,), (1370276344,), (1370276349,), (1370276360,), (1370276378,), (1370276379,), (1370276380,), (1370276387,), (1370276405,), (1370276416,), (1370276419,), (1370276422,), (1370276505,), (1370276508,), (1370276521,), (1370276525,), (1370276537,), (1370276543,), (1370276604,), (1370276626,), (1370276628,), (1370276631,), (1370276633,), (1370276635,), (1370276755,), (1370276790,), (1370276823,), (1370276858,), (1370276873,), (1370276876,), (1370277125,), (1370277156,), (1370277190,), (1370277222,), (1370277283,), (1370277335,), (1370277555,), (1370277587,), (1370277607,), (1370277609,), (1370277610,), (1370277611,), (1370277616,), (1370277619,), (1370277625,), (1370277642,), (1370277645,), (1370277672,), (1370278020,), (1370278073,), (1370278092,), (1370278108,), (1370278125,), (1370278168,), (1370278340,), (1370278345,), (1370278354,), (1370278373,), (1370278448,), (1370278454,), (1370278511,), (1370278578,), (1370278592,), (1370278594,), (1370278596,), (1370278606,), (1370278839,), (1370278843,), (1370278880,), (1370278884,), (1370278927,), (1370278933,), (1370278946,), (1370278950,), (1370278964,), (1370278965,), (1370278968,), (1370278969,), (1370278997,), (1370279030,), (1370279065,), (1370279094,), (1370279101,), (1370279109,), (1370279118,), (1370279120,), (1370279122,), (1370279124,), (1370279127,), (1370279130,), (1370279520,), (1370279570,), (1370279630,), (1370279684,), (1370279693,), (1370279778,), (1370279881,), (1370279919,), (1370279978,), (1370280003,), (1370280009,), (1370280014,), (1370280115,), (1370280148,), (1370280191,), (1370280242,), (1370280253,), (1370280255,), (1370280794,), (1370280799,), (1370280830,), (1370280893,), (1370280955,), (1370281017,), (1370280308,), (1370280311,), (1370280342,), (1370280382,), (1370280434,), (1370280457,), (1370280485,), (1370280516,), (1370280593,), (1370280645,), (1370280695,), (1370280722,), (1370281357,), (1370281412,), (1370281479,), (1370281515,), (1370281569,), (1370281618,), (1370281835,), (1370281894,), (1370281953,), (1370281987,), (1370282019,), (1370282059,), (1370282174,), (1370282181,), (1370282188,), (1370282190,), (1370282192,), (1370282193,), (1370282686,), (1370282739,), (1370282763,), (1370282769,), (1370282774,), (1370282779,), (1370282848,), (1370282862,), (1370282866,), (1370282869,), (1370282878,), (1370282880,), (1370282962,), (1370282965,), (1370282968,), (1370282971,), (1370282987,), (1370283027,), (1370283485,), (1370283527,), (1370283561,), (1370283596,), (1370283634,), (1370283664,), (1370283755,), (1370283785,), (1370283818,), (1370283848,), (1370283878,), (1370283903,), (1370283938,), (1370283954,), (1370283956,), (1370283963,), (1370284006,), (1370284024,), (1370284605,), (1370284650,), (1370284684,), (1370284729,), (1370284827,), (1370284895,), (1370285050,), (1370285128,), (1370285233,), (1370285330,), (1370285376,), (1370285415,), (1370286086,), (1370286119,), (1370286178,), (1370286268,), (1370286339,), (1370286381,), (1370286768,), (1370286867,), (1370286969,), (1370287097,), (1370287171,), (1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03072025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24552414]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516] map_info['map_portfolio_photo'] : {24552414: [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516, 1370289260, 1370289185, 1370289110, 1370289037, 1370288966, 1370288903, 1370288552, 1370288509, 1370288473, 1370288438, 1370288373, 1370288309, 1370288053, 1370287941, 1370287843, 1370287750, 1370287671, 1370287597]} final : True mtd_id 4302 list_pids : [1370289874, 1370289811, 1370289806, 1370289805, 1370289803, 1370289800, 1370289671, 1370289669, 1370289629, 1370289622, 1370289600, 1370289599, 1370289593, 1370289592, 1370289586, 1370289580, 1370289522, 1370289516] Looping around the photos to save general results len do output : 1 /24552414Didn'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, '3232108') ('4302', '24552414', '1370289874', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289811', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289806', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289805', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289803', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289800', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289671', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289669', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289629', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289622', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289600', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289599', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289593', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289592', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289586', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289580', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289522', None, None, None, None, None, '3232108') ('4302', None, None, None, None, None, None, None, '3232108') ('4302', '24552414', '1370289516', None, None, None, None, None, '3232108') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24552414', 'None', None, None, None, None, '3232108'), ('4302', '24552414', '1370289874', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289811', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289806', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289805', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289803', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289800', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289671', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289669', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289629', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289622', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289600', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289599', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289593', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289592', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289586', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289580', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289522', None, None, None, None, None, '3232108'), ('4302', '24552414', '1370289516', None, None, None, None, None, '3232108')] time used for this insertion : 0.019378185272216797 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1353671550750732 time spend to save output : 0.019653797149658203 total time spend for step 5 : 1.1550209522247314 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 (3232108) 2.27user 2.39system 0:10.26elapsed 45%CPU (0avgtext+0avgdata 160208maxresident)k 53784inputs+9344outputs (246major+74990minor)pagefaults 0swaps