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 : 1722434 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 (2773365) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2773365) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538229 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2773365'] with mtr_portfolio_ids : ['22538229'] and first list_photo_ids : [] new path : /proc/1722434/ Name: python3 Umask: 0002 State: R (running) Tgid: 1722434 Ngid: 0 Pid: 1722434 PPid: 1722433 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1722434 NSpid: 1722434 NSpgid: 1720207 NSsid: 1720207 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99312 kB VmRSS: 99312 kB RssAnon: 60196 kB RssFile: 39116 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 104 nonvoluntary_ctxt_switches: 128 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1722434', 'Ngid': '0', 'Pid': '1722434', 'PPid': '1722433', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1722434', 'NSpid': '1722434', 'NSpgid': '1720207', 'NSsid': '1720207', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99312 kB', 'VmRSS': '99312 kB', 'RssAnon': '60196 kB', 'RssFile': '39116 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '104', 'nonvoluntary_ctxt_switches': '128'} ('datou_batch_current', '1722434', '1107228', '0', '1107228', '865976', '99312', b'', 'marlene', '2773365') 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 (22538229) 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 (2773365 ) ) 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 (22538229) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1354619080, 'portfolio_id': 22538229}, {'photo_id': 1354619076, 'portfolio_id': 22538229}, {'photo_id': 1354619072, 'portfolio_id': 22538229}, {'photo_id': 1354619067, 'portfolio_id': 22538229}, {'photo_id': 1354619043, 'portfolio_id': 22538229}, {'photo_id': 1354619040, 'portfolio_id': 22538229}, {'photo_id': 1354619035, 'portfolio_id': 22538229}, {'photo_id': 1354619031, 'portfolio_id': 22538229}, {'photo_id': 1354619027, 'portfolio_id': 22538229}, {'photo_id': 1354618985, 'portfolio_id': 22538229}, {'photo_id': 1354618927, 'portfolio_id': 22538229}, {'photo_id': 1354618924, 'portfolio_id': 22538229}, {'photo_id': 1354618919, 'portfolio_id': 22538229}, {'photo_id': 1354618868, 'portfolio_id': 22538229}, {'photo_id': 1354618866, 'portfolio_id': 22538229}, {'photo_id': 1354618862, 'portfolio_id': 22538229}, {'photo_id': 1354618858, 'portfolio_id': 22538229}, {'photo_id': 1354618856, 'portfolio_id': 22538229}, {'photo_id': 1354618798, 'portfolio_id': 22538229}, {'photo_id': 1354618793, 'portfolio_id': 22538229}, {'photo_id': 1354618789, 'portfolio_id': 22538229}, {'photo_id': 1354618784, 'portfolio_id': 22538229}, {'photo_id': 1354618709, 'portfolio_id': 22538229}, {'photo_id': 1354618704, 'portfolio_id': 22538229}, {'photo_id': 1354618698, 'portfolio_id': 22538229}, {'photo_id': 1354618694, 'portfolio_id': 22538229}, {'photo_id': 1354618689, 'portfolio_id': 22538229}, {'photo_id': 1354618682, 'portfolio_id': 22538229}, {'photo_id': 1354618652, 'portfolio_id': 22538229}, {'photo_id': 1354618649, 'portfolio_id': 22538229}, {'photo_id': 1354618644, 'portfolio_id': 22538229}, {'photo_id': 1354618636, 'portfolio_id': 22538229}, {'photo_id': 1354618628, 'portfolio_id': 22538229}, {'photo_id': 1354618579, 'portfolio_id': 22538229}, {'photo_id': 1354618573, 'portfolio_id': 22538229}, {'photo_id': 1354618570, 'portfolio_id': 22538229}, {'photo_id': 1354618567, 'portfolio_id': 22538229}, {'photo_id': 1354618562, 'portfolio_id': 22538229}, {'photo_id': 1354618475, 'portfolio_id': 22538229}, {'photo_id': 1354618471, 'portfolio_id': 22538229}, {'photo_id': 1354618466, 'portfolio_id': 22538229}] map_portfolio_id_photo_id: {22538229: [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856, 1354618798, 1354618793, 1354618789, 1354618784, 1354618709, 1354618704, 1354618698, 1354618694, 1354618689, 1354618682, 1354618652, 1354618649, 1354618644, 1354618636, 1354618628, 1354618579, 1354618573, 1354618570, 1354618567, 1354618562, 1354618475, 1354618471, 1354618466]} ##### 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.016345977783203125 #### 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 Wed Apr 30 10:24:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22538229) 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 : 22538229 get user id for portfolio 22538229 get sub ptf for main ptf 22538229, type 3726 and hashtags ['plastique', 'Carton_gris', 'kraft', 'cartonnette', 'papier', 'Carton_brun', 'Teint_Dans_La_Masse', 'environnement', 'flou', 'metal', 'autre_refus', 'mal_croppe'] 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`=22538229 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','kraft','cartonnette','papier','Carton_brun','Teint_Dans_La_Masse','environnement','flou','metal','autre_refus','mal_croppe')) 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`=22538229 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','kraft','cartonnette','papier','Carton_brun','Teint_Dans_La_Masse','environnement','flou','metal','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22538229, 'sub_port_id': 22538253, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973475, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'environnement': {'main_port_id': 22538229, 'sub_port_id': 22538254, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973476, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22538229, 'sub_port_id': 22538255, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973477, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'autre_refus': {'main_port_id': 22538229, 'sub_port_id': 22538256, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973478, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'papier': {'main_port_id': 22538229, 'sub_port_id': 22538257, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973479, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'mal_croppe': {'main_port_id': 22538229, 'sub_port_id': 22538258, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973480, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'cartonnette': {'main_port_id': 22538229, 'sub_port_id': 22538259, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973481, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'Carton_gris': {'main_port_id': 22538229, 'sub_port_id': 22538260, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973482, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'metal': {'main_port_id': 22538229, 'sub_port_id': 22538261, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973483, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'kraft': {'main_port_id': 22538229, 'sub_port_id': 22538262, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973484, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'plastique': {'main_port_id': 22538229, 'sub_port_id': 22538263, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973485, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}, 'flou': {'main_port_id': 22538229, 'sub_port_id': 22538264, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973486, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 16, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538253 , 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=22538229 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 (22538253) result : ((1354618913,), (1354618914,), (1354619099,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538254 , 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=22538229 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 (22538254) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538255 , 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=22538229 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 (22538255) result : ((1354618770,), (1354618771,), (1354618895,), (1354618896,), (1354618897,), (1354618898,), (1354618899,), (1354618900,), (1354618901,), (1354618902,), (1354618903,), (1354618904,), (1354618905,), (1354618906,), (1354618907,), (1354619017,), (1354619018,), (1354619054,), (1354619098,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538256 , 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=22538229 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 (22538256) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538257 , 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=22538229 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 (22538257) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538258 , 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=22538229 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 (22538258) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538259 , 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=22538229 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 (22538259) result : ((1354618772,), (1354618910,), (1354618911,), (1354618912,), (1354619055,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538260 , 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=22538229 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 (22538260) result : ((1354618908,), (1354619020,), (1354619021,), (1354619022,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538261 , 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=22538229 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 (22538261) result : ((1354618918,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538262 , 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=22538229 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 (22538262) result : ((1354618915,), (1354618916,), (1354618917,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538263 , 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=22538229 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 (22538263) result : ((1354619023,), (1354619056,), (1354619057,), (1354619058,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22538264 , 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=22538229 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 (22538264) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22538229) result : ((1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22538229 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','kraft','cartonnette','papier','Carton_brun','Teint_Dans_La_Masse','environnement','flou','metal','autre_refus','mal_croppe')) 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`=22538229 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','kraft','cartonnette','papier','Carton_brun','Teint_Dans_La_Masse','environnement','flou','metal','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22538229, 'sub_port_id': 22538265, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973487, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'environnement': {'main_port_id': 22538229, 'sub_port_id': 22538266, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973488, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'Teint_Dans_La_Masse': {'main_port_id': 22538229, 'sub_port_id': 22538267, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973489, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'autre_refus': {'main_port_id': 22538229, 'sub_port_id': 22538268, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973490, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'papier': {'main_port_id': 22538229, 'sub_port_id': 22538269, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973491, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'mal_croppe': {'main_port_id': 22538229, 'sub_port_id': 22538270, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973492, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'cartonnette': {'main_port_id': 22538229, 'sub_port_id': 22538271, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973493, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'Carton_gris': {'main_port_id': 22538229, 'sub_port_id': 22538272, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973494, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'metal': {'main_port_id': 22538229, 'sub_port_id': 22538273, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973495, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'kraft': {'main_port_id': 22538229, 'sub_port_id': 22538274, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973496, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'plastique': {'main_port_id': 22538229, 'sub_port_id': 22538275, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973497, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 17), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}, 'flou': {'main_port_id': 22538229, 'sub_port_id': 22538276, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14973498, 'last_updated_at': datetime.datetime(2025, 4, 30, 10, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 30, 10, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 30, 10, 17)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538265,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538253 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538266,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538254 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538267,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538255 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538268,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538256 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538269,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538257 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538270,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538258 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538271,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538259 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538272,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538260 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538273,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538261 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538274,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538262 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538275,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538263 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22538276,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22538264 lien utilise dans velours : https://www.fotonower.com/velours/22538265,22538266,22538267,22538268,22538269,22538270,22538271,22538272,22538273,22538274,22538275,22538276?tags=Carton_brun,environnement,Teint_Dans_La_Masse,autre_refus,papier,mal_croppe,cartonnette,Carton_gris,metal,kraft,plastique,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22538229]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856] map_info['map_portfolio_photo'] : {22538229: [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856, 1354618798, 1354618793, 1354618789, 1354618784, 1354618709, 1354618704, 1354618698, 1354618694, 1354618689, 1354618682, 1354618652, 1354618649, 1354618644, 1354618636, 1354618628, 1354618579, 1354618573, 1354618570, 1354618567, 1354618562, 1354618475, 1354618471, 1354618466]} final : False mtd_id 4302 list_pids : [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856] Looping around the photos to save general results len do output : 1 /22538229. 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, '2773365') ('4302', '22538229', '1354619080', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619076', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619072', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619067', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619043', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619040', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619035', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619031', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619027', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618985', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618927', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618924', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618919', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618868', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618866', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618862', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618858', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618856', None, None, None, None, None, '2773365') 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, '22538229', "{'Carton_brun': 22538253, 'environnement': 22538254, 'Teint_Dans_La_Masse': 22538255, 'autre_refus': 22538256, 'papier': 22538257, 'mal_croppe': 22538258, 'cartonnette': 22538259, 'Carton_gris': 22538260, 'metal': 22538261, 'kraft': 22538262, 'plastique': 22538263, 'flou': 22538264}", None, None, None, None, '2773365'), ('4302', '22538229', '1354619080', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619076', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619072', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619067', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619043', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619040', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619035', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619031', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619027', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618985', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618927', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618924', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618919', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618868', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618866', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618862', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618858', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618856', None, None, None, None, None, '2773365')] time used for this insertion : 0.01471090316772461 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.403202772140503 time spend to save output : 0.015073776245117188 total time spend for step 1 : 1.4182765483856201 step2:final Wed Apr 30 10:24:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22538229) 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 22538229 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1354618475,1354618471,1354618466,1354618579,1354618573,1354618570,1354618567,1354618562,1354618652,1354618649,1354618644,1354618636,1354618628,1354618709,1354618704,1354618698,1354618694,1354618689,1354618682,1354618798,1354618793,1354618789,1354618784,1354618868,1354618866,1354618862,1354618858,1354618856,1354618985,1354618927,1354618924,1354618919,1354619043,1354619040,1354619035,1354619031,1354619027,1354619080,1354619076,1354619072,1354619067); 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([22538229]) Inside saveOutput : final : False verbose : True original output for save of step final : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} new output for save of step final : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856] map_info['map_portfolio_photo'] : {22538229: [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856, 1354618798, 1354618793, 1354618789, 1354618784, 1354618709, 1354618704, 1354618698, 1354618694, 1354618689, 1354618682, 1354618652, 1354618649, 1354618644, 1354618636, 1354618628, 1354618579, 1354618573, 1354618570, 1354618567, 1354618562, 1354618475, 1354618471, 1354618466]} final : False mtd_id 4302 list_pids : [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856] Looping around the photos to save general results len do output : 18 /1354619080.Didn't retrieve data . /1354619076.Didn't retrieve data . /1354619072.Didn't retrieve data . /1354619067.Didn't retrieve data . /1354619043.Didn't retrieve data . /1354619040.Didn't retrieve data . /1354619035.Didn't retrieve data . /1354619031.Didn't retrieve data . /1354619027.Didn't retrieve data . /1354618985.Didn't retrieve data . /1354618927.Didn't retrieve data . /1354618924.Didn't retrieve data . /1354618919.Didn't retrieve data . /1354618868.Didn't retrieve data . /1354618866.Didn't retrieve data . /1354618862.Didn't retrieve data . /1354618858.Didn't retrieve data . /1354618856.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, '2773365') ('4302', '22538229', '1354619080', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619076', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619072', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619067', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619043', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619040', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619035', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619031', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619027', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618985', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618927', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618924', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618919', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618868', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618866', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618862', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618858', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618856', None, None, None, None, None, '2773365') 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', '22538229', '1354619080', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354619076', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354619072', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354619067', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354619043', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354619040', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354619035', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354619031', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354619027', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354618985', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354618927', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354618924', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354618919', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354618868', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354618866', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354618862', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354618858', '0.05049243997179253', None, None, None, None, '2773365'), ('4302', '22538229', '1354618856', '0.05049243997179253', None, None, None, None, '2773365')] time used for this insertion : 0.01804661750793457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06679511070251465 time spend to save output : 0.018873929977416992 total time spend for step 2 : 0.08566904067993164 step3:velours_tree Wed Apr 30 10:24:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22538229: [{'Carton_brun': 22538253, 'environnement': 22538254, 'Teint_Dans_La_Masse': 22538255, 'autre_refus': 22538256, 'papier': 22538257, 'mal_croppe': 22538258, 'cartonnette': 22538259, 'Carton_gris': 22538260, 'metal': 22538261, 'kraft': 22538262, 'plastique': 22538263, 'flou': 22538264}]} input_args_next_step : {22538229: ()} output_args : {22538229: [{'Carton_brun': 22538253, 'environnement': 22538254, 'Teint_Dans_La_Masse': 22538255, 'autre_refus': 22538256, 'papier': 22538257, 'mal_croppe': 22538258, 'cartonnette': 22538259, 'Carton_gris': 22538260, 'metal': 22538261, 'kraft': 22538262, 'plastique': 22538263, 'flou': 22538264}]} args : 22538229 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 : ({'Carton_brun': 22538253, 'environnement': 22538254, 'Teint_Dans_La_Masse': 22538255, 'autre_refus': 22538256, 'papier': 22538257, 'mal_croppe': 22538258, 'cartonnette': 22538259, 'Carton_gris': 22538260, 'metal': 22538261, 'kraft': 22538262, 'plastique': 22538263, 'flou': 22538264},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22538229) 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([22538229]) 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.4398996829986572 time spend to save output : 6.413459777832031e-05 total time spend for step 3 : 0.43996381759643555 step4:send_mail_cod Wed Apr 30 10:25: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 : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} input_args_next_step : {1354619080: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354619080 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354619076 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354619072 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354619067 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354619043 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354619040 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354619035 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354619031 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354619027 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354618985 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354618927 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354618924 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354618919 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354618868 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354618866 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354618862 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354618858 depend.output_id : 0 input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ()} output_args : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',)} args : 1354618856 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 : {22538229: [{'Carton_brun': 22538253, 'environnement': 22538254, 'Teint_Dans_La_Masse': 22538255, 'autre_refus': 22538256, 'papier': 22538257, 'mal_croppe': 22538258, 'cartonnette': 22538259, 'Carton_gris': 22538260, 'metal': 22538261, 'kraft': 22538262, 'plastique': 22538263, 'flou': 22538264}]} input_args_next_step : {1354619080: ('0.05049243997179253',), 1354619076: ('0.05049243997179253',), 1354619072: ('0.05049243997179253',), 1354619067: ('0.05049243997179253',), 1354619043: ('0.05049243997179253',), 1354619040: ('0.05049243997179253',), 1354619035: ('0.05049243997179253',), 1354619031: ('0.05049243997179253',), 1354619027: ('0.05049243997179253',), 1354618985: ('0.05049243997179253',), 1354618927: ('0.05049243997179253',), 1354618924: ('0.05049243997179253',), 1354618919: ('0.05049243997179253',), 1354618868: ('0.05049243997179253',), 1354618866: ('0.05049243997179253',), 1354618862: ('0.05049243997179253',), 1354618858: ('0.05049243997179253',), 1354618856: ('0.05049243997179253',), 22538229: ()} output_args : {22538229: [{'Carton_brun': 22538253, 'environnement': 22538254, 'Teint_Dans_La_Masse': 22538255, 'autre_refus': 22538256, 'papier': 22538257, 'mal_croppe': 22538258, 'cartonnette': 22538259, 'Carton_gris': 22538260, 'metal': 22538261, 'kraft': 22538262, 'plastique': 22538263, 'flou': 22538264}]} args : 22538229 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.05049243997179253',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22538229) 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 (1354619080,1354619076,1354619072,1354619067,1354619043,1354619040,1354619035,1354619031,1354619027,1354618985,1354618927,1354618924,1354618919,1354618868,1354618866,1354618862,1354618858,1354618856) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1354618856 begin to download photo : 1354618868 begin to download photo : 1354618985 begin to download photo : 1354619040 begin to download photo : 1354619076 download finish for photo 1354618868 begin to download photo : 1354618919 download finish for photo 1354619040 begin to download photo : 1354619043 download finish for photo 1354618856 begin to download photo : 1354618858 download finish for photo 1354618985 begin to download photo : 1354619027 download finish for photo 1354619076 begin to download photo : 1354619080 download finish for photo 1354618919 begin to download photo : 1354618924 download finish for photo 1354619043 begin to download photo : 1354619067 download finish for photo 1354618858 begin to download photo : 1354618862 download finish for photo 1354619027 begin to download photo : 1354619031 download finish for photo 1354619080 download finish for photo 1354619031 begin to download photo : 1354619035 download finish for photo 1354618924 begin to download photo : 1354618927 download finish for photo 1354619067 begin to download photo : 1354619072 download finish for photo 1354618862 begin to download photo : 1354618866 download finish for photo 1354618927 download finish for photo 1354619035 download finish for photo 1354619072 download finish for photo 1354618866 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette225382561746001500/ imagette225382581746001500/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P22538229_30-04-2025_10_25_00.pdf 22538256 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=22538256 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225382561746001500 22538258 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=22538258 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225382581746001500 22538259 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=22538259 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354618772: '1746001151_881436_1354618562_a5bb6bf9c13cd7f7807d287f6684c9bc_rle_crop_3775257088_0.png', 1354618910: '1746001272_882933_1354618798_e2ab47adaf1c43eb2c503118ed18740a_rle_crop_3775258459_0.png', 1354618911: '1746001272_882933_1354618694_812d2052bb879482646ae4f03ed33114_rle_crop_3775258499_0.png', 1354618912: '1746001272_882933_1354618689_02aa4b4993285723fb521791946ff870_rle_crop_3775258509_0.png', 1354619055: '1746001392_884156_1354618856_aadec24515984e3c7dd08e521cd4530c_rle_crop_3775260198_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/bf3692315956bc86130ba7729f415dfd_83710525.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/519ad6da0fb11f9adedb0b8a7088a086_66305671.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/1eaa58e6539a81699adb4baedb30589a_78651186.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/57f1019272ff2e7dda866082fea675be_68362233.png change filename to text .imagette225382591746001500/ imagette225382591746001500/1746001151_881436_1354618562_a5bb6bf9c13cd7f7807d287f6684c9bc_rle_crop_3775257088_0.png.png imagette225382591746001500/1746001272_882933_1354618798_e2ab47adaf1c43eb2c503118ed18740a_rle_crop_3775258459_0.png.png imagette225382591746001500/1746001272_882933_1354618694_812d2052bb879482646ae4f03ed33114_rle_crop_3775258499_0.png.png imagette225382591746001500/1746001272_882933_1354618689_02aa4b4993285723fb521791946ff870_rle_crop_3775258509_0.png.png imagette225382591746001500/1746001392_884156_1354618856_aadec24515984e3c7dd08e521cd4530c_rle_crop_3775260198_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/38b68c3edb7143fcae9e9ea95ac65bf1_81379652.png imagette225382591746001500 22538261 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=22538261 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354618918: '1746001272_882933_1354618682_39acfefb1dc6c86d681f0453056281b0_rle_crop_3775258523_0.png'} change filename to text .imagette225382611746001500/ imagette225382611746001500/1746001272_882933_1354618682_39acfefb1dc6c86d681f0453056281b0_rle_crop_3775258523_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/6112e7ebe0c1a322854707ab37781850_29859501.png imagette225382611746001500 22538262 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=22538262 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354618915: '1746001272_882933_1354618698_9b36720f6c056021cbc628827c7c8899_rle_crop_3775258486_0.png', 1354618916: '1746001272_882933_1354618694_812d2052bb879482646ae4f03ed33114_rle_crop_3775258504_0.png', 1354618917: '1746001272_882933_1354618689_02aa4b4993285723fb521791946ff870_rle_crop_3775258516_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/c7ae0b6d8f684ed534cb570aea578d39_1988846.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/57980bec0d1e3efa7a4083f5c83cdea4_30630130.png change filename to text .imagette225382621746001501/ imagette225382621746001501/1746001272_882933_1354618698_9b36720f6c056021cbc628827c7c8899_rle_crop_3775258486_0.png.png imagette225382621746001501/1746001272_882933_1354618689_02aa4b4993285723fb521791946ff870_rle_crop_3775258516_0.png.png imagette225382621746001501/1746001272_882933_1354618694_812d2052bb879482646ae4f03ed33114_rle_crop_3775258504_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/87fa72ec9e5731b0df0d3935e196dc2f_19880163.png imagette225382621746001501 22538263 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=22538263 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354619023: '1746001332_883612_1354618649_299d5a4a0aab075267d46580c6293cce_rle_crop_3775258732_0.png', 1354619056: '1746001392_884156_1354618862_95ae40524d2cc3ef1340309d6c4715a0_rle_crop_3775260179_0.png', 1354619057: '1746001392_884156_1354618858_e589630d81e1d85b8c843675700093ae_rle_crop_3775260188_0.png', 1354619058: '1746001392_884156_1354618856_aadec24515984e3c7dd08e521cd4530c_rle_crop_3775260203_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/2eeffb9f65f73e523767dabc179fd1b3_28868269.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/54e8428acbe525d613532fcf567f543f_76505022.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/01bc28b4f9108a8befa7dedcc7744c8d_40454064.png change filename to text .imagette225382631746001501/ imagette225382631746001501/1746001392_884156_1354618858_e589630d81e1d85b8c843675700093ae_rle_crop_3775260188_0.png.png imagette225382631746001501/1746001332_883612_1354618649_299d5a4a0aab075267d46580c6293cce_rle_crop_3775258732_0.png.png imagette225382631746001501/1746001392_884156_1354618862_95ae40524d2cc3ef1340309d6c4715a0_rle_crop_3775260179_0.png.png imagette225382631746001501/1746001392_884156_1354618856_aadec24515984e3c7dd08e521cd4530c_rle_crop_3775260203_0.png.png imagette225382641746001501/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/ee92254380bb3df4d103aef5f0bf6f82_23552848.png imagette225382631746001501 22538264 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=22538264 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225382641746001501 22538253 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=22538253 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354618913: '1746001272_882933_1354618698_9b36720f6c056021cbc628827c7c8899_rle_crop_3775258489_0.png', 1354618914: '1746001272_882933_1354618689_02aa4b4993285723fb521791946ff870_rle_crop_3775258510_0.png', 1354619099: '1746001452_884781_1354618652_4b231baba1794c92a96a22cb6d1ed756_rle_crop_3775260474_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/508b7ecb9c1b1af014c9119012c93d3b_59404740.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/0ceb997585607e413cbf595db1a84ac0_18874158.png change filename to text .imagette225382531746001501/ imagette225382531746001501/1746001452_884781_1354618652_4b231baba1794c92a96a22cb6d1ed756_rle_crop_3775260474_0.png.png imagette225382531746001501/1746001272_882933_1354618689_02aa4b4993285723fb521791946ff870_rle_crop_3775258510_0.png.png imagette225382531746001501/1746001272_882933_1354618698_9b36720f6c056021cbc628827c7c8899_rle_crop_3775258489_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/9e645be0c715a86b6b2831666306cd03_77053521.png imagette225382531746001501 22538255 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=22538255 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354618902: '1746001272_882933_1354618694_812d2052bb879482646ae4f03ed33114_rle_crop_3775258500_0.png', 1354619098: '1746001452_884781_1354618652_4b231baba1794c92a96a22cb6d1ed756_rle_crop_3775260479_0.png', 1354619054: '1746001392_884156_1354618866_e74abb7fa3da14174e19673cec1eec7f_rle_crop_3775260170_0.png', 1354619018: '1746001332_883612_1354618628_98a45e00132cfccdf60ed158aa750f67_rle_crop_3775258773_0.png', 1354619017: '1746001332_883612_1354618709_549376583000e5da67a2ec657728a1bd_rle_crop_3775258722_0.png', 1354618907: '1746001272_882933_1354618682_39acfefb1dc6c86d681f0453056281b0_rle_crop_3775258528_0.png', 1354618906: '1746001272_882933_1354618682_39acfefb1dc6c86d681f0453056281b0_rle_crop_3775258525_0.png', 1354618905: '1746001272_882933_1354618682_39acfefb1dc6c86d681f0453056281b0_rle_crop_3775258526_0.png', 1354618904: '1746001272_882933_1354618689_02aa4b4993285723fb521791946ff870_rle_crop_3775258513_0.png', 1354618903: '1746001272_882933_1354618689_02aa4b4993285723fb521791946ff870_rle_crop_3775258512_0.png', 1354618770: '1746001151_881436_1354618562_a5bb6bf9c13cd7f7807d287f6684c9bc_rle_crop_3775257095_0.png', 1354618901: '1746001272_882933_1354618694_812d2052bb879482646ae4f03ed33114_rle_crop_3775258497_0.png', 1354618900: '1746001272_882933_1354618698_9b36720f6c056021cbc628827c7c8899_rle_crop_3775258491_0.png', 1354618899: '1746001272_882933_1354618704_84f8e1baab1fe443e8a6d487852577d0_rle_crop_3775258472_0.png', 1354618898: '1746001272_882933_1354618704_84f8e1baab1fe443e8a6d487852577d0_rle_crop_3775258475_0.png', 1354618897: '1746001272_882933_1354618704_84f8e1baab1fe443e8a6d487852577d0_rle_crop_3775258477_0.png', 1354618896: '1746001272_882933_1354618798_e2ab47adaf1c43eb2c503118ed18740a_rle_crop_3775258465_0.png', 1354618895: '1746001272_882933_1354618798_e2ab47adaf1c43eb2c503118ed18740a_rle_crop_3775258462_0.png', 1354618771: '1746001151_881436_1354618562_a5bb6bf9c13cd7f7807d287f6684c9bc_rle_crop_3775257100_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/00bf409f07d8646acb736f06cbd4a34f_15652462.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/ff1962b05f03e003ea32efe470b4c89d_91291324.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/4813f717936376a30cf17b637202215d_96929699.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/c354654d31100ef0211e52f3e1ad9e36_93628547.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/d90386157d9b69b28a6f9539edc58067_67495464.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/db0a989d1a1d741a955f48011ad44aba_56911417.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/e581dc09ae63b730ed9e4d24ff11bf1f_19947099.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/3a10b63ffa26a878876b76cff6c266e3_80703638.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/28bba9030dd6bd6f932ed8137d6101d6_75871706.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/95615829a4489ec369093c5300bce842_83298110.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/81d129fd8e85aa07d52ed26144f2ad7a_83592060.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/62c17952e8f6e5515f3c28fb7741c499_46082875.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/5810ba13c80d7db719afcf6526995c39_38531828.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/6fc90226b2722ddd6a91a3519f276aac_35725250.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/ddd1cd17fd84bd72e2ba0ba7b377ce95_55867823.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/89281d14cc8cb831b3952e9579050bb4_17844449.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/67ce732e9fb405cf59d436e459dcb8e5_21201363.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/e880e15206f6c42bdc716d68112d47d7_55688119.png change filename to text .imagette225382551746001501/ imagette225382551746001501/1746001392_884156_1354618866_e74abb7fa3da14174e19673cec1eec7f_rle_crop_3775260170_0.png.png imagette225382551746001501/1746001272_882933_1354618798_e2ab47adaf1c43eb2c503118ed18740a_rle_crop_3775258462_0.png.png imagette225382551746001501/1746001151_881436_1354618562_a5bb6bf9c13cd7f7807d287f6684c9bc_rle_crop_3775257100_0.png.png imagette225382551746001501/1746001272_882933_1354618704_84f8e1baab1fe443e8a6d487852577d0_rle_crop_3775258477_0.png.png imagette225382551746001501/1746001151_881436_1354618562_a5bb6bf9c13cd7f7807d287f6684c9bc_rle_crop_3775257095_0.png.png imagette225382551746001501/1746001332_883612_1354618628_98a45e00132cfccdf60ed158aa750f67_rle_crop_3775258773_0.png.png imagette225382551746001501/1746001272_882933_1354618694_812d2052bb879482646ae4f03ed33114_rle_crop_3775258500_0.png.png imagette225382551746001501/1746001332_883612_1354618709_549376583000e5da67a2ec657728a1bd_rle_crop_3775258722_0.png.png imagette225382551746001501/1746001272_882933_1354618682_39acfefb1dc6c86d681f0453056281b0_rle_crop_3775258526_0.png.png imagette225382551746001501/1746001272_882933_1354618689_02aa4b4993285723fb521791946ff870_rle_crop_3775258513_0.png.png imagette225382551746001501/1746001272_882933_1354618682_39acfefb1dc6c86d681f0453056281b0_rle_crop_3775258525_0.png.png imagette225382551746001501/1746001272_882933_1354618704_84f8e1baab1fe443e8a6d487852577d0_rle_crop_3775258475_0.png.png imagette225382551746001501/1746001272_882933_1354618798_e2ab47adaf1c43eb2c503118ed18740a_rle_crop_3775258465_0.png.png imagette225382551746001501/1746001272_882933_1354618682_39acfefb1dc6c86d681f0453056281b0_rle_crop_3775258528_0.png.png imagette225382551746001501/1746001272_882933_1354618689_02aa4b4993285723fb521791946ff870_rle_crop_3775258512_0.png.png imagette225382551746001501/1746001272_882933_1354618694_812d2052bb879482646ae4f03ed33114_rle_crop_3775258497_0.png.png imagette225382551746001501/1746001272_882933_1354618698_9b36720f6c056021cbc628827c7c8899_rle_crop_3775258491_0.png.png imagette225382551746001501/1746001452_884781_1354618652_4b231baba1794c92a96a22cb6d1ed756_rle_crop_3775260479_0.png.png imagette225382551746001501/1746001272_882933_1354618704_84f8e1baab1fe443e8a6d487852577d0_rle_crop_3775258472_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/7ff7d1efe2e15c9854984c606f6d81cf_59544685.png imagette225382551746001501 22538260 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=22538260 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1354618908: '1746001272_882933_1354618704_84f8e1baab1fe443e8a6d487852577d0_rle_crop_3775258471_0.png', 1354619020: '1746001332_883612_1354618709_549376583000e5da67a2ec657728a1bd_rle_crop_3775258721_0.png', 1354619021: '1746001332_883612_1354618649_299d5a4a0aab075267d46580c6293cce_rle_crop_3775258729_0.png', 1354619022: '1746001332_883612_1354618628_98a45e00132cfccdf60ed158aa750f67_rle_crop_3775258771_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/96cde17bd54107fce1b1cac4f9bf2e2e_60904764.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/87eb48b47325baa8cd208884e4d9d795_28300907.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/a798a5e1579cffd862ea16f92bdb4f18_19701695.png change filename to text .imagette225382601746001502/ imagette225382601746001502/1746001272_882933_1354618704_84f8e1baab1fe443e8a6d487852577d0_rle_crop_3775258471_0.png.png imagette225382601746001502/1746001332_883612_1354618709_549376583000e5da67a2ec657728a1bd_rle_crop_3775258721_0.png.png imagette225382601746001502/1746001332_883612_1354618628_98a45e00132cfccdf60ed158aa750f67_rle_crop_3775258771_0.png.png imagette225382601746001502/1746001332_883612_1354618649_299d5a4a0aab075267d46580c6293cce_rle_crop_3775258729_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/a83413cdabdd2b79a7c529db4b94da73_12469131.png imagette225382601746001502 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22538229 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22538265,22538266,22538267,22538268,22538269,22538270,22538271,22538272,22538273,22538274,22538275,22538276?tags=Carton_brun,environnement,Teint_Dans_La_Masse,autre_refus,papier,mal_croppe,cartonnette,Carton_gris,metal,kraft,plastique,flou your option no_mail is active, we will not send the real mail to your client args[1354619080] : ('0.05049243997179253',) no score found for photo 1354619080 We are sending mail with results at report@fotonower.com args[1354619076] : ('0.05049243997179253',) no score found for photo 1354619076 We are sending mail with results at report@fotonower.com args[1354619072] : ('0.05049243997179253',) no score found for photo 1354619072 We are sending mail with results at report@fotonower.com args[1354619067] : ('0.05049243997179253',) no score found for photo 1354619067 We are sending mail with results at report@fotonower.com args[1354619043] : ('0.05049243997179253',) no score found for photo 1354619043 We are sending mail with results at report@fotonower.com args[1354619040] : ('0.05049243997179253',) no score found for photo 1354619040 We are sending mail with results at report@fotonower.com args[1354619035] : ('0.05049243997179253',) no score found for photo 1354619035 We are sending mail with results at report@fotonower.com args[1354619031] : ('0.05049243997179253',) no score found for photo 1354619031 We are sending mail with results at report@fotonower.com args[1354619027] : ('0.05049243997179253',) no score found for photo 1354619027 We are sending mail with results at report@fotonower.com args[1354618985] : ('0.05049243997179253',) no score found for photo 1354618985 We are sending mail with results at report@fotonower.com args[1354618927] : ('0.05049243997179253',) no score found for photo 1354618927 We are sending mail with results at report@fotonower.com args[1354618924] : ('0.05049243997179253',) no score found for photo 1354618924 We are sending mail with results at report@fotonower.com args[1354618919] : ('0.05049243997179253',) no score found for photo 1354618919 We are sending mail with results at report@fotonower.com args[1354618868] : ('0.05049243997179253',) no score found for photo 1354618868 We are sending mail with results at report@fotonower.com args[1354618866] : ('0.05049243997179253',) no score found for photo 1354618866 We are sending mail with results at report@fotonower.com args[1354618862] : ('0.05049243997179253',) no score found for photo 1354618862 We are sending mail with results at report@fotonower.com args[1354618858] : ('0.05049243997179253',) no score found for photo 1354618858 We are sending mail with results at report@fotonower.com args[1354618856] : ('0.05049243997179253',) no score found for photo 1354618856 We are sending mail with results at report@fotonower.com refus_total : 0.05049243997179253 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=22538229 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_P22538229_30-04-2025_10_25_00.pdf results_Auto_P22538229_30-04-2025_10_25_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22538229_30-04-2025_10_25_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22538229','results_Auto_P22538229_30-04-2025_10_25_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22538229_30-04-2025_10_25_00.pdf','pdf','','0.26','0.05049243997179253') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22538229]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856] map_info['map_portfolio_photo'] : {22538229: [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856, 1354618798, 1354618793, 1354618789, 1354618784, 1354618709, 1354618704, 1354618698, 1354618694, 1354618689, 1354618682, 1354618652, 1354618649, 1354618644, 1354618636, 1354618628, 1354618579, 1354618573, 1354618570, 1354618567, 1354618562, 1354618475, 1354618471, 1354618466]} final : False mtd_id 4302 list_pids : [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856] 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, '2773365') ('4302', '22538229', '1354619080', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619076', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619072', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619067', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619043', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619040', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619035', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619031', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619027', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618985', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618927', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618924', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618919', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618868', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618866', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618862', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618858', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618856', None, None, None, None, None, '2773365') 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', '22538229', '1354619080', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619076', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619072', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619067', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619043', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619040', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619035', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619031', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619027', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618985', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618927', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618924', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618919', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618868', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618866', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618862', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618858', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618856', None, None, None, None, None, '2773365')] time used for this insertion : 0.014713287353515625 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.26244044303894 time spend to save output : 0.014998197555541992 total time spend for step 4 : 4.277438640594482 step5:split_time_score Wed Apr 30 10:25: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 : ['22538229'] 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 : [('22538229',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22538229) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1354619076: {'path': 'temp/1746001500_1722434_1354619076_2d1b8447967b542eb37746ce1d5f9cec.jpg', 'extension': 'jpg'}, 1354619080: {'path': 'temp/1746001500_1722434_1354619080_19869a9f7f4fba9dfe0fe081802bb43f.jpg', 'extension': 'jpg'}, 1354618868: {'path': 'temp/1746001500_1722434_1354618868_82bea93686853795d48301b9e45408f1.jpg', 'extension': 'jpg'}, 1354618919: {'path': 'temp/1746001500_1722434_1354618919_fff78cefe62a3eee5d06629ac05e3abc.jpg', 'extension': 'jpg'}, 1354618924: {'path': 'temp/1746001500_1722434_1354618924_a59b3b9898ae01cce52ad238466fffcd.jpg', 'extension': 'jpg'}, 1354618927: {'path': 'temp/1746001500_1722434_1354618927_5d780935cc0133bf995174408d0bbc6a.jpg', 'extension': 'jpg'}, 1354618985: {'path': 'temp/1746001500_1722434_1354618985_7827672dc81e243ba5bc6c7767de925e.jpg', 'extension': 'jpg'}, 1354619027: {'path': 'temp/1746001500_1722434_1354619027_29f12fbfbd1d6d07e98a5d2d72b076e0.jpg', 'extension': 'jpg'}, 1354619031: {'path': 'temp/1746001500_1722434_1354619031_e89fa6e897638cf07b7f98e4f33091f2.jpg', 'extension': 'jpg'}, 1354619035: {'path': 'temp/1746001500_1722434_1354619035_fde57e5242d192a03954443b07b4090a.jpg', 'extension': 'jpg'}, 1354619040: {'path': 'temp/1746001500_1722434_1354619040_38e384d84e3b52246d52930a7b34beda.jpg', 'extension': 'jpg'}, 1354619043: {'path': 'temp/1746001500_1722434_1354619043_945445798b51df94aaa3c267a4ea606c.jpg', 'extension': 'jpg'}, 1354619067: {'path': 'temp/1746001500_1722434_1354619067_18bb43cd33f327c6fcebd44af20d1c12.jpg', 'extension': 'jpg'}, 1354619072: {'path': 'temp/1746001500_1722434_1354619072_0b90585ad86bdbbab476943e04f2831a.jpg', 'extension': 'jpg'}, 1354618856: {'path': 'temp/1746001500_1722434_1354618856_aadec24515984e3c7dd08e521cd4530c.jpg', 'extension': 'jpg'}, 1354618858: {'path': 'temp/1746001500_1722434_1354618858_e589630d81e1d85b8c843675700093ae.jpg', 'extension': 'jpg'}, 1354618862: {'path': 'temp/1746001500_1722434_1354618862_95ae40524d2cc3ef1340309d6c4715a0.jpg', 'extension': 'jpg'}, 1354618866: {'path': 'temp/1746001500_1722434_1354618866_e74abb7fa3da14174e19673cec1eec7f.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 = 22538229; (('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 = 22538229 group by h (('10', 41),) 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=22538229 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 (22538229) 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 (22538229) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30042025 22538229 Nombre de photos uploadées : 41 / 23040 (0%) 30042025 22538229 Nombre de photos taguées (types de déchets): 0 / 41 (0%) 30042025 22538229 Nombre de photos taguées (volume) : 0 / 41 (0%) [{'photo_id': 1354618475, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/1ff8998a6dbd6a2ec85159c9c487ed7d.jpg', 'username': None, 'uploaded_at': 1746000968, 'text': 'image_30042025_10_15_04_10143.jpg'}, {'photo_id': 1354618471, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/c863f342694b20d63bfc71eec70a1f9e.jpg', 'username': None, 'uploaded_at': 1746000968, 'text': 'image_30042025_10_15_14_10136.jpg'}, {'photo_id': 1354618466, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/b25e8f58002eabb4be01e1bb71f203af.jpg', 'username': None, 'uploaded_at': 1746000968, 'text': 'image_30042025_10_15_24_10134.jpg'}, {'photo_id': 1354618579, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/30/cf67432d1d8a136f819b4422232dab74.jpg', 'username': None, 'uploaded_at': 1746001028, 'text': 'image_30042025_10_15_34_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.0251998901367188e-05 ????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019724369049072266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22538229, '2025-04-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1757228,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024535179138183594 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= 1757228 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22526515, 'dashboard_result_id': 10177453, '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_P22526515_30-04-2025_01_52_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22526516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22526517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22526518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22526519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22526520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22526521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22526522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22526523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22526524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22526525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22526526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22526527, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22528309, 'dashboard_result_id': 10177454, '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_P22528309_30-04-2025_06_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22528311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22528312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22528313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22528314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22528315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22528316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22528317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22528318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22528319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22528320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22528321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22528322, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22528467, 'dashboard_result_id': 10177455, '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_P22528467_30-04-2025_06_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22528470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22528471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22528472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22528473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22528474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22528475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22528476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22528477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22528478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22528479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22528480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22528481, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22528725, 'dashboard_result_id': 10177456, '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_P22528725_30-04-2025_05_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22528750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22528751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22528752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22528753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22528754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22528755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22528756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22528757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22528758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22528759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22528760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22528761, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22529264, 'dashboard_result_id': 10177457, '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_P22529264_30-04-2025_06_06_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22529292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22529293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22529294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22529295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22529296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22529297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22529298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22529299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22529300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22529301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22529302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22529303, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22529945, 'dashboard_result_id': 10177458, '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_P22529945_30-04-2025_06_23_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22529946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22529947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22529948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22529949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22529950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22529951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22529952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22529953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22529954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22529955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22529956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22529957, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22530302, 'dashboard_result_id': 10177459, '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_P22530302_30-04-2025_06_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22530327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22530328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22530329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22530330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22530331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22530332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22530333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22530334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22530335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22530336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22530337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22530338, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22530537, 'dashboard_result_id': 10177460, '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_P22530537_30-04-2025_06_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22530567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22530568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22530569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22530570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22530571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22530572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22530573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22530574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22530575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22530576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22530577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22530578, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22531077, 'dashboard_result_id': 10177461, '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_P22531077_30-04-2025_07_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22531081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22531082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22531083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22531084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22531085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22531086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22531087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22531088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22531089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22531090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22531091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22531092, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22531438, 'dashboard_result_id': 10177462, '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_P22531438_30-04-2025_07_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22531463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22531464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22531465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22531466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22531467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22531468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22531469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22531470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22531471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22531472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22531473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22531474, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22532077, 'dashboard_result_id': 10177463, '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_P22532077_30-04-2025_07_34_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22532102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22532103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22532104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22532105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22532106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22532107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22532108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22532109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22532110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22532111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22532112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22532113, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22532565, 'dashboard_result_id': 10177464, '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_P22532565_30-04-2025_07_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22532631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22532632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22532633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22532634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22532635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22532636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22532637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22532638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22532639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22532640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22532641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22532642, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22533018, 'dashboard_result_id': 10177465, '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_P22533018_30-04-2025_08_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22533046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22533047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22533048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22533049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22533050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22533051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22533052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22533053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22533054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22533055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22533056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22533057, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22533642, 'dashboard_result_id': 10177466, '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_P22533642_30-04-2025_08_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22533649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22533650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22533651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22533652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22533653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22533654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22533655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22533656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22533657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22533658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22533659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22533660, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22534441, 'dashboard_result_id': 10177467, '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_P22534441_30-04-2025_08_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22534447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22534448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22534449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22534450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22534451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22534452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22534453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22534454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22534455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22534456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22534457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22534458, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22534867, 'dashboard_result_id': 10177468, '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_P22534867_30-04-2025_08_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22534895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22534896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22534897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22534898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22534899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22534900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22534901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22534902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22534903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22534904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22534905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22534906, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22535311, 'dashboard_result_id': 10177469, '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_P22535311_30-04-2025_09_02_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22535380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22535381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22535382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22535383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22535384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22535385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22535386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22535387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22535388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22535389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22535390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22535391, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22536575, 'dashboard_result_id': 10177470, '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_P22536575_30-04-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22536579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22536580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22536581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22536582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22536583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22536584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22536585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22536586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22536587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22536588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22536589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22536590, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22537123, 'dashboard_result_id': 10177471, '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_P22537123_30-04-2025_10_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22537130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22537131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22537132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22537133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22537134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22537135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22537136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22537137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22537138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22537139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22537140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22537141, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22537734, 'dashboard_result_id': 10177472, '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_P22537734_30-04-2025_10_17_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22537761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22537762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22537763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22537764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22537765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22537766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22537767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22537768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22537769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22537770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22537771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22537772, 'pht': 3726}}"}, {'dashboat_entry_day': 1757228, 'dashboard_run_id': 1766131, 'mtr_portfolio_id': 22538229, 'dashboard_result_id': 10177473, '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_P22538229_30-04-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22538253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22538254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22538255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22538256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22538257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22538258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22538259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22538260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22538261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22538262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22538263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22538264, '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 = 22526515 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': 2771743, 'mtr_portfolio_id': 22526515, 'created_at': datetime.datetime(2025, 4, 30, 1, 52, 59), 'result': '0.06304917277059637', 'result_long': None, 'result_double': None}] Qualite : 0.06304917277059637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22526515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22526515_30-04-2025_01_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22526515 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_P22526515_30-04-2025_01_52_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22526516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22526517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22526518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22526519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22526520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22526521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22526522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22526523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22526524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22526525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22526526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22526527, 'pht': 3726}}" where mtr_portfolio_id = 22526515 and dashboard_run_id = 1766131 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`=22526515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177453, 0.06304917277059637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22526515_30-04-2025_01_52_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22526516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22526517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22526518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22526519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22526520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22526521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22526522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22526523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22526524, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22526525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22526526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22526527, '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 = 22528309 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': 2772257, 'mtr_portfolio_id': 22528309, 'created_at': datetime.datetime(2025, 4, 30, 6, 2, 59), 'result': '0.0541596861272124', 'result_long': None, 'result_double': None}] Qualite : 0.0541596861272124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22528309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22528309_30-04-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22528309 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_P22528309_30-04-2025_06_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22528311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22528312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22528313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22528314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22528315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22528316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22528317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22528318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22528319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22528320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22528321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22528322, 'pht': 3726}}" where mtr_portfolio_id = 22528309 and dashboard_run_id = 1766131 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`=22528309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177454, 0.0541596861272124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22528309_30-04-2025_06_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22528311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22528312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22528313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22528314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22528315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22528316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22528317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22528318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22528319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22528320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22528321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22528322, '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 = 22528467 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': 2772258, 'mtr_portfolio_id': 22528467, 'created_at': datetime.datetime(2025, 4, 30, 6, 3, 31), 'result': '0.04773812404485209', 'result_long': None, 'result_double': None}] Qualite : 0.04773812404485209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22528467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22528467_30-04-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22528467 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_P22528467_30-04-2025_06_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22528470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22528471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22528472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22528473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22528474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22528475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22528476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22528477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22528478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22528479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22528480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22528481, 'pht': 3726}}" where mtr_portfolio_id = 22528467 and dashboard_run_id = 1766131 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`=22528467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177455, 0.04773812404485209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22528467_30-04-2025_06_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22528470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22528471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22528472, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22528473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22528474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22528475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22528476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22528477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22528478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22528479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22528480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22528481, '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 = 22528725 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': 2772199, 'mtr_portfolio_id': 22528725, 'created_at': datetime.datetime(2025, 4, 30, 5, 49), 'result': '0.05033071843439702', 'result_long': None, 'result_double': None}] Qualite : 0.05033071843439702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22528725 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22528725_30-04-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22528725 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_P22528725_30-04-2025_05_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22528750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22528751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22528752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22528753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22528754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22528755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22528756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22528757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22528758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22528759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22528760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22528761, 'pht': 3726}}" where mtr_portfolio_id = 22528725 and dashboard_run_id = 1766131 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`=22528725 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177456, 0.05033071843439702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22528725_30-04-2025_05_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22528750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22528751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22528752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22528753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22528754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22528755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22528756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22528757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22528758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22528759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22528760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22528761, '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 = 22529264 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': 2772312, 'mtr_portfolio_id': 22529264, 'created_at': datetime.datetime(2025, 4, 30, 6, 6, 59), 'result': '0.06593710888735793', 'result_long': None, 'result_double': None}] Qualite : 0.06593710888735793 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22529264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22529264_30-04-2025_06_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22529264 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_P22529264_30-04-2025_06_06_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22529292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22529293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22529294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22529295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22529296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22529297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22529298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22529299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22529300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22529301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22529302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22529303, 'pht': 3726}}" where mtr_portfolio_id = 22529264 and dashboard_run_id = 1766131 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`=22529264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177457, 0.06593710888735793, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22529264_30-04-2025_06_06_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22529292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22529293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22529294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22529295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22529296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22529297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22529298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22529299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22529300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22529301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22529302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22529303, '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 = 22529945 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': 2772378, 'mtr_portfolio_id': 22529945, 'created_at': datetime.datetime(2025, 4, 30, 6, 23), 'result': '0.04918859698966567', 'result_long': None, 'result_double': None}] Qualite : 0.04918859698966567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22529945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22529945_30-04-2025_06_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22529945 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_P22529945_30-04-2025_06_23_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22529946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22529947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22529948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22529949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22529950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22529951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22529952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22529953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22529954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22529955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22529956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22529957, 'pht': 3726}}" where mtr_portfolio_id = 22529945 and dashboard_run_id = 1766131 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`=22529945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177458, 0.04918859698966567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22529945_30-04-2025_06_23_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22529946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22529947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22529948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22529949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22529950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22529951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22529952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22529953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22529954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22529955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22529956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22529957, '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 = 22530302 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': 2772414, 'mtr_portfolio_id': 22530302, 'created_at': datetime.datetime(2025, 4, 30, 6, 32, 58), 'result': '0.060488666983580915', 'result_long': None, 'result_double': None}] Qualite : 0.060488666983580915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22530302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22530302_30-04-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22530302 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_P22530302_30-04-2025_06_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22530327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22530328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22530329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22530330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22530331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22530332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22530333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22530334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22530335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22530336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22530337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22530338, 'pht': 3726}}" where mtr_portfolio_id = 22530302 and dashboard_run_id = 1766131 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`=22530302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177459, 0.060488666983580915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22530302_30-04-2025_06_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22530327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22530328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22530329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22530330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22530331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22530332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22530333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22530334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22530335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22530336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22530337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22530338, '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 = 22530537 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': 2772441, 'mtr_portfolio_id': 22530537, 'created_at': datetime.datetime(2025, 4, 30, 6, 50, 59), 'result': '0.05131801428299871', 'result_long': None, 'result_double': None}] Qualite : 0.05131801428299871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22530537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22530537_30-04-2025_06_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22530537 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_P22530537_30-04-2025_06_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22530567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22530568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22530569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22530570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22530571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22530572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22530573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22530574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22530575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22530576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22530577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22530578, 'pht': 3726}}" where mtr_portfolio_id = 22530537 and dashboard_run_id = 1766131 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`=22530537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177460, 0.05131801428299871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22530537_30-04-2025_06_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22530567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22530568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22530569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22530570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22530571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22530572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22530573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22530574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22530575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22530576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22530577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22530578, '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 = 22531077 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': 2772495, 'mtr_portfolio_id': 22531077, 'created_at': datetime.datetime(2025, 4, 30, 7, 2, 58), 'result': '0.038197826946871925', 'result_long': None, 'result_double': None}] Qualite : 0.038197826946871925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22531077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22531077_30-04-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22531077 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_P22531077_30-04-2025_07_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22531081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22531082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22531083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22531084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22531085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22531086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22531087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22531088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22531089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22531090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22531091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22531092, 'pht': 3726}}" where mtr_portfolio_id = 22531077 and dashboard_run_id = 1766131 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`=22531077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177461, 0.038197826946871925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22531077_30-04-2025_07_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22531081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22531082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22531083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22531084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22531085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22531086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22531087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22531088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22531089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22531090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22531091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22531092, '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 = 22531438 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': 2772547, 'mtr_portfolio_id': 22531438, 'created_at': datetime.datetime(2025, 4, 30, 7, 18, 59), 'result': '0.06024818412803325', 'result_long': None, 'result_double': None}] Qualite : 0.06024818412803325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22531438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22531438_30-04-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22531438 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_P22531438_30-04-2025_07_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22531463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22531464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22531465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22531466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22531467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22531468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22531469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22531470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22531471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22531472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22531473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22531474, 'pht': 3726}}" where mtr_portfolio_id = 22531438 and dashboard_run_id = 1766131 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`=22531438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177462, 0.06024818412803325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22531438_30-04-2025_07_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22531463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22531464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22531465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22531466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22531467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22531468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22531469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22531470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22531471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22531472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22531473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22531474, '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 = 22532077 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': 2772616, 'mtr_portfolio_id': 22532077, 'created_at': datetime.datetime(2025, 4, 30, 7, 34, 58), 'result': '0.054385598746861996', 'result_long': None, 'result_double': None}] Qualite : 0.054385598746861996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22532077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22532077_30-04-2025_07_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22532077 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_P22532077_30-04-2025_07_34_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22532102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22532103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22532104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22532105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22532106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22532107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22532108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22532109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22532110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22532111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22532112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22532113, 'pht': 3726}}" where mtr_portfolio_id = 22532077 and dashboard_run_id = 1766131 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`=22532077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177463, 0.054385598746861996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22532077_30-04-2025_07_34_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22532102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22532103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22532104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22532105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22532106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22532107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22532108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22532109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22532110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22532111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22532112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22532113, '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 = 22532565 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': 2772683, 'mtr_portfolio_id': 22532565, 'created_at': datetime.datetime(2025, 4, 30, 7, 48, 58), 'result': '0.03818280418425309', 'result_long': None, 'result_double': None}] Qualite : 0.03818280418425309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22532565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22532565_30-04-2025_07_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22532565 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_P22532565_30-04-2025_07_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22532631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22532632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22532633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22532634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22532635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22532636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22532637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22532638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22532639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22532640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22532641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22532642, 'pht': 3726}}" where mtr_portfolio_id = 22532565 and dashboard_run_id = 1766131 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`=22532565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177464, 0.03818280418425309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22532565_30-04-2025_07_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22532631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22532632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22532633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22532634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22532635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22532636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22532637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22532638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22532639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22532640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22532641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22532642, '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 = 22533018 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': 2772729, 'mtr_portfolio_id': 22533018, 'created_at': datetime.datetime(2025, 4, 30, 8, 3, 30), 'result': '0.05446921799136508', 'result_long': None, 'result_double': None}] Qualite : 0.05446921799136508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22533018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22533018_30-04-2025_08_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22533018 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_P22533018_30-04-2025_08_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22533046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22533047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22533048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22533049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22533050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22533051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22533052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22533053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22533054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22533055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22533056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22533057, 'pht': 3726}}" where mtr_portfolio_id = 22533018 and dashboard_run_id = 1766131 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`=22533018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177465, 0.05446921799136508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22533018_30-04-2025_08_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22533046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22533047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22533048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22533049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22533050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22533051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22533052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22533053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22533054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22533055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22533056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22533057, '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 = 22533642 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': 2772801, 'mtr_portfolio_id': 22533642, 'created_at': datetime.datetime(2025, 4, 30, 8, 18, 57), 'result': '0.03629747576780559', 'result_long': None, 'result_double': None}] Qualite : 0.03629747576780559 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22533642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22533642_30-04-2025_08_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22533642 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_P22533642_30-04-2025_08_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22533649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22533650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22533651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22533652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22533653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22533654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22533655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22533656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22533657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22533658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22533659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22533660, 'pht': 3726}}" where mtr_portfolio_id = 22533642 and dashboard_run_id = 1766131 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`=22533642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177466, 0.03629747576780559, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22533642_30-04-2025_08_18_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22533649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22533650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22533651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22533652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22533653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22533654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22533655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22533656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22533657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22533658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22533659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22533660, '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 = 22534441 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': 2772891, 'mtr_portfolio_id': 22534441, 'created_at': datetime.datetime(2025, 4, 30, 8, 34, 59), 'result': '0.03138220880956816', 'result_long': None, 'result_double': None}] Qualite : 0.03138220880956816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22534441 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22534441_30-04-2025_08_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22534441 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_P22534441_30-04-2025_08_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22534447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22534448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22534449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22534450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22534451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22534452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22534453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22534454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22534455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22534456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22534457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22534458, 'pht': 3726}}" where mtr_portfolio_id = 22534441 and dashboard_run_id = 1766131 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`=22534441 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177467, 0.03138220880956816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22534441_30-04-2025_08_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22534447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22534448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22534449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22534450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22534451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22534452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22534453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22534454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22534455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22534456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22534457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22534458, '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 = 22534867 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': 2772966, 'mtr_portfolio_id': 22534867, 'created_at': datetime.datetime(2025, 4, 30, 8, 49), 'result': '0.03141426918580238', 'result_long': None, 'result_double': None}] Qualite : 0.03141426918580238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22534867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22534867_30-04-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22534867 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_P22534867_30-04-2025_08_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22534895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22534896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22534897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22534898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22534899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22534900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22534901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22534902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22534903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22534904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22534905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22534906, 'pht': 3726}}" where mtr_portfolio_id = 22534867 and dashboard_run_id = 1766131 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`=22534867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177468, 0.03141426918580238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22534867_30-04-2025_08_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22534895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22534896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22534897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22534898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22534899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22534900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22534901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22534902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22534903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22534904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22534905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22534906, '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 = 22535311 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': 2773013, 'mtr_portfolio_id': 22535311, 'created_at': datetime.datetime(2025, 4, 30, 9, 2, 29), 'result': '0.04747541578229103', 'result_long': None, 'result_double': None}] Qualite : 0.04747541578229103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22535311 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22535311_30-04-2025_09_02_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22535311 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_P22535311_30-04-2025_09_02_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22535380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22535381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22535382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22535383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22535384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22535385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22535386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22535387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22535388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22535389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22535390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22535391, 'pht': 3726}}" where mtr_portfolio_id = 22535311 and dashboard_run_id = 1766131 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`=22535311 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177469, 0.04747541578229103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22535311_30-04-2025_09_02_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22535380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22535381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22535382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22535383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22535384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22535385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22535386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22535387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22535388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22535389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22535390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22535391, '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 = 22536575 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': 2773175, 'mtr_portfolio_id': 22536575, 'created_at': datetime.datetime(2025, 4, 30, 9, 49), 'result': '0.06204710417698351', 'result_long': None, 'result_double': None}] Qualite : 0.06204710417698351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22536575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22536575_30-04-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22536575 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_P22536575_30-04-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22536579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22536580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22536581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22536582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22536583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22536584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22536585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22536586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22536587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22536588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22536589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22536590, 'pht': 3726}}" where mtr_portfolio_id = 22536575 and dashboard_run_id = 1766132 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`=22536575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177470, 0.06204710417698351, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22536575_30-04-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22536579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22536580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22536581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22536582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22536583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22536584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22536585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22536586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22536587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22536588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22536589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22536590, '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 = 22537123 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': 2773241, 'mtr_portfolio_id': 22537123, 'created_at': datetime.datetime(2025, 4, 30, 10, 2, 59), 'result': '0.05357646396754504', 'result_long': None, 'result_double': None}] Qualite : 0.05357646396754504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22537123 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22537123_30-04-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22537123 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_P22537123_30-04-2025_10_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22537130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22537131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22537132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22537133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22537134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22537135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22537136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22537137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22537138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22537139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22537140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22537141, 'pht': 3726}}" where mtr_portfolio_id = 22537123 and dashboard_run_id = 1766132 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`=22537123 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177471, 0.05357646396754504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22537123_30-04-2025_10_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22537130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22537131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22537132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22537133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22537134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22537135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22537136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22537137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22537138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22537139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22537140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22537141, '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 = 22537734 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': 2773318, 'mtr_portfolio_id': 22537734, 'created_at': datetime.datetime(2025, 4, 30, 10, 17, 23), 'result': '0.051062241778541156', 'result_long': None, 'result_double': None}] Qualite : 0.051062241778541156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22537734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22537734_30-04-2025_10_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22537734 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_P22537734_30-04-2025_10_17_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22537761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22537762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22537763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22537764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22537765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22537766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22537767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22537768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22537769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22537770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22537771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22537772, 'pht': 3726}}" where mtr_portfolio_id = 22537734 and dashboard_run_id = 1766132 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`=22537734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177472, 0.051062241778541156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22537734_30-04-2025_10_17_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22537761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22537762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22537763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22537764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22537765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22537766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22537767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22537768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22537769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22537770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22537771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22537772, '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 = 22538229 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': 2773365, 'mtr_portfolio_id': 22538229, 'created_at': datetime.datetime(2025, 4, 30, 10, 24, 59), 'result': '0.05049243997179253', 'result_long': None, 'result_double': None}] Qualite : 0.05049243997179253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22538229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22538229_30-04-2025_10_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22538229 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_P22538229_30-04-2025_10_25_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22538253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22538254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22538255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22538256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22538257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22538258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22538259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22538260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22538261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22538262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22538263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22538264, 'pht': 3726}}" where mtr_portfolio_id = 22538229 and dashboard_run_id = 1766132 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`=22538229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10177473, 0.05049243997179253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22538229_30-04-2025_10_25_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22538253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22538254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22538255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22538256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22538257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22538258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22538259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22538260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22538261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22538262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22538263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22538264, '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 (22526515,22528309,22528467,22528725,22529264,22529945,22530302,22530537,22531077,22531438,22532077,22532565,22533018,22533642,22534441,22534867,22535311,22536575,22537123,22537734,22538229) result : ((1354545782,), (1354545829,), (1354545877,), (1354546754,), (1354550988,), (1354551694,), (1354551721,), (1354552387,), (1354577390,), (1354577772,), (1354577795,), (1354577796,), (1354577797,), (1354577821,), (1354577823,), (1354577908,), (1354577910,), (1354577911,), (1354577912,), (1354577935,), (1354577937,), (1354577939,), (1354577941,), (1354577943,), (1354577945,), (1354577970,), (1354578010,), (1354578012,), (1354578116,), (1354578359,), (1354578453,), (1354578455,), (1354578458,), (1354578461,), (1354578485,), (1354578521,), (1354578523,), (1354578546,), (1354578550,), (1354578579,), (1354578581,), (1354578583,), (1354578622,), (1354578625,), (1354578629,), (1354578667,), (1354578668,), (1354578670,), (1354578671,), (1354578696,), (1354578728,), (1354578731,), (1354578734,), (1354578759,), (1354578762,), (1354578792,), (1354578793,), (1354578838,), (1354578840,), (1354578843,), (1354578849,), (1354578851,), (1354578873,), (1354578875,), (1354578876,), (1354578878,), (1354578899,), (1354578904,), (1354578906,), (1354578908,), (1354578911,), (1354578912,), (1354578931,), (1354578934,), (1354578936,), (1354578938,), (1354578994,), (1354578990,), (1354578991,), (1354578992,), (1354579022,), (1354579025,), (1354579029,), (1354579031,), (1354579033,), (1354579035,), (1354579057,), (1354579059,), (1354579060,), (1354579061,), (1354579062,), (1354579095,), (1354579097,), (1354579098,), (1354579099,), (1354579119,), (1354579123,), (1354579126,), (1354579128,), (1354579131,), (1354579158,), (1354579161,), (1354579170,), (1354579178,), (1354579180,), (1354579209,), (1354579212,), (1354579216,), (1354579219,), (1354579242,), (1354579247,), (1354579248,), (1354579250,), (1354579273,), (1354579277,), (1354579310,), (1354579316,), (1354579337,), (1354579354,), (1354579371,), (1354579399,), (1354579402,), (1354579405,), (1354579428,), (1354579430,), (1354579432,), (1354579434,), (1354579456,), (1354579457,), (1354579459,), (1354579480,), (1354579482,), (1354579486,), (1354579525,), (1354579516,), (1354579518,), (1354579520,), (1354579523,), (1354579547,), (1354579551,), (1354579554,), (1354579557,), (1354579583,), (1354579611,), (1354579614,), (1354579619,), (1354579622,), (1354579662,), (1354579665,), (1354579669,), (1354579696,), (1354579698,), (1354579700,), (1354579949,), (1354579972,), (1354580001,), (1354580352,), (1354580378,), (1354580406,), (1354580435,), (1354580471,), (1354580755,), (1354580782,), (1354580808,), (1354580833,), (1354580878,), (1354580881,), (1354580884,), (1354580887,), (1354581093,), (1354581117,), (1354581145,), (1354581340,), (1354581364,), (1354581397,), (1354581445,), (1354585701,), (1354586584,), (1354586588,), (1354586593,), (1354586596,), (1354586598,), (1354586618,), (1354586619,), (1354586644,), (1354586669,), (1354586701,), (1354586728,), (1354587005,), (1354587033,), (1354587047,), (1354587052,), (1354587231,), (1354587235,), (1354587238,), (1354587241,), (1354587265,), (1354587272,), (1354587274,), (1354587277,), (1354587297,), (1354587299,), (1354587325,), (1354587326,), (1354587327,), (1354587328,), (1354587360,), (1354587363,), (1354587366,), (1354587368,), (1354587585,), (1354587588,), (1354587590,), (1354587591,), (1354587842,), (1354587873,), (1354587876,), (1354587903,), (1354587904,), (1354587905,), (1354587906,), (1354587938,), (1354587948,), (1354587951,), (1354587980,), (1354587984,), (1354587986,), (1354587988,), (1354587989,), (1354588016,), (1354588022,), (1354588028,), (1354588055,), (1354588057,), (1354588059,), (1354588061,), (1354588079,), (1354588084,), (1354588086,), (1354588089,), (1354588108,), (1354588112,), (1354588115,), (1354588138,), (1354588140,), (1354588149,), (1354588170,), (1354588174,), (1354588196,), (1354588199,), (1354588200,), (1354588201,), (1354588203,), (1354588218,), (1354588221,), (1354588224,), (1354588227,), (1354588230,), (1354588259,), (1354588261,), (1354588262,), (1354588325,), (1354588311,), (1354588315,), (1354588319,), (1354588322,), (1354588341,), (1354588351,), (1354588355,), (1354588377,), (1354588380,), (1354588382,), (1354588384,), (1354588386,), (1354588427,), (1354588431,), (1354588435,), (1354588456,), (1354588459,), (1354588462,), (1354588489,), (1354588492,), (1354588495,), (1354588498,), (1354588500,), (1354588529,), (1354588532,), (1354588533,), (1354588535,), (1354588562,), (1354588565,), (1354588572,), (1354588603,), (1354588605,), (1354588636,), (1354588642,), (1354588651,), (1354588703,), (1354588729,), (1354588751,), (1354588753,), (1354588755,), (1354588757,), (1354588762,), (1354588782,), (1354588785,), (1354588787,), (1354588790,), (1354588812,), (1354588816,), (1354588819,), (1354588822,), (1354588825,), (1354588849,), (1354588851,), (1354588854,), (1354588904,), (1354588887,), (1354588895,), (1354588900,), (1354588934,), (1354588937,), (1354588939,), (1354588941,), (1354588943,), (1354588946,), (1354588970,), (1354588975,), (1354588979,), (1354588983,), (1354588986,), (1354588989,), (1354589015,), (1354589016,), (1354589063,), (1354589066,), (1354589068,), (1354589070,), (1354589072,), (1354589131,), (1354589134,), (1354589136,), (1354589138,), (1354589140,), (1354589143,), (1354589178,), (1354589181,), (1354589183,), (1354589222,), (1354589225,), (1354589228,), (1354589230,), (1354589235,), (1354589237,), (1354589266,), (1354589267,), (1354589268,), (1354589270,), (1354589273,), (1354589305,), (1354589308,), (1354589310,), (1354589343,), (1354589345,), (1354589347,), (1354589349,), (1354589351,), (1354589352,), (1354589372,), (1354589376,), (1354589378,), (1354589380,), (1354589382,), (1354589386,), (1354589408,), (1354589412,), (1354589418,), (1354589424,), (1354589828,), (1354589858,), (1354589891,), (1354589926,), (1354589961,), (1354590270,), (1354590158,), (1354590176,), (1354590198,), (1354590236,), (1354590665,), (1354590700,), (1354590758,), (1354590799,), (1354590833,), (1354590865,), (1354591120,), (1354591146,), (1354591174,), (1354591202,), (1354591229,), (1354591523,), (1354591550,), (1354591700,), (1354591714,), (1354591745,), (1354591760,), (1354591766,), (1354591840,), (1354591842,), (1354591846,), (1354591851,), (1354591855,), (1354591860,), (1354591896,), (1354591901,), (1354591907,), (1354591911,), (1354591915,), (1354591950,), (1354591954,), (1354591957,), (1354591961,), (1354592008,), (1354592011,), (1354592015,), (1354592019,), (1354592053,), (1354592074,), (1354592078,), (1354592091,), (1354592102,), (1354592162,), (1354592165,), (1354592192,), (1354592216,), (1354592219,), (1354592252,), (1354592256,), (1354592260,), (1354592288,), (1354592292,), (1354592296,), (1354592336,), (1354592339,), (1354592342,), (1354592344,), (1354592370,), (1354592373,), (1354592375,), (1354592381,), (1354592433,), (1354592420,), (1354592423,), (1354592425,), (1354592428,), (1354592461,), (1354592464,), (1354592504,), (1354592506,), (1354592511,), (1354592516,), (1354592518,), (1354592565,), (1354592588,), (1354592595,), (1354592615,), (1354592672,), (1354592676,), (1354592680,), (1354592684,), (1354592731,), (1354592750,), (1354592764,), (1354592781,), (1354592859,), (1354592862,), (1354592866,), (1354592965,), (1354593016,), (1354593051,), (1354593079,), (1354593106,), (1354593373,), (1354593380,), (1354593396,), (1354593572,), (1354593580,), (1354593586,), (1354593589,), (1354593696,), (1354593700,), (1354593866,), (1354593891,), (1354594012,), (1354594020,), (1354594024,), (1354594027,), (1354594057,), (1354594061,), (1354594064,), (1354594066,), (1354594069,), (1354594092,), (1354594096,), (1354594100,), (1354594103,), (1354594106,), (1354594182,), (1354594179,), (1354594236,), (1354594245,), (1354594249,), (1354594254,), (1354594300,), (1354594303,), (1354594306,), (1354594309,), (1354594313,), (1354594365,), (1354594369,), (1354594381,), (1354594385,), (1354594694,), (1354594727,), (1354594793,), (1354594946,), (1354594950,), (1354594954,), (1354594957,), (1354594982,), (1354594984,), (1354594987,), (1354594990,), (1354594993,), (1354595031,), (1354595032,), (1354595038,), (1354595044,), (1354595089,), (1354595358,), (1354595363,), (1354595437,), (1354595444,), (1354595472,), (1354595594,), (1354595508,), (1354595512,), (1354595515,), (1354595590,), (1354595612,), (1354595616,), (1354595621,), (1354595626,), (1354595628,), (1354595631,), (1354595651,), (1354595655,), (1354595659,), (1354595663,), (1354595667,), (1354595711,), (1354595720,), (1354595729,), (1354595742,), (1354595745,), (1354595747,), (1354595825,), (1354595828,), (1354595863,), (1354596048,), (1354596053,), (1354596059,), (1354596063,), (1354596066,), (1354596111,), (1354596150,), (1354596156,), (1354596159,), (1354596161,), (1354596163,), (1354596197,), (1354596203,), (1354596205,), (1354596229,), (1354596233,), (1354596238,), (1354596242,), (1354596246,), (1354596265,), (1354596269,), (1354596274,), (1354596280,), (1354596286,), (1354596340,), (1354596356,), (1354596367,), (1354596369,), (1354596372,), (1354596376,), (1354596463,), (1354596491,), (1354596530,), (1354597030,), (1354597060,), (1354597111,), (1354597135,), (1354597337,), (1354597344,), (1354597346,), (1354597402,), (1354597387,), (1354597607,), (1354597652,), (1354597684,), (1354598368,), (1354598418,), (1354598470,), (1354598537,), (1354598594,), (1354598647,), (1354599181,), (1354599244,), (1354599313,), (1354599369,), (1354599402,), (1354599700,), (1354599726,), (1354599729,), (1354599846,), (1354599879,), (1354599911,), (1354599943,), (1354600390,), (1354600434,), (1354600472,), (1354600977,), (1354600980,), (1354600986,), (1354601018,), (1354601071,), (1354601302,), (1354601328,), (1354601341,), (1354601348,), (1354601379,), (1354601383,), (1354601388,), (1354601391,), (1354601495,), (1354601507,), (1354601529,), (1354601578,), (1354601616,), (1354601658,), (1354601661,), (1354601668,), (1354601704,), (1354601706,), (1354601710,), (1354601744,), (1354601747,), (1354601749,), (1354601753,), (1354601756,), (1354601780,), (1354601782,), (1354601785,), (1354602162,), (1354602297,), (1354602300,), (1354602337,), (1354602342,), (1354602345,), (1354602385,), (1354602388,), (1354602458,), (1354602463,), (1354602497,), (1354602501,), (1354602513,), (1354602517,), (1354602521,), (1354602585,), (1354602590,), (1354602598,), (1354602607,), (1354602654,), (1354602661,), (1354602671,), (1354602677,), (1354602683,), (1354602704,), (1354602708,), (1354602717,), (1354602722,), (1354602735,), (1354602797,), (1354602802,), (1354602808,), (1354602812,), (1354602847,), (1354602851,), (1354602895,), (1354602898,), (1354602900,), (1354602902,), (1354602905,), (1354602909,), (1354602936,), (1354602946,), (1354602955,), (1354602961,), (1354603042,), (1354603019,), (1354603031,), (1354603033,), (1354603036,), (1354603074,), (1354603077,), (1354603113,), (1354603123,), (1354603127,), (1354603164,), (1354603169,), (1354603172,), (1354603175,), (1354603206,), (1354603209,), (1354603212,), (1354603261,), (1354603263,), (1354603266,), (1354603269,), (1354603294,), (1354603298,), (1354603301,), (1354603338,), (1354603341,), (1354603344,), (1354603347,), (1354603351,), (1354603388,), (1354603434,), (1354603441,), (1354603515,), (1354603540,), (1354603545,), (1354603548,), (1354603553,), (1354603557,), (1354603561,), (1354603579,), (1354603581,), (1354603582,), (1354603618,), (1354603622,), (1354603626,), (1354603656,), (1354603659,), (1354603661,), (1354603664,), (1354603699,), (1354603693,), (1354603697,), (1354603728,), (1354603736,), (1354603739,), (1354603741,), (1354603800,), (1354603809,), (1354603819,), (1354603914,), (1354604010,), (1354604019,), (1354604023,), (1354604025,), (1354604028,), (1354604098,), (1354604155,), (1354604157,), (1354604159,), (1354604162,), (1354604168,), (1354604188,), (1354604190,), (1354604194,), (1354604197,), (1354604199,), (1354604202,), (1354604227,), (1354604236,), (1354604239,), (1354604243,), (1354604268,), (1354604272,), (1354604368,), (1354604394,), (1354604402,), (1354604505,), (1354604508,), (1354604511,), (1354604535,), (1354604538,), (1354604723,), (1354604724,), (1354604753,), (1354604785,), (1354604833,), (1354604857,), (1354604897,), (1354604900,), (1354604903,), (1354604906,), (1354604908,), (1354605402,), (1354605409,), (1354605457,), (1354605476,), (1354605827,), (1354610524,), (1354610528,), (1354610532,), (1354610534,), (1354610565,), (1354610576,), (1354610577,), (1354610619,), (1354610624,), (1354610670,), (1354610685,), (1354610693,), (1354610711,), (1354610721,), (1354610837,), (1354610842,), (1354610853,), (1354610856,), (1354610977,), (1354610982,), (1354610983,), (1354610986,), (1354611030,), (1354611038,), (1354611041,), (1354611152,), (1354611158,), (1354611172,), (1354611178,), (1354611182,), (1354611208,), (1354611214,), (1354611218,), (1354611223,), (1354611226,), (1354611229,), (1354611271,), (1354611276,), (1354611280,), (1354611284,), (1354611400,), (1354611428,), (1354611455,), (1354611479,), (1354611775,), (1354611777,), (1354611780,), (1354611782,), (1354611784,), (1354611787,), (1354611972,), (1354611983,), (1354611990,), (1354611993,), (1354611999,), (1354612001,), (1354612051,), (1354612054,), (1354612123,), (1354612115,), (1354612118,), (1354612301,), (1354612306,), (1354612310,), (1354612313,), (1354612317,), (1354612433,), (1354612437,), (1354612443,), (1354612450,), (1354612497,), (1354612501,), (1354612503,), (1354612505,), (1354612515,), (1354612571,), (1354612615,), (1354612648,), (1354612791,), (1354612801,), (1354612806,), (1354612985,), (1354612991,), (1354612995,), (1354613009,), (1354613038,), (1354613304,), (1354613316,), (1354613781,), (1354613855,), (1354613926,), (1354614017,), (1354614021,), (1354614073,), (1354614075,), (1354614078,), (1354614084,), (1354614160,), (1354614599,), (1354614627,), (1354614659,), (1354614690,), (1354614719,), (1354615174,), (1354615118,), (1354615626,), (1354615656,), (1354615700,), (1354615758,), (1354615810,), (1354616333,), (1354616386,), (1354616443,), (1354616541,), (1354616617,), (1354616809,), (1354616812,), (1354616816,), (1354616818,), (1354617100,), (1354617106,), (1354617109,), (1354617113,), (1354617262,), (1354617266,), (1354617272,), (1354617277,), (1354617279,), (1354617311,), (1354617316,), (1354617325,), (1354617328,), (1354617331,), (1354617366,), (1354617370,), (1354617429,), (1354617433,), (1354617437,), (1354617440,), (1354617443,), (1354617445,), (1354617468,), (1354617472,), (1354617482,), (1354617488,), (1354617575,), (1354617578,), (1354617581,), (1354617584,), (1354617641,), (1354617651,), (1354617655,), (1354617661,), (1354617777,), (1354617782,), (1354617788,), (1354617793,), (1354618002,), (1354618106,), (1354618107,), (1354618111,), (1354618115,), (1354618238,), (1354618330,), (1354618337,), (1354618342,), (1354618347,), (1354618352,), (1354618477,), (1354618466,), (1354618471,), (1354618475,), (1354618562,), (1354618567,), (1354618570,), (1354618573,), (1354618579,), (1354618628,), (1354618636,), (1354618644,), (1354618649,), (1354618652,), (1354618682,), (1354618689,), (1354618694,), (1354618698,), (1354618704,), (1354618709,), (1354618784,), (1354618789,), (1354618793,), (1354618798,), (1354618856,), (1354618858,), (1354618862,), (1354618866,), (1354618868,), (1354618919,), (1354618924,), (1354618927,), (1354618985,), (1354619027,), (1354619031,), (1354619035,), (1354619040,), (1354619043,), (1354619067,), (1354619072,), (1354619076,), (1354619080,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30042025': {'nb_upload': 41, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22538229]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856] map_info['map_portfolio_photo'] : {22538229: [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856, 1354618798, 1354618793, 1354618789, 1354618784, 1354618709, 1354618704, 1354618698, 1354618694, 1354618689, 1354618682, 1354618652, 1354618649, 1354618644, 1354618636, 1354618628, 1354618579, 1354618573, 1354618570, 1354618567, 1354618562, 1354618475, 1354618471, 1354618466]} final : True mtd_id 4302 list_pids : [1354619080, 1354619076, 1354619072, 1354619067, 1354619043, 1354619040, 1354619035, 1354619031, 1354619027, 1354618985, 1354618927, 1354618924, 1354618919, 1354618868, 1354618866, 1354618862, 1354618858, 1354618856] Looping around the photos to save general results len do output : 1 /22538229Didn'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, '2773365') ('4302', '22538229', '1354619080', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619076', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619072', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619067', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619043', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619040', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619035', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619031', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354619027', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618985', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618927', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618924', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618919', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618868', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618866', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618862', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618858', None, None, None, None, None, '2773365') ('4302', None, None, None, None, None, None, None, '2773365') ('4302', '22538229', '1354618856', None, None, None, None, None, '2773365') 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, '22538229', 'None', None, None, None, None, '2773365'), ('4302', '22538229', '1354619080', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619076', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619072', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619067', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619043', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619040', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619035', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619031', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354619027', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618985', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618927', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618924', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618919', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618868', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618866', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618862', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618858', None, None, None, None, None, '2773365'), ('4302', '22538229', '1354618856', None, None, None, None, None, '2773365')] time used for this insertion : 0.01638960838317871 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3228590488433838 time spend to save output : 0.016670703887939453 total time spend for step 5 : 1.3395297527313232 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 (2773365) 2.55user 2.38system 0:10.62elapsed 46%CPU (0avgtext+0avgdata 161024maxresident)k 41488inputs+15864outputs (248major+70903minor)pagefaults 0swaps