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 : 3360606 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 (4132258) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4132258) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979969 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4132258'] with mtr_portfolio_ids : ['28979969'] and first list_photo_ids : [] new path : /proc/3360606/ Name: python3 Umask: 0002 State: R (running) Tgid: 3360606 Ngid: 0 Pid: 3360606 PPid: 3360602 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3360606 NSpid: 3360606 NSpgid: 3359904 NSsid: 3359904 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97604 kB VmRSS: 97604 kB RssAnon: 59908 kB RssFile: 37696 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 560 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 55 nonvoluntary_ctxt_switches: 119 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3360606', 'Ngid': '0', 'Pid': '3360606', 'PPid': '3360602', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3360606', 'NSpid': '3360606', 'NSpgid': '3359904', 'NSsid': '3359904', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97604 kB', 'VmRSS': '97604 kB', 'RssAnon': '59908 kB', 'RssFile': '37696 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '560 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '55', 'nonvoluntary_ctxt_switches': '119'} ('datou_batch_current', '3360606', '1106908', '0', '1106884', '865636', '97604', b'', 'marlene', '4132258') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28979969) 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 (4132258 ) ) 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 (28979969) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396538914, 'portfolio_id': 28979969}, {'photo_id': 1396538912, 'portfolio_id': 28979969}, {'photo_id': 1396538910, 'portfolio_id': 28979969}, {'photo_id': 1396538907, 'portfolio_id': 28979969}, {'photo_id': 1396538879, 'portfolio_id': 28979969}, {'photo_id': 1396538871, 'portfolio_id': 28979969}, {'photo_id': 1396538867, 'portfolio_id': 28979969}, {'photo_id': 1396538864, 'portfolio_id': 28979969}, {'photo_id': 1396538863, 'portfolio_id': 28979969}, {'photo_id': 1396538834, 'portfolio_id': 28979969}, {'photo_id': 1396538832, 'portfolio_id': 28979969}, {'photo_id': 1396538830, 'portfolio_id': 28979969}, {'photo_id': 1396538829, 'portfolio_id': 28979969}, {'photo_id': 1396538828, 'portfolio_id': 28979969}, {'photo_id': 1396538826, 'portfolio_id': 28979969}, {'photo_id': 1396538791, 'portfolio_id': 28979969}, {'photo_id': 1396538788, 'portfolio_id': 28979969}, {'photo_id': 1396538785, 'portfolio_id': 28979969}, {'photo_id': 1396538769, 'portfolio_id': 28979969}, {'photo_id': 1396538764, 'portfolio_id': 28979969}, {'photo_id': 1396538759, 'portfolio_id': 28979969}, {'photo_id': 1396538753, 'portfolio_id': 28979969}, {'photo_id': 1396538748, 'portfolio_id': 28979969}, {'photo_id': 1396538745, 'portfolio_id': 28979969}, {'photo_id': 1396538711, 'portfolio_id': 28979969}, {'photo_id': 1396538709, 'portfolio_id': 28979969}, {'photo_id': 1396538707, 'portfolio_id': 28979969}, {'photo_id': 1396538704, 'portfolio_id': 28979969}, {'photo_id': 1396538682, 'portfolio_id': 28979969}, {'photo_id': 1396538679, 'portfolio_id': 28979969}, {'photo_id': 1396538677, 'portfolio_id': 28979969}, {'photo_id': 1396538675, 'portfolio_id': 28979969}, {'photo_id': 1396538648, 'portfolio_id': 28979969}, {'photo_id': 1396538646, 'portfolio_id': 28979969}, {'photo_id': 1396538643, 'portfolio_id': 28979969}, {'photo_id': 1396538642, 'portfolio_id': 28979969}, {'photo_id': 1396538641, 'portfolio_id': 28979969}, {'photo_id': 1396538640, 'portfolio_id': 28979969}, {'photo_id': 1396538608, 'portfolio_id': 28979969}, {'photo_id': 1396538607, 'portfolio_id': 28979969}, {'photo_id': 1396538605, 'portfolio_id': 28979969}, {'photo_id': 1396538601, 'portfolio_id': 28979969}, {'photo_id': 1396538598, 'portfolio_id': 28979969}, {'photo_id': 1396538585, 'portfolio_id': 28979969}, {'photo_id': 1396538505, 'portfolio_id': 28979969}, {'photo_id': 1396538503, 'portfolio_id': 28979969}, {'photo_id': 1396538501, 'portfolio_id': 28979969}, {'photo_id': 1396538468, 'portfolio_id': 28979969}, {'photo_id': 1396538463, 'portfolio_id': 28979969}, {'photo_id': 1396538461, 'portfolio_id': 28979969}, {'photo_id': 1396538459, 'portfolio_id': 28979969}, {'photo_id': 1396538435, 'portfolio_id': 28979969}, {'photo_id': 1396538432, 'portfolio_id': 28979969}, {'photo_id': 1396538429, 'portfolio_id': 28979969}, {'photo_id': 1396538426, 'portfolio_id': 28979969}, {'photo_id': 1396538398, 'portfolio_id': 28979969}, {'photo_id': 1396538394, 'portfolio_id': 28979969}, {'photo_id': 1396538391, 'portfolio_id': 28979969}, {'photo_id': 1396538389, 'portfolio_id': 28979969}, {'photo_id': 1396538360, 'portfolio_id': 28979969}, {'photo_id': 1396538358, 'portfolio_id': 28979969}, {'photo_id': 1396538356, 'portfolio_id': 28979969}] map_portfolio_id_photo_id: {28979969: [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826, 1396538791, 1396538788, 1396538785, 1396538769, 1396538764, 1396538759, 1396538753, 1396538748, 1396538745, 1396538711, 1396538709, 1396538707, 1396538704, 1396538682, 1396538679, 1396538677, 1396538675, 1396538648, 1396538646, 1396538643, 1396538642, 1396538641, 1396538640, 1396538608, 1396538607, 1396538605, 1396538601, 1396538598, 1396538585, 1396538505, 1396538503, 1396538501, 1396538468, 1396538463, 1396538461, 1396538459, 1396538435, 1396538432, 1396538429, 1396538426, 1396538398, 1396538394, 1396538391, 1396538389, 1396538360, 1396538358, 1396538356]} ##### 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.018959999084472656 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Nov 28 02:44:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28979969) 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 : 28979969 get user id for portfolio 28979969 get sub ptf for main ptf 28979969, type 3726 and hashtags ['plastique', 'Carton_brun', 'environnement', 'flou', 'mal_croppe', 'Teint_Dans_La_Masse', 'Carton_gris', 'kraft', 'papier', 'metal', 'autre_refus', 'cartonnette'] 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`=28979969 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_brun','environnement','flou','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','papier','metal','autre_refus','cartonnette')) 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`=28979969 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_brun','environnement','flou','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','papier','metal','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28979969, 'sub_port_id': 28979978, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687197, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'metal': {'main_port_id': 28979969, 'sub_port_id': 28979979, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687198, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'Carton_brun': {'main_port_id': 28979969, 'sub_port_id': 28979980, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687199, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'environnement': {'main_port_id': 28979969, 'sub_port_id': 28979981, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687200, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'papier': {'main_port_id': 28979969, 'sub_port_id': 28979982, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687201, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'plastique': {'main_port_id': 28979969, 'sub_port_id': 28979983, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687202, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'autre_refus': {'main_port_id': 28979969, 'sub_port_id': 28979984, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687203, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'flou': {'main_port_id': 28979969, 'sub_port_id': 28979985, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687204, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'cartonnette': {'main_port_id': 28979969, 'sub_port_id': 28979986, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687205, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'kraft': {'main_port_id': 28979969, 'sub_port_id': 28979987, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687206, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'Carton_gris': {'main_port_id': 28979969, 'sub_port_id': 28979988, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687207, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}, 'mal_croppe': {'main_port_id': 28979969, 'sub_port_id': 28979989, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687208, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28979978 , 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=28979969 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 (28979978) result : ((1396538567,), (1396538652,), (1396538653,), (1396538917,), (1396538918,), (1396538919,), (1396538920,), (1396538921,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979979 , 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=28979969 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 (28979979) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979980 , 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=28979969 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 (28979980) result : ((1396538568,), (1396538569,), (1396538570,), (1396538661,), (1396538927,), (1396538928,), (1396538929,), (1396538930,), (1396538931,), (1396538932,), (1396538933,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979981 , 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=28979969 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 (28979981) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979982 , 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=28979969 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 (28979982) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979983 , 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=28979969 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 (28979983) result : ((1396538754,), (1396538755,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979984 , 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=28979969 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 (28979984) result : ((1396538655,), (1396538751,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979985 , 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=28979969 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 (28979985) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979986 , 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=28979969 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 (28979986) result : ((1396538659,), (1396538924,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979987 , 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=28979969 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 (28979987) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979988 , 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=28979969 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 (28979988) result : ((1396538656,), (1396538657,), (1396538671,), (1396538672,), (1396538723,), (1396538724,), (1396538752,), (1396538922,), (1396538923,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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 28979989 , 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=28979969 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 (28979989) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28979969) result : ((1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) 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`=28979969 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_brun','environnement','flou','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','papier','metal','autre_refus','cartonnette')) 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`=28979969 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_brun','environnement','flou','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','papier','metal','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28979969, 'sub_port_id': 28979991, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687209, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'metal': {'main_port_id': 28979969, 'sub_port_id': 28979992, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687210, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'Carton_brun': {'main_port_id': 28979969, 'sub_port_id': 28979993, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687211, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'environnement': {'main_port_id': 28979969, 'sub_port_id': 28979994, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687212, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'papier': {'main_port_id': 28979969, 'sub_port_id': 28979995, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687213, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'plastique': {'main_port_id': 28979969, 'sub_port_id': 28979996, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687214, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'autre_refus': {'main_port_id': 28979969, 'sub_port_id': 28979997, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687215, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'flou': {'main_port_id': 28979969, 'sub_port_id': 28979998, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687216, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'cartonnette': {'main_port_id': 28979969, 'sub_port_id': 28979999, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687217, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'kraft': {'main_port_id': 28979969, 'sub_port_id': 28980000, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687218, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'Carton_gris': {'main_port_id': 28979969, 'sub_port_id': 28980001, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687219, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}, 'mal_croppe': {'main_port_id': 28979969, 'sub_port_id': 28980002, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19687220, 'last_updated_at': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 2, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 2, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28979991,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979978 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28979992,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979979 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28979993,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979980 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28979994,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979981 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28979995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979982 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28979996,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979983 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28979997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979984 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28979998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979985 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28979999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979986 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28980000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979987 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28980001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979988 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28980002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28979989 lien utilise dans velours : https://marlene.fotonower.com/velours/28979991,28979992,28979993,28979994,28979995,28979996,28979997,28979998,28979999,28980000,28980001,28980002?tags=Teint_Dans_La_Masse,metal,Carton_brun,environnement,papier,plastique,autre_refus,flou,cartonnette,kraft,Carton_gris,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28979969]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826] map_info['map_portfolio_photo'] : {28979969: [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826, 1396538791, 1396538788, 1396538785, 1396538769, 1396538764, 1396538759, 1396538753, 1396538748, 1396538745, 1396538711, 1396538709, 1396538707, 1396538704, 1396538682, 1396538679, 1396538677, 1396538675, 1396538648, 1396538646, 1396538643, 1396538642, 1396538641, 1396538640, 1396538608, 1396538607, 1396538605, 1396538601, 1396538598, 1396538585, 1396538505, 1396538503, 1396538501, 1396538468, 1396538463, 1396538461, 1396538459, 1396538435, 1396538432, 1396538429, 1396538426, 1396538398, 1396538394, 1396538391, 1396538389, 1396538360, 1396538358, 1396538356]} final : False mtd_id 4302 list_pids : [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826] Looping around the photos to save general results len do output : 1 /28979969. 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, '4132258') ('4302', '28979969', '1396538914', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538912', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538910', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538907', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538879', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538871', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538867', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538864', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538863', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538834', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538832', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538830', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538829', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538828', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538826', None, None, None, None, None, '4132258') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '28979969', "{'Teint_Dans_La_Masse': 28979978, 'metal': 28979979, 'Carton_brun': 28979980, 'environnement': 28979981, 'papier': 28979982, 'plastique': 28979983, 'autre_refus': 28979984, 'flou': 28979985, 'cartonnette': 28979986, 'kraft': 28979987, 'Carton_gris': 28979988, 'mal_croppe': 28979989}", None, None, None, None, '4132258'), ('4302', '28979969', '1396538914', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538912', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538910', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538907', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538879', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538871', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538867', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538864', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538863', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538834', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538832', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538830', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538829', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538828', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538826', None, None, None, None, None, '4132258')] time used for this insertion : 0.016595125198364258 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.801724910736084 time spend to save output : 0.016919851303100586 total time spend for step 1 : 1.8186447620391846 step2:final Fri Nov 28 02:44:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (28979969) 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 28979969 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396538360,1396538358,1396538356,1396538398,1396538394,1396538391,1396538389,1396538435,1396538432,1396538429,1396538426,1396538468,1396538463,1396538461,1396538459,1396538505,1396538503,1396538501,1396538608,1396538607,1396538605,1396538601,1396538598,1396538648,1396538585,1396538646,1396538643,1396538642,1396538641,1396538640,1396538682,1396538679,1396538677,1396538675,1396538711,1396538709,1396538707,1396538704,1396538769,1396538764,1396538759,1396538753,1396538748,1396538745,1396538791,1396538788,1396538785,1396538834,1396538832,1396538830,1396538829,1396538828,1396538826,1396538879,1396538871,1396538867,1396538864,1396538863,1396538914,1396538912,1396538910,1396538907); 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([28979969]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} new output for save of step final : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826] map_info['map_portfolio_photo'] : {28979969: [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826, 1396538791, 1396538788, 1396538785, 1396538769, 1396538764, 1396538759, 1396538753, 1396538748, 1396538745, 1396538711, 1396538709, 1396538707, 1396538704, 1396538682, 1396538679, 1396538677, 1396538675, 1396538648, 1396538646, 1396538643, 1396538642, 1396538641, 1396538640, 1396538608, 1396538607, 1396538605, 1396538601, 1396538598, 1396538585, 1396538505, 1396538503, 1396538501, 1396538468, 1396538463, 1396538461, 1396538459, 1396538435, 1396538432, 1396538429, 1396538426, 1396538398, 1396538394, 1396538391, 1396538389, 1396538360, 1396538358, 1396538356]} final : False mtd_id 4302 list_pids : [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826] Looping around the photos to save general results len do output : 15 /1396538914.Didn't retrieve data . /1396538912.Didn't retrieve data . /1396538910.Didn't retrieve data . /1396538907.Didn't retrieve data . /1396538879.Didn't retrieve data . /1396538871.Didn't retrieve data . /1396538867.Didn't retrieve data . /1396538864.Didn't retrieve data . /1396538863.Didn't retrieve data . /1396538834.Didn't retrieve data . /1396538832.Didn't retrieve data . /1396538830.Didn't retrieve data . /1396538829.Didn't retrieve data . /1396538828.Didn't retrieve data . /1396538826.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, '4132258') ('4302', '28979969', '1396538914', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538912', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538910', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538907', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538879', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538871', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538867', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538864', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538863', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538834', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538832', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538830', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538829', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538828', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538826', None, None, None, None, None, '4132258') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '28979969', '1396538914', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538912', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538910', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538907', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538879', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538871', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538867', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538864', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538863', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538834', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538832', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538830', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538829', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538828', '0.03175755029275077', None, None, None, None, '4132258'), ('4302', '28979969', '1396538826', '0.03175755029275077', None, None, None, None, '4132258')] time used for this insertion : 0.015382766723632812 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08018827438354492 time spend to save output : 0.016089677810668945 total time spend for step 2 : 0.09627795219421387 step3:velours_tree Fri Nov 28 02:44:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28979969: [{'Teint_Dans_La_Masse': 28979978, 'metal': 28979979, 'Carton_brun': 28979980, 'environnement': 28979981, 'papier': 28979982, 'plastique': 28979983, 'autre_refus': 28979984, 'flou': 28979985, 'cartonnette': 28979986, 'kraft': 28979987, 'Carton_gris': 28979988, 'mal_croppe': 28979989}]} input_args_next_step : {28979969: ()} output_args : {28979969: [{'Teint_Dans_La_Masse': 28979978, 'metal': 28979979, 'Carton_brun': 28979980, 'environnement': 28979981, 'papier': 28979982, 'plastique': 28979983, 'autre_refus': 28979984, 'flou': 28979985, 'cartonnette': 28979986, 'kraft': 28979987, 'Carton_gris': 28979988, 'mal_croppe': 28979989}]} args : 28979969 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 28979978, 'metal': 28979979, 'Carton_brun': 28979980, 'environnement': 28979981, 'papier': 28979982, 'plastique': 28979983, 'autre_refus': 28979984, 'flou': 28979985, 'cartonnette': 28979986, 'kraft': 28979987, 'Carton_gris': 28979988, 'mal_croppe': 28979989},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28979969) 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([28979969]) 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.2690608501434326 time spend to save output : 3.910064697265625e-05 total time spend for step 3 : 0.2690999507904053 step4:send_mail_cod Fri Nov 28 02:44:32 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 : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} input_args_next_step : {1396538914: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538914 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538912 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538910 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538907 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538879 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538871 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538867 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538864 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538863 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538834 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538832 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538830 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538829 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538828 depend.output_id : 0 input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ()} output_args : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',)} args : 1396538826 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 : {28979969: [{'Teint_Dans_La_Masse': 28979978, 'metal': 28979979, 'Carton_brun': 28979980, 'environnement': 28979981, 'papier': 28979982, 'plastique': 28979983, 'autre_refus': 28979984, 'flou': 28979985, 'cartonnette': 28979986, 'kraft': 28979987, 'Carton_gris': 28979988, 'mal_croppe': 28979989}]} input_args_next_step : {1396538914: ('0.03175755029275077',), 1396538912: ('0.03175755029275077',), 1396538910: ('0.03175755029275077',), 1396538907: ('0.03175755029275077',), 1396538879: ('0.03175755029275077',), 1396538871: ('0.03175755029275077',), 1396538867: ('0.03175755029275077',), 1396538864: ('0.03175755029275077',), 1396538863: ('0.03175755029275077',), 1396538834: ('0.03175755029275077',), 1396538832: ('0.03175755029275077',), 1396538830: ('0.03175755029275077',), 1396538829: ('0.03175755029275077',), 1396538828: ('0.03175755029275077',), 1396538826: ('0.03175755029275077',), 28979969: ()} output_args : {28979969: [{'Teint_Dans_La_Masse': 28979978, 'metal': 28979979, 'Carton_brun': 28979980, 'environnement': 28979981, 'papier': 28979982, 'plastique': 28979983, 'autre_refus': 28979984, 'flou': 28979985, 'cartonnette': 28979986, 'kraft': 28979987, 'Carton_gris': 28979988, 'mal_croppe': 28979989}]} args : 28979969 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 :16, first value : ('0.03175755029275077',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28979969) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1396538914,1396538912,1396538910,1396538907,1396538879,1396538871,1396538867,1396538864,1396538863,1396538834,1396538832,1396538830,1396538829,1396538828,1396538826) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396538826 begin to download photo : 1396538832 begin to download photo : 1396538867 begin to download photo : 1396538910 download finish for photo 1396538867 begin to download photo : 1396538871 download finish for photo 1396538832 begin to download photo : 1396538834 download finish for photo 1396538910 begin to download photo : 1396538912 download finish for photo 1396538826 begin to download photo : 1396538828 download finish for photo 1396538871 begin to download photo : 1396538879 download finish for photo 1396538912 begin to download photo : 1396538914 download finish for photo 1396538834 begin to download photo : 1396538863 download finish for photo 1396538828 begin to download photo : 1396538829 download finish for photo 1396538879 begin to download photo : 1396538907 download finish for photo 1396538914 download finish for photo 1396538863 begin to download photo : 1396538864 download finish for photo 1396538829 begin to download photo : 1396538830 download finish for photo 1396538907 download finish for photo 1396538864 download finish for photo 1396538830 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette289799791764294272/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P28979969_28-11-2025_02_44_32.pdf 28979979 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979979 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289799791764294272 28979983 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979983 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396538754: '1764293967_569174_1396538398_dfc1a063908530eaa83f502cf112e164_rle_crop_4048422311_0.png', 1396538755: '1764293967_569174_1396538356_d6411919f4c363c0ef07258917995e53_rle_crop_4048422333_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/964a3169ef08dff6b1f097f20d32d562_98212049.png change filename to text .imagette289799831764294272/ imagette289799831764294272/1764293967_569174_1396538398_dfc1a063908530eaa83f502cf112e164_rle_crop_4048422311_0.png.png imagette289799831764294272/1764293967_569174_1396538356_d6411919f4c363c0ef07258917995e53_rle_crop_4048422333_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e7572ee4050833dbc466e3cce977b759_92379401.png imagette289799831764294272 28979984 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979984 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396538655: '1764293825_563164_1396538459_02efb223ab52f4f22981c137b044a543_rle_crop_4048421865_0.png', 1396538751: '1764293967_569174_1396538398_dfc1a063908530eaa83f502cf112e164_rle_crop_4048422314_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ccf079ac4706ce341c164d1359dfa754_75417772.png change filename to text .imagette289799841764294272/ imagette289799841764294272/1764293825_563164_1396538459_02efb223ab52f4f22981c137b044a543_rle_crop_4048421865_0.png.png imagette289799841764294272/1764293967_569174_1396538398_dfc1a063908530eaa83f502cf112e164_rle_crop_4048422314_0.png.png imagette289799851764294272/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/2c0504a73b959cecdba850da7342b817_42289589.png imagette289799841764294272 28979985 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979985 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289799851764294272 28979986 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979986 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396538659: '1764293825_563164_1396538459_02efb223ab52f4f22981c137b044a543_rle_crop_4048421866_0.png', 1396538924: '1764294206_577515_1396538682_2443bbcbec03a98cd37bf7ea682986d9_rle_crop_4048423307_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/2d060e2d1f7d384f07768af5cbb9b283_43477917.png change filename to text .imagette289799861764294273/ imagette289799861764294273/1764293825_563164_1396538459_02efb223ab52f4f22981c137b044a543_rle_crop_4048421866_0.png.png imagette289799861764294273/1764294206_577515_1396538682_2443bbcbec03a98cd37bf7ea682986d9_rle_crop_4048423307_0.png.png imagette289799871764294273/ imagette289799891764294273/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/a73ed7e896d5220594e3b7892de695df_93134775.png imagette289799861764294273 28979987 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979987 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289799871764294273 28979989 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979989 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289799891764294273 28979978 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979978 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396538567: '1764293704_558425_1396538391_4d281a698370fc3b1adcaa44a1753589_rle_crop_4048421500_0.png', 1396538652: '1764293825_563164_1396538461_2217f064304667181d8c0bcb4fe913b1_rle_crop_4048421855_0.png', 1396538653: '1764293825_563164_1396538459_02efb223ab52f4f22981c137b044a543_rle_crop_4048421877_0.png', 1396538917: '1764294206_577515_1396538646_3af04cb16480305cdbf68d237c220829_rle_crop_4048423327_0.png', 1396538918: '1764294206_577515_1396538646_3af04cb16480305cdbf68d237c220829_rle_crop_4048423328_0.png', 1396538919: '1764294206_577515_1396538643_364370077c02cedf55a3f6f3c11fb464_rle_crop_4048423349_0.png', 1396538920: '1764294206_577515_1396538641_ad38e77dcb3c3e77a85ed573cdf931aa_rle_crop_4048423371_0.png', 1396538921: '1764294206_577515_1396538640_8a5e1f80341876beeb1f7ef8c1acfa52_rle_crop_4048423384_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/9dba62e4700cde99abce9ff026437679_97695308.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b895a24e4845d95ab9145d538a97886b_22335338.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/c38f18e70b5e9d80e4e1f0d4ecaaa1cb_97075413.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0b8cbd0b09f875707679aa19f9b1dae4_87095536.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/5f1c0f2f151255c709ed881e6b881f4c_5355533.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b50015e71114b54622e97899d6713bdb_24012639.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0f93867be75c1aff780dd06095f0d55b_65397669.png change filename to text .imagette289799781764294273/ imagette289799781764294273/1764293825_563164_1396538459_02efb223ab52f4f22981c137b044a543_rle_crop_4048421877_0.png.png imagette289799781764294273/1764294206_577515_1396538646_3af04cb16480305cdbf68d237c220829_rle_crop_4048423328_0.png.png imagette289799781764294273/1764293825_563164_1396538461_2217f064304667181d8c0bcb4fe913b1_rle_crop_4048421855_0.png.png imagette289799781764294273/1764293704_558425_1396538391_4d281a698370fc3b1adcaa44a1753589_rle_crop_4048421500_0.png.png imagette289799781764294273/1764294206_577515_1396538646_3af04cb16480305cdbf68d237c220829_rle_crop_4048423327_0.png.png imagette289799781764294273/1764294206_577515_1396538640_8a5e1f80341876beeb1f7ef8c1acfa52_rle_crop_4048423384_0.png.png imagette289799781764294273/1764294206_577515_1396538643_364370077c02cedf55a3f6f3c11fb464_rle_crop_4048423349_0.png.png imagette289799781764294273/1764294206_577515_1396538641_ad38e77dcb3c3e77a85ed573cdf931aa_rle_crop_4048423371_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/3e354ffebe8b1faee962ca0addba5063_8676215.png imagette289799781764294273 28979980 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979980 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396538568: '1764293704_558425_1396538391_4d281a698370fc3b1adcaa44a1753589_rle_crop_4048421504_0.png', 1396538569: '1764293704_558425_1396538391_4d281a698370fc3b1adcaa44a1753589_rle_crop_4048421503_0.png', 1396538570: '1764293704_558425_1396538389_d68a75fe0870cb77a0398c80f48ddd14_rle_crop_4048421513_0.png', 1396538661: '1764293825_563164_1396538461_2217f064304667181d8c0bcb4fe913b1_rle_crop_4048421856_0.png', 1396538927: '1764294206_577515_1396538682_2443bbcbec03a98cd37bf7ea682986d9_rle_crop_4048423313_0.png', 1396538928: '1764294206_577515_1396538682_2443bbcbec03a98cd37bf7ea682986d9_rle_crop_4048423306_0.png', 1396538929: '1764294206_577515_1396538646_3af04cb16480305cdbf68d237c220829_rle_crop_4048423323_0.png', 1396538930: '1764294206_577515_1396538641_ad38e77dcb3c3e77a85ed573cdf931aa_rle_crop_4048423370_0.png', 1396538931: '1764294206_577515_1396538641_ad38e77dcb3c3e77a85ed573cdf931aa_rle_crop_4048423367_0.png', 1396538932: '1764294206_577515_1396538640_8a5e1f80341876beeb1f7ef8c1acfa52_rle_crop_4048423383_0.png', 1396538933: '1764294206_577515_1396538640_8a5e1f80341876beeb1f7ef8c1acfa52_rle_crop_4048423385_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/7b52a78eae0702d25cb9aeaa53393ed8_5460758.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/a024786aefbb7976ba3f72695d786f70_57356197.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/703704bb59aa8f7aba3565af5ea118c1_6174566.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/55e81a4d5e921c0e5e3dcba9ca16e1f6_18521869.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/752fc14df7a021a46c75c2fb56af9f1f_19685921.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/937d15b672db8d478287afe03c4bc479_33569226.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/c3438d540df8df946544c7646d042781_84594901.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/7ece98147f7cb447fda9e0c075c2e6e6_15938930.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/6a0f30799fdac93923f0d6943ad72ba4_975320.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/8224999e2a5adc83932e3be614a60839_73693402.png change filename to text .imagette289799801764294273/ imagette289799801764294273/1764294206_577515_1396538682_2443bbcbec03a98cd37bf7ea682986d9_rle_crop_4048423306_0.png.png imagette289799801764294273/1764294206_577515_1396538646_3af04cb16480305cdbf68d237c220829_rle_crop_4048423323_0.png.png imagette289799801764294273/1764293704_558425_1396538391_4d281a698370fc3b1adcaa44a1753589_rle_crop_4048421503_0.png.png imagette289799801764294273/1764293825_563164_1396538461_2217f064304667181d8c0bcb4fe913b1_rle_crop_4048421856_0.png.png imagette289799801764294273/1764294206_577515_1396538641_ad38e77dcb3c3e77a85ed573cdf931aa_rle_crop_4048423370_0.png.png imagette289799801764294273/1764294206_577515_1396538640_8a5e1f80341876beeb1f7ef8c1acfa52_rle_crop_4048423385_0.png.png imagette289799801764294273/1764294206_577515_1396538682_2443bbcbec03a98cd37bf7ea682986d9_rle_crop_4048423313_0.png.png imagette289799801764294273/1764293704_558425_1396538391_4d281a698370fc3b1adcaa44a1753589_rle_crop_4048421504_0.png.png imagette289799801764294273/1764294206_577515_1396538640_8a5e1f80341876beeb1f7ef8c1acfa52_rle_crop_4048423383_0.png.png imagette289799801764294273/1764294206_577515_1396538641_ad38e77dcb3c3e77a85ed573cdf931aa_rle_crop_4048423367_0.png.png imagette289799801764294273/1764293704_558425_1396538389_d68a75fe0870cb77a0398c80f48ddd14_rle_crop_4048421513_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/9edabe07eeb2043b2757469265d979f7_83449750.png imagette289799801764294273 28979988 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979988 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396538656: '1764293825_563164_1396538463_f2f395a727ecc1aa17aa03db4ff0c483_rle_crop_4048421840_0.png', 1396538657: '1764293825_563164_1396538459_02efb223ab52f4f22981c137b044a543_rle_crop_4048421870_0.png', 1396538671: '1764293847_563638_1396538429_2d4a7fdcc4ca48aa0addce51e83c0c42_rle_crop_4048422035_0.png', 1396538672: '1764293847_563638_1396538426_53f3d83d0744eab61eded3581642474a_rle_crop_4048422048_0.png', 1396538723: '1764293947_568819_1396538429_2d4a7fdcc4ca48aa0addce51e83c0c42_rle_crop_4048422035_0.png', 1396538724: '1764293947_568819_1396538426_53f3d83d0744eab61eded3581642474a_rle_crop_4048422048_0.png', 1396538752: '1764293967_569174_1396538356_d6411919f4c363c0ef07258917995e53_rle_crop_4048422335_0.png', 1396538922: '1764294206_577515_1396538682_2443bbcbec03a98cd37bf7ea682986d9_rle_crop_4048423310_0.png', 1396538923: '1764294206_577515_1396538640_8a5e1f80341876beeb1f7ef8c1acfa52_rle_crop_4048423381_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/182dbeeb7091cef3b0bed4499835bbf0_46884325.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/00bc1ceba7a56dcc0663447eea1a0c36_79471302.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/c89e34be9c1a5307216c57b4c99cbb1f_33233310.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/8c57307e73151a4f0f68b6b186095c7c_44839810.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/c89e34be9c1a5307216c57b4c99cbb1f_62959787.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/8c57307e73151a4f0f68b6b186095c7c_42444799.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b7be11a044306107d253fb7701e99f77_20171070.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/a62d34e453e6794569b963d7d4878542_26863670.png change filename to text .imagette289799881764294274/ imagette289799881764294274/1764293847_563638_1396538426_53f3d83d0744eab61eded3581642474a_rle_crop_4048422048_0.png.png imagette289799881764294274/1764293947_568819_1396538429_2d4a7fdcc4ca48aa0addce51e83c0c42_rle_crop_4048422035_0.png.png imagette289799881764294274/1764293825_563164_1396538463_f2f395a727ecc1aa17aa03db4ff0c483_rle_crop_4048421840_0.png.png imagette289799881764294274/1764294206_577515_1396538640_8a5e1f80341876beeb1f7ef8c1acfa52_rle_crop_4048423381_0.png.png imagette289799881764294274/1764293847_563638_1396538429_2d4a7fdcc4ca48aa0addce51e83c0c42_rle_crop_4048422035_0.png.png imagette289799881764294274/1764294206_577515_1396538682_2443bbcbec03a98cd37bf7ea682986d9_rle_crop_4048423310_0.png.png imagette289799881764294274/1764293947_568819_1396538426_53f3d83d0744eab61eded3581642474a_rle_crop_4048422048_0.png.png imagette289799881764294274/1764293967_569174_1396538356_d6411919f4c363c0ef07258917995e53_rle_crop_4048422335_0.png.png imagette289799881764294274/1764293825_563164_1396538459_02efb223ab52f4f22981c137b044a543_rle_crop_4048421870_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/996a3f6cfe515cf2618e095bb779ed15_43949252.png imagette289799881764294274 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28979969 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28979991,28979992,28979993,28979994,28979995,28979996,28979997,28979998,28979999,28980000,28980001,28980002?tags=Teint_Dans_La_Masse,metal,Carton_brun,environnement,papier,plastique,autre_refus,flou,cartonnette,kraft,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1396538914] : ('0.03175755029275077',) no score found for photo 1396538914 We are sending mail with results at report@fotonower.com args[1396538912] : ('0.03175755029275077',) no score found for photo 1396538912 We are sending mail with results at report@fotonower.com args[1396538910] : ('0.03175755029275077',) no score found for photo 1396538910 We are sending mail with results at report@fotonower.com args[1396538907] : ('0.03175755029275077',) no score found for photo 1396538907 We are sending mail with results at report@fotonower.com args[1396538879] : ('0.03175755029275077',) no score found for photo 1396538879 We are sending mail with results at report@fotonower.com args[1396538871] : ('0.03175755029275077',) no score found for photo 1396538871 We are sending mail with results at report@fotonower.com args[1396538867] : ('0.03175755029275077',) no score found for photo 1396538867 We are sending mail with results at report@fotonower.com args[1396538864] : ('0.03175755029275077',) no score found for photo 1396538864 We are sending mail with results at report@fotonower.com args[1396538863] : ('0.03175755029275077',) no score found for photo 1396538863 We are sending mail with results at report@fotonower.com args[1396538834] : ('0.03175755029275077',) no score found for photo 1396538834 We are sending mail with results at report@fotonower.com args[1396538832] : ('0.03175755029275077',) no score found for photo 1396538832 We are sending mail with results at report@fotonower.com args[1396538830] : ('0.03175755029275077',) no score found for photo 1396538830 We are sending mail with results at report@fotonower.com args[1396538829] : ('0.03175755029275077',) no score found for photo 1396538829 We are sending mail with results at report@fotonower.com args[1396538828] : ('0.03175755029275077',) no score found for photo 1396538828 We are sending mail with results at report@fotonower.com args[1396538826] : ('0.03175755029275077',) no score found for photo 1396538826 We are sending mail with results at report@fotonower.com refus_total : 0.03175755029275077 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979969 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_P28979969_28-11-2025_02_44_32.pdf results_Auto_P28979969_28-11-2025_02_44_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_02_44_32.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','28979969','results_Auto_P28979969_28-11-2025_02_44_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_02_44_32.pdf','pdf','','0.21','0.03175755029275077') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28979969]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826] map_info['map_portfolio_photo'] : {28979969: [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826, 1396538791, 1396538788, 1396538785, 1396538769, 1396538764, 1396538759, 1396538753, 1396538748, 1396538745, 1396538711, 1396538709, 1396538707, 1396538704, 1396538682, 1396538679, 1396538677, 1396538675, 1396538648, 1396538646, 1396538643, 1396538642, 1396538641, 1396538640, 1396538608, 1396538607, 1396538605, 1396538601, 1396538598, 1396538585, 1396538505, 1396538503, 1396538501, 1396538468, 1396538463, 1396538461, 1396538459, 1396538435, 1396538432, 1396538429, 1396538426, 1396538398, 1396538394, 1396538391, 1396538389, 1396538360, 1396538358, 1396538356]} final : False mtd_id 4302 list_pids : [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826] 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, '4132258') ('4302', '28979969', '1396538914', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538912', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538910', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538907', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538879', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538871', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538867', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538864', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538863', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538834', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538832', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538830', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538829', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538828', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538826', None, None, None, None, None, '4132258') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '28979969', '1396538914', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538912', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538910', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538907', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538879', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538871', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538867', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538864', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538863', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538834', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538832', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538830', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538829', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538828', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538826', None, None, None, None, None, '4132258')] time used for this insertion : 0.015587806701660156 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.266306638717651 time spend to save output : 0.015898704528808594 total time spend for step 4 : 4.28220534324646 step5:split_time_score Fri Nov 28 02:44:36 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 : ['28979969'] 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 : [('28979969',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28979969) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396538910: {'path': 'temp/1764294272_3360606_1396538910_6623d8d3ebe5f78771594301d5f03445.jpg', 'extension': 'jpg'}, 1396538912: {'path': 'temp/1764294272_3360606_1396538912_c13cdb76544d2281d56e4f2b16efbeb5.jpg', 'extension': 'jpg'}, 1396538914: {'path': 'temp/1764294272_3360606_1396538914_8468b17e2b1b88732744a503fc461001.jpg', 'extension': 'jpg'}, 1396538867: {'path': 'temp/1764294272_3360606_1396538867_686db1027724839a5524f52faebb389b.jpg', 'extension': 'jpg'}, 1396538871: {'path': 'temp/1764294272_3360606_1396538871_00a34f61efa0b7dc59342cf29f4b9bee.jpg', 'extension': 'jpg'}, 1396538879: {'path': 'temp/1764294272_3360606_1396538879_d9b9a0c0e8bd8624afa15d20a2b333a8.jpg', 'extension': 'jpg'}, 1396538907: {'path': 'temp/1764294272_3360606_1396538907_fe05d84c7f180eab164b073de93a95d5.jpg', 'extension': 'jpg'}, 1396538832: {'path': 'temp/1764294272_3360606_1396538832_468cac82d58f1c79ace9ab6cf3b989ff.jpg', 'extension': 'jpg'}, 1396538834: {'path': 'temp/1764294272_3360606_1396538834_fedc50671a65ad309788b49e98ce6038.jpg', 'extension': 'jpg'}, 1396538863: {'path': 'temp/1764294272_3360606_1396538863_34daac62f1ecc9532f3e9e4b9791cdae.jpg', 'extension': 'jpg'}, 1396538864: {'path': 'temp/1764294272_3360606_1396538864_2c0d59413846b3db166a6e534028aa09.jpg', 'extension': 'jpg'}, 1396538826: {'path': 'temp/1764294272_3360606_1396538826_d00bd24d641005684bc54cf5e3b779ae.jpg', 'extension': 'jpg'}, 1396538828: {'path': 'temp/1764294272_3360606_1396538828_96a98d6b5e3008fd4f2516f1164bd347.jpg', 'extension': 'jpg'}, 1396538829: {'path': 'temp/1764294272_3360606_1396538829_cd8564ee19bf6015d0a905886e33e6f5.jpg', 'extension': 'jpg'}, 1396538830: {'path': 'temp/1764294272_3360606_1396538830_18664c0cdfb8c5006cf7a197ee1e9374.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 = 28979969; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28979969 group by h (('02', 62),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28979969 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 (28979969) 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 (28979969) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28112025 28979969 Nombre de photos uploadées : 62 / 23040 (0%) 28112025 28979969 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 28112025 28979969 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1396538360, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ad6936bffdd843d5026ee06733a82cc5.jpg', 'username': None, 'uploaded_at': 1764293467, 'text': 'image_28112025_02_30_14_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1396538358, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b126c154c1be1dab0e33664e86dc67cc.jpg', 'username': None, 'uploaded_at': 1764293467, 'text': 'image_28112025_02_30_34_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1396538356, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d6411919f4c363c0ef07258917995e53.jpg', 'username': None, 'uploaded_at': 1764293467, 'text': 'image_28112025_02_30_44_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1396538398, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/dfc1a063908530eaa83f502cf112e164.jpg', 'username': None, 'uploaded_at': 1764293527, 'text': 'image_28112025_02_30_54_010142m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002594470977783203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28979969, '2025-11-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-28' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2658013,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2502572536468506 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= 2658013 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665437, 'mtr_portfolio_id': 28975051, 'dashboard_result_id': 17827986, '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_P28975051_28-11-2025_00_25_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665437, 'mtr_portfolio_id': 28975640, 'dashboard_result_id': 17827987, '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_P28975640_28-11-2025_02_01_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665437, 'mtr_portfolio_id': 28976061, 'dashboard_result_id': 17827988, '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_P28976061_28-11-2025_00_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665437, 'mtr_portfolio_id': 28976505, 'dashboard_result_id': 17827989, '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_P28976505_28-11-2025_01_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665437, 'mtr_portfolio_id': 28978093, 'dashboard_result_id': 17827990, '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_P28978093_28-11-2025_01_47_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665437, 'mtr_portfolio_id': 28978470, 'dashboard_result_id': 17827991, '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_P28978470_28-11-2025_02_03_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665437, 'mtr_portfolio_id': 28978907, 'dashboard_result_id': 17827992, '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_P28978907_28-11-2025_02_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665437, 'mtr_portfolio_id': 28979483, 'dashboard_result_id': 17827993, '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_P28979483_28-11-2025_02_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2665437, 'mtr_portfolio_id': 28979969, 'dashboard_result_id': 17827994, '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_P28979969_28-11-2025_02_42_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, '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 = 28975051 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': 4131633, 'mtr_portfolio_id': 28975051, 'created_at': datetime.datetime(2025, 11, 28, 0, 25, 4), 'result': '0.041448810976491474', 'result_long': None, 'result_double': None}] Qualite : 0.041448810976491474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_00_25_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975051 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_P28975051_28-11-2025_00_25_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}" where mtr_portfolio_id = 28975051 and dashboard_run_id = 2665437 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`=28975051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17827986, 0.041448810976491474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_00_25_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, '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 = 28975640 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': 4131681, 'mtr_portfolio_id': 28975640, 'created_at': datetime.datetime(2025, 11, 28, 2, 1, 5), 'result': '0.028260757334550402', 'result_long': None, 'result_double': None}] Qualite : 0.028260757334550402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_02_01_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975640 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_P28975640_28-11-2025_02_01_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}" where mtr_portfolio_id = 28975640 and dashboard_run_id = 2665437 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`=28975640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17827987, 0.028260757334550402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_02_01_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, '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 = 28976061 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': 4131718, 'mtr_portfolio_id': 28976061, 'created_at': datetime.datetime(2025, 11, 28, 0, 47), 'result': '0.042472336458363125', 'result_long': None, 'result_double': None}] Qualite : 0.042472336458363125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_00_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976061 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_P28976061_28-11-2025_00_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}" where mtr_portfolio_id = 28976061 and dashboard_run_id = 2665437 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`=28976061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17827988, 0.042472336458363125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_00_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, '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 = 28976505 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': 4131750, 'mtr_portfolio_id': 28976505, 'created_at': datetime.datetime(2025, 11, 28, 1, 6, 59), 'result': '0.06412778247717851', 'result_long': None, 'result_double': None}] Qualite : 0.06412778247717851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_01_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976505 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_P28976505_28-11-2025_01_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, 'pht': 3726}}" where mtr_portfolio_id = 28976505 and dashboard_run_id = 2665437 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`=28976505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17827989, 0.06412778247717851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_01_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, '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 = 28978093 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': 4131962, 'mtr_portfolio_id': 28978093, 'created_at': datetime.datetime(2025, 11, 28, 1, 47, 2), 'result': '0.04418266088507693', 'result_long': None, 'result_double': None}] Qualite : 0.04418266088507693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_01_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978093 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_P28978093_28-11-2025_01_47_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, 'pht': 3726}}" where mtr_portfolio_id = 28978093 and dashboard_run_id = 2665437 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`=28978093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17827990, 0.04418266088507693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_01_47_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, '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 = 28978470 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': 4132016, 'mtr_portfolio_id': 28978470, 'created_at': datetime.datetime(2025, 11, 28, 2, 3, 8), 'result': '0.035581685613606896', 'result_long': None, 'result_double': None}] Qualite : 0.035581685613606896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_02_03_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978470 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_P28978470_28-11-2025_02_03_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, 'pht': 3726}}" where mtr_portfolio_id = 28978470 and dashboard_run_id = 2665437 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`=28978470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17827991, 0.035581685613606896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_02_03_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, '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 = 28978907 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': 4132106, 'mtr_portfolio_id': 28978907, 'created_at': datetime.datetime(2025, 11, 28, 2, 19), 'result': '0.047752980846563486', 'result_long': None, 'result_double': None}] Qualite : 0.047752980846563486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978907 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_P28978907_28-11-2025_02_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, 'pht': 3726}}" where mtr_portfolio_id = 28978907 and dashboard_run_id = 2665437 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`=28978907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17827992, 0.047752980846563486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_02_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, '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 = 28979483 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': 4132195, 'mtr_portfolio_id': 28979483, 'created_at': datetime.datetime(2025, 11, 28, 2, 32, 58), 'result': '0.047112039521059176', 'result_long': None, 'result_double': None}] Qualite : 0.047112039521059176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28979483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28979483 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_P28979483_28-11-2025_02_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, 'pht': 3726}}" where mtr_portfolio_id = 28979483 and dashboard_run_id = 2665437 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`=28979483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17827993, 0.047112039521059176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_02_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, '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 = 28979969 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': 4132258, 'mtr_portfolio_id': 28979969, 'created_at': datetime.datetime(2025, 11, 28, 2, 44, 31), 'result': '0.03175755029275077', 'result_long': None, 'result_double': None}] Qualite : 0.03175755029275077 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28979969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_02_44_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28979969 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_P28979969_28-11-2025_02_44_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, 'pht': 3726}}" where mtr_portfolio_id = 28979969 and dashboard_run_id = 2665437 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`=28979969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17827994, 0.03175755029275077, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_02_44_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, '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 (28975051,28975640,28976061,28976505,28978093,28978470,28978907,28979483,28979969) result : ((1396500799,), (1396500876,), (1396500951,), (1396501028,), (1396501825,), (1396501895,), (1396501965,), (1396502025,), (1396502595,), (1396502695,), (1396502783,), (1396502874,), (1396503635,), (1396503685,), (1396504251,), (1396504299,), (1396506218,), (1396506261,), (1396506283,), (1396506995,), (1396506650,), (1396506943,), (1396506969,), (1396507382,), (1396507407,), (1396507434,), (1396507465,), (1396507752,), (1396507766,), (1396507771,), (1396507776,), (1396507780,), (1396507960,), (1396508009,), (1396508055,), (1396508106,), (1396508153,), (1396508624,), (1396508674,), (1396508721,), (1396508781,), (1396509060,), (1396509552,), (1396509595,), (1396509654,), (1396509708,), (1396509755,), (1396509793,), (1396509870,), (1396509895,), (1396509907,), (1396509911,), (1396509950,), (1396509953,), (1396509956,), (1396509959,), (1396509962,), (1396509972,), (1396510041,), (1396510048,), (1396510052,), (1396510212,), (1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,), (1396512851,), (1396512854,), (1396512857,), (1396512860,), (1396512878,), (1396512881,), (1396512883,), (1396512886,), (1396512892,), (1396512897,), (1396512925,), (1396512918,), (1396512921,), (1396512923,), (1396512947,), (1396512972,), (1396512995,), (1396513030,), (1396513055,), (1396513082,), (1396513467,), (1396513539,), (1396513616,), (1396513678,), (1396514499,), (1396514526,), (1396514557,), (1396514588,), (1396514614,), (1396514620,), (1396514629,), (1396514657,), (1396514703,), (1396514746,), (1396514898,), (1396514950,), (1396515016,), (1396515077,), (1396515689,), (1396515767,), (1396515833,), (1396515878,), (1396515921,), (1396515946,), (1396516109,), (1396516158,), (1396516214,), (1396516300,), (1396516469,), (1396516473,), (1396516475,), (1396516476,), (1396516477,), (1396516501,), (1396516508,), (1396516509,), (1396516511,), (1396516528,), (1396516536,), (1396516540,), (1396516543,), (1396516547,), (1396516564,), (1396516567,), (1396516571,), (1396516575,), (1396516577,), (1396516590,), (1396516637,), (1396516681,), (1396517150,), (1396517204,), (1396517247,), (1396517288,), (1396517460,), (1396518172,), (1396518210,), (1396518212,), (1396518244,), (1396518264,), (1396518268,), (1396518391,), (1396518425,), (1396518434,), (1396518458,), (1396518489,), (1396518603,), (1396518668,), (1396518701,), (1396519242,), (1396528127,), (1396528128,), (1396528141,), (1396528145,), (1396528148,), (1396528151,), (1396528165,), (1396528169,), (1396528172,), (1396528175,), (1396528234,), (1396528237,), (1396528239,), (1396528243,), (1396528247,), (1396528251,), (1396528417,), (1396528447,), (1396528473,), (1396528621,), (1396528624,), (1396528628,), (1396528631,), (1396528633,), (1396528635,), (1396528649,), (1396528652,), (1396528654,), (1396528656,), (1396528657,), (1396528699,), (1396528705,), (1396528713,), (1396528714,), (1396528857,), (1396528888,), (1396528923,), (1396528951,), (1396528976,), (1396529152,), (1396529180,), (1396529208,), (1396529235,), (1396529254,), (1396529282,), (1396529396,), (1396529399,), (1396529409,), (1396529414,), (1396529419,), (1396529479,), (1396529480,), (1396529482,), (1396529535,), (1396529537,), (1396529539,), (1396529541,), (1396529545,), (1396529562,), (1396529564,), (1396529566,), (1396529568,), (1396529586,), (1396529588,), (1396529592,), (1396529596,), (1396529599,), (1396529603,), (1396529627,), (1396529618,), (1396529621,), (1396529624,), (1396529652,), (1396529656,), (1396529659,), (1396529662,), (1396529676,), (1396529679,), (1396529682,), (1396529686,), (1396529690,), (1396529694,), (1396529717,), (1396529721,), (1396529724,), (1396529726,), (1396529730,), (1396529751,), (1396529761,), (1396529770,), (1396529778,), (1396529801,), (1396529805,), (1396529809,), (1396529812,), (1396529815,), (1396529820,), (1396529844,), (1396529846,), (1396529848,), (1396529883,), (1396529886,), (1396529890,), (1396529895,), (1396529899,), (1396529902,), (1396529929,), (1396529945,), (1396529981,), (1396530011,), (1396530045,), (1396530077,), (1396530285,), (1396530287,), (1396530290,), (1396530294,), (1396530320,), (1396530322,), (1396530323,), (1396530324,), (1396530327,), (1396530330,), (1396530347,), (1396530350,), (1396530353,), (1396530388,), (1396530390,), (1396530392,), (1396530394,), (1396530396,), (1396530399,), (1396530705,), (1396530708,), (1396530711,), (1396530765,), (1396530760,), (1396530763,), (1396530796,), (1396530799,), (1396530802,), (1396530806,), (1396530810,), (1396530813,), (1396530829,), (1396530832,), (1396530835,), (1396530837,), (1396530839,), (1396530878,), (1396530880,), (1396530882,), (1396530885,), (1396530888,), (1396530892,), (1396530909,), (1396530912,), (1396530915,), (1396530918,), (1396531076,), (1396531106,), (1396531108,), (1396531110,), (1396531111,), (1396531128,), (1396531472,), (1396531504,), (1396531551,), (1396531612,), (1396531786,), (1396532382,), (1396532442,), (1396532502,), (1396532563,), (1396532628,), (1396532718,), (1396533069,), (1396533073,), (1396533077,), (1396533090,), (1396533125,), (1396533383,), (1396533385,), (1396533387,), (1396533413,), (1396533449,), (1396533494,), (1396534153,), (1396534222,), (1396534290,), (1396534357,), (1396534797,), (1396534800,), (1396534807,), (1396534840,), (1396534856,), (1396535151,), (1396535183,), (1396535215,), (1396535220,), (1396535222,), (1396535531,), (1396535567,), (1396535600,), (1396535639,), (1396535676,), (1396536024,), (1396536045,), (1396536047,), (1396536050,), (1396536054,), (1396536407,), (1396536322,), (1396536354,), (1396536388,), (1396536404,), (1396536543,), (1396536551,), (1396536584,), (1396536634,), (1396536670,), (1396537002,), (1396537129,), (1396537165,), (1396537203,), (1396537567,), (1396537595,), (1396537597,), (1396537599,), (1396537804,), (1396537819,), (1396537821,), (1396537844,), (1396537880,), (1396537883,), (1396537929,), (1396537932,), (1396537935,), (1396537938,), (1396537941,), (1396537944,), (1396537962,), (1396537964,), (1396537969,), (1396537975,), (1396538001,), (1396538004,), (1396538007,), (1396538010,), (1396538013,), (1396538015,), (1396538024,), (1396538028,), (1396538035,), (1396538196,), (1396538203,), (1396538207,), (1396538257,), (1396538287,), (1396538288,), (1396538362,), (1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28112025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28979969]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826] map_info['map_portfolio_photo'] : {28979969: [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826, 1396538791, 1396538788, 1396538785, 1396538769, 1396538764, 1396538759, 1396538753, 1396538748, 1396538745, 1396538711, 1396538709, 1396538707, 1396538704, 1396538682, 1396538679, 1396538677, 1396538675, 1396538648, 1396538646, 1396538643, 1396538642, 1396538641, 1396538640, 1396538608, 1396538607, 1396538605, 1396538601, 1396538598, 1396538585, 1396538505, 1396538503, 1396538501, 1396538468, 1396538463, 1396538461, 1396538459, 1396538435, 1396538432, 1396538429, 1396538426, 1396538398, 1396538394, 1396538391, 1396538389, 1396538360, 1396538358, 1396538356]} final : True mtd_id 4302 list_pids : [1396538914, 1396538912, 1396538910, 1396538907, 1396538879, 1396538871, 1396538867, 1396538864, 1396538863, 1396538834, 1396538832, 1396538830, 1396538829, 1396538828, 1396538826] Looping around the photos to save general results len do output : 1 /28979969Didn'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, '4132258') ('4302', '28979969', '1396538914', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538912', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538910', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538907', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538879', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538871', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538867', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538864', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538863', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538834', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538832', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538830', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538829', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538828', None, None, None, None, None, '4132258') ('4302', None, None, None, None, None, None, None, '4132258') ('4302', '28979969', '1396538826', None, None, None, None, None, '4132258') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '28979969', 'None', None, None, None, None, '4132258'), ('4302', '28979969', '1396538914', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538912', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538910', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538907', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538879', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538871', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538867', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538864', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538863', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538834', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538832', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538830', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538829', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538828', None, None, None, None, None, '4132258'), ('4302', '28979969', '1396538826', None, None, None, None, None, '4132258')] time used for this insertion : 0.01584935188293457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9666690826416016 time spend to save output : 0.016159772872924805 total time spend for step 5 : 0.9828288555145264 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 (4132258) 2.29user 2.09system 0:11.50elapsed 38%CPU (0avgtext+0avgdata 159800maxresident)k 48inputs+13048outputs (15major+77305minor)pagefaults 0swaps