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 : 2063434 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 (4319777) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4319777) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003176 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4319777'] with mtr_portfolio_ids : ['30003176'] and first list_photo_ids : [] new path : /proc/2063434/ Name: python3 Umask: 0002 State: R (running) Tgid: 2063434 Ngid: 0 Pid: 2063434 PPid: 2063433 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2063434 NSpid: 2063434 NSpgid: 2062405 NSsid: 2062405 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 106440 kB VmRSS: 106440 kB RssAnon: 66300 kB RssFile: 40140 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 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: 47 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2063434', 'Ngid': '0', 'Pid': '2063434', 'PPid': '2063433', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2063434', 'NSpid': '2063434', 'NSpgid': '2062405', 'NSsid': '2062405', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '106440 kB', 'VmRSS': '106440 kB', 'RssAnon': '66300 kB', 'RssFile': '40140 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 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': '47', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '2063434', '1113368', '0', '1113368', '872096', '106440', b'', 'marlene', '4319777') 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 (30003176) 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 (4319777 ) ) 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 (30003176) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402738213, 'portfolio_id': 30003176}, {'photo_id': 1402738211, 'portfolio_id': 30003176}, {'photo_id': 1402738209, 'portfolio_id': 30003176}, {'photo_id': 1402738175, 'portfolio_id': 30003176}, {'photo_id': 1402738173, 'portfolio_id': 30003176}, {'photo_id': 1402738172, 'portfolio_id': 30003176}, {'photo_id': 1402738171, 'portfolio_id': 30003176}, {'photo_id': 1402738159, 'portfolio_id': 30003176}, {'photo_id': 1402738157, 'portfolio_id': 30003176}, {'photo_id': 1402738153, 'portfolio_id': 30003176}, {'photo_id': 1402738151, 'portfolio_id': 30003176}, {'photo_id': 1402738150, 'portfolio_id': 30003176}, {'photo_id': 1402738149, 'portfolio_id': 30003176}, {'photo_id': 1402738125, 'portfolio_id': 30003176}, {'photo_id': 1402738123, 'portfolio_id': 30003176}, {'photo_id': 1402738121, 'portfolio_id': 30003176}, {'photo_id': 1402738118, 'portfolio_id': 30003176}, {'photo_id': 1402738116, 'portfolio_id': 30003176}, {'photo_id': 1402738114, 'portfolio_id': 30003176}, {'photo_id': 1402738105, 'portfolio_id': 30003176}, {'photo_id': 1402738099, 'portfolio_id': 30003176}, {'photo_id': 1402738075, 'portfolio_id': 30003176}, {'photo_id': 1402738072, 'portfolio_id': 30003176}, {'photo_id': 1402738070, 'portfolio_id': 30003176}, {'photo_id': 1402738068, 'portfolio_id': 30003176}, {'photo_id': 1402738067, 'portfolio_id': 30003176}, {'photo_id': 1402738055, 'portfolio_id': 30003176}, {'photo_id': 1402738052, 'portfolio_id': 30003176}, {'photo_id': 1402738050, 'portfolio_id': 30003176}, {'photo_id': 1402738044, 'portfolio_id': 30003176}, {'photo_id': 1402738037, 'portfolio_id': 30003176}, {'photo_id': 1402738021, 'portfolio_id': 30003176}, {'photo_id': 1402738017, 'portfolio_id': 30003176}, {'photo_id': 1402738015, 'portfolio_id': 30003176}, {'photo_id': 1402738014, 'portfolio_id': 30003176}, {'photo_id': 1402738013, 'portfolio_id': 30003176}, {'photo_id': 1402737994, 'portfolio_id': 30003176}, {'photo_id': 1402737982, 'portfolio_id': 30003176}, {'photo_id': 1402737979, 'portfolio_id': 30003176}, {'photo_id': 1402737975, 'portfolio_id': 30003176}, {'photo_id': 1402737973, 'portfolio_id': 30003176}, {'photo_id': 1402737972, 'portfolio_id': 30003176}, {'photo_id': 1402737971, 'portfolio_id': 30003176}, {'photo_id': 1402737956, 'portfolio_id': 30003176}, {'photo_id': 1402737953, 'portfolio_id': 30003176}, {'photo_id': 1402737949, 'portfolio_id': 30003176}, {'photo_id': 1402737947, 'portfolio_id': 30003176}, {'photo_id': 1402737946, 'portfolio_id': 30003176}, {'photo_id': 1402737939, 'portfolio_id': 30003176}, {'photo_id': 1402737914, 'portfolio_id': 30003176}, {'photo_id': 1402737910, 'portfolio_id': 30003176}, {'photo_id': 1402737907, 'portfolio_id': 30003176}, {'photo_id': 1402737906, 'portfolio_id': 30003176}, {'photo_id': 1402737905, 'portfolio_id': 30003176}] map_portfolio_id_photo_id: {30003176: [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149, 1402738125, 1402738123, 1402738121, 1402738118, 1402738116, 1402738114, 1402738105, 1402738099, 1402738075, 1402738072, 1402738070, 1402738068, 1402738067, 1402738055, 1402738052, 1402738050, 1402738044, 1402738037, 1402738021, 1402738017, 1402738015, 1402738014, 1402738013, 1402737994, 1402737982, 1402737979, 1402737975, 1402737973, 1402737972, 1402737971, 1402737956, 1402737953, 1402737949, 1402737947, 1402737946, 1402737939, 1402737914, 1402737910, 1402737907, 1402737906, 1402737905]} ##### 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.01839470863342285 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jan 7 02:42:57 2026 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 (30003176) 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 : 30003176 get user id for portfolio 30003176 get sub ptf for main ptf 30003176, type 3726 and hashtags ['mal_croppe', 'autre_refus', 'metal', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_gris', 'papier', 'plastique', 'Carton_brun', 'flou', 'environnement', 'kraft'] 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`=30003176 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','metal','cartonnette','Teint_Dans_La_Masse','Carton_gris','papier','plastique','Carton_brun','flou','environnement','kraft')) 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`=30003176 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','metal','cartonnette','Teint_Dans_La_Masse','Carton_gris','papier','plastique','Carton_brun','flou','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 30003176, 'sub_port_id': 30003180, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533957, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'mal_croppe': {'main_port_id': 30003176, 'sub_port_id': 30003181, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533958, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 30003176, 'sub_port_id': 30003182, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533959, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'kraft': {'main_port_id': 30003176, 'sub_port_id': 30003183, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533960, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'metal': {'main_port_id': 30003176, 'sub_port_id': 30003184, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533961, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'plastique': {'main_port_id': 30003176, 'sub_port_id': 30003185, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533962, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'papier': {'main_port_id': 30003176, 'sub_port_id': 30003186, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533963, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'autre_refus': {'main_port_id': 30003176, 'sub_port_id': 30003187, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533964, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'cartonnette': {'main_port_id': 30003176, 'sub_port_id': 30003188, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533965, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'Carton_gris': {'main_port_id': 30003176, 'sub_port_id': 30003189, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533966, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'Carton_brun': {'main_port_id': 30003176, 'sub_port_id': 30003190, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533967, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}, 'flou': {'main_port_id': 30003176, 'sub_port_id': 30003191, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533968, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 32, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30003180 , 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=30003176 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 (30003180) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003181 , 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=30003176 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 (30003181) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003182 , 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=30003176 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 (30003182) result : ((1402738006,), (1402738061,), (1402738079,), (1402738165,), (1402738193,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003183 , 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=30003176 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 (30003183) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003184 , 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=30003176 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 (30003184) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003185 , 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=30003176 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 (30003185) result : ((1402738066,), (1402738191,), (1402738192,), (1402738203,), (1402738204,), (1402738205,), (1402738206,), (1402738207,), (1402738208,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003186 , 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=30003176 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 (30003186) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003187 , 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=30003176 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 (30003187) result : ((1402738007,), (1402738008,), (1402738062,), (1402738081,), (1402738166,), (1402738183,), (1402738184,), (1402738194,), (1402738195,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003188 , 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=30003176 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 (30003188) result : ((1402738012,), (1402738063,), (1402738064,), (1402738083,), (1402738168,), (1402738169,), (1402738170,), (1402738187,), (1402738197,), (1402738198,), (1402738199,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003189 , 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=30003176 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 (30003189) result : ((1402738009,), (1402738010,), (1402738011,), (1402738082,), (1402738167,), (1402738186,), (1402738196,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003190 , 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=30003176 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 (30003190) result : ((1402738065,), (1402738084,), (1402738085,), (1402738188,), (1402738189,), (1402738200,), (1402738201,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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 30003191 , 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=30003176 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 (30003191) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30003176) result : ((1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) 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`=30003176 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','metal','cartonnette','Teint_Dans_La_Masse','Carton_gris','papier','plastique','Carton_brun','flou','environnement','kraft')) 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`=30003176 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','metal','cartonnette','Teint_Dans_La_Masse','Carton_gris','papier','plastique','Carton_brun','flou','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 30003176, 'sub_port_id': 30003193, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533969, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'mal_croppe': {'main_port_id': 30003176, 'sub_port_id': 30003194, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533970, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 30003176, 'sub_port_id': 30003195, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533971, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'kraft': {'main_port_id': 30003176, 'sub_port_id': 30003196, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533972, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'metal': {'main_port_id': 30003176, 'sub_port_id': 30003197, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533973, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'plastique': {'main_port_id': 30003176, 'sub_port_id': 30003198, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533974, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'papier': {'main_port_id': 30003176, 'sub_port_id': 30003199, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533975, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'autre_refus': {'main_port_id': 30003176, 'sub_port_id': 30003200, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533976, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'cartonnette': {'main_port_id': 30003176, 'sub_port_id': 30003201, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533977, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'Carton_gris': {'main_port_id': 30003176, 'sub_port_id': 30003202, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533978, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'Carton_brun': {'main_port_id': 30003176, 'sub_port_id': 30003203, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533979, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 33, 1), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}, 'flou': {'main_port_id': 30003176, 'sub_port_id': 30003204, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20533980, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 40, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 33, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003193,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003180 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003194,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003181 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003195,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003182 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003196,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003183 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003197,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003184 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003198,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003185 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003199,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003186 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003200,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003187 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003201,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003188 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003202,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003189 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003203,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003190 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30003204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30003191 lien utilise dans velours : https://marlene.fotonower.com/velours/30003193,30003194,30003195,30003196,30003197,30003198,30003199,30003200,30003201,30003202,30003203,30003204?tags=environnement,mal_croppe,Teint_Dans_La_Masse,kraft,metal,plastique,papier,autre_refus,cartonnette,Carton_gris,Carton_brun,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30003176]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149] map_info['map_portfolio_photo'] : {30003176: [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149, 1402738125, 1402738123, 1402738121, 1402738118, 1402738116, 1402738114, 1402738105, 1402738099, 1402738075, 1402738072, 1402738070, 1402738068, 1402738067, 1402738055, 1402738052, 1402738050, 1402738044, 1402738037, 1402738021, 1402738017, 1402738015, 1402738014, 1402738013, 1402737994, 1402737982, 1402737979, 1402737975, 1402737973, 1402737972, 1402737971, 1402737956, 1402737953, 1402737949, 1402737947, 1402737946, 1402737939, 1402737914, 1402737910, 1402737907, 1402737906, 1402737905]} final : False mtd_id 4302 list_pids : [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149] Looping around the photos to save general results len do output : 1 /30003176. 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, '4319777') ('4302', '30003176', '1402738213', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738211', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738209', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738175', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738173', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738172', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738171', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738159', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738157', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738153', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738151', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738150', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738149', None, None, None, None, None, '4319777') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '30003176', "{'environnement': 30003180, 'mal_croppe': 30003181, 'Teint_Dans_La_Masse': 30003182, 'kraft': 30003183, 'metal': 30003184, 'plastique': 30003185, 'papier': 30003186, 'autre_refus': 30003187, 'cartonnette': 30003188, 'Carton_gris': 30003189, 'Carton_brun': 30003190, 'flou': 30003191}", None, None, None, None, '4319777'), ('4302', '30003176', '1402738213', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738211', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738209', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738175', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738173', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738172', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738171', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738159', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738157', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738153', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738151', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738150', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738149', None, None, None, None, None, '4319777')] time used for this insertion : 0.01713275909423828 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9297547340393066 time spend to save output : 0.01742720603942871 total time spend for step 1 : 1.9471819400787354 step2:final Wed Jan 7 02:42:59 2026 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 (30003176) 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 30003176 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402737914,1402737910,1402737907,1402737906,1402737905,1402737956,1402737953,1402737949,1402737947,1402737946,1402737939,1402737982,1402737979,1402737975,1402737973,1402737972,1402737971,1402737994,1402738021,1402738017,1402738015,1402738014,1402738013,1402738055,1402738052,1402738050,1402738044,1402738037,1402738075,1402738072,1402738070,1402738068,1402738067,1402738105,1402738099,1402738125,1402738123,1402738121,1402738114,1402738118,1402738116,1402738159,1402738157,1402738153,1402738151,1402738150,1402738149,1402738175,1402738173,1402738172,1402738171,1402738213,1402738211,1402738209); 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([30003176]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} new output for save of step final : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149] map_info['map_portfolio_photo'] : {30003176: [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149, 1402738125, 1402738123, 1402738121, 1402738118, 1402738116, 1402738114, 1402738105, 1402738099, 1402738075, 1402738072, 1402738070, 1402738068, 1402738067, 1402738055, 1402738052, 1402738050, 1402738044, 1402738037, 1402738021, 1402738017, 1402738015, 1402738014, 1402738013, 1402737994, 1402737982, 1402737979, 1402737975, 1402737973, 1402737972, 1402737971, 1402737956, 1402737953, 1402737949, 1402737947, 1402737946, 1402737939, 1402737914, 1402737910, 1402737907, 1402737906, 1402737905]} final : False mtd_id 4302 list_pids : [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149] Looping around the photos to save general results len do output : 13 /1402738213.Didn't retrieve data . /1402738211.Didn't retrieve data . /1402738209.Didn't retrieve data . /1402738175.Didn't retrieve data . /1402738173.Didn't retrieve data . /1402738172.Didn't retrieve data . /1402738171.Didn't retrieve data . /1402738159.Didn't retrieve data . /1402738157.Didn't retrieve data . /1402738153.Didn't retrieve data . /1402738151.Didn't retrieve data . /1402738150.Didn't retrieve data . /1402738149.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, '4319777') ('4302', '30003176', '1402738213', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738211', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738209', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738175', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738173', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738172', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738171', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738159', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738157', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738153', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738151', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738150', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738149', None, None, None, None, None, '4319777') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '30003176', '1402738213', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738211', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738209', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738175', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738173', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738172', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738171', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738159', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738157', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738153', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738151', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738150', '0.04581996353836964', None, None, None, None, '4319777'), ('4302', '30003176', '1402738149', '0.04581996353836964', None, None, None, None, '4319777')] time used for this insertion : 0.015709877014160156 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08151960372924805 time spend to save output : 0.016312837600708008 total time spend for step 2 : 0.09783244132995605 step3:velours_tree Wed Jan 7 02:42:59 2026 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 : {30003176: [{'environnement': 30003180, 'mal_croppe': 30003181, 'Teint_Dans_La_Masse': 30003182, 'kraft': 30003183, 'metal': 30003184, 'plastique': 30003185, 'papier': 30003186, 'autre_refus': 30003187, 'cartonnette': 30003188, 'Carton_gris': 30003189, 'Carton_brun': 30003190, 'flou': 30003191}]} input_args_next_step : {30003176: ()} output_args : {30003176: [{'environnement': 30003180, 'mal_croppe': 30003181, 'Teint_Dans_La_Masse': 30003182, 'kraft': 30003183, 'metal': 30003184, 'plastique': 30003185, 'papier': 30003186, 'autre_refus': 30003187, 'cartonnette': 30003188, 'Carton_gris': 30003189, 'Carton_brun': 30003190, 'flou': 30003191}]} args : 30003176 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 : ({'environnement': 30003180, 'mal_croppe': 30003181, 'Teint_Dans_La_Masse': 30003182, 'kraft': 30003183, 'metal': 30003184, 'plastique': 30003185, 'papier': 30003186, 'autre_refus': 30003187, 'cartonnette': 30003188, 'Carton_gris': 30003189, 'Carton_brun': 30003190, 'flou': 30003191},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30003176) 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([30003176]) 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.2399294376373291 time spend to save output : 4.076957702636719e-05 total time spend for step 3 : 0.23997020721435547 step4:send_mail_cod Wed Jan 7 02:43:00 2026 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 : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} input_args_next_step : {1402738213: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738213 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738211 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738209 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738175 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738173 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738172 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738171 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738159 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738157 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738153 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738151 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738150 depend.output_id : 0 input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ()} output_args : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',)} args : 1402738149 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 : {30003176: [{'environnement': 30003180, 'mal_croppe': 30003181, 'Teint_Dans_La_Masse': 30003182, 'kraft': 30003183, 'metal': 30003184, 'plastique': 30003185, 'papier': 30003186, 'autre_refus': 30003187, 'cartonnette': 30003188, 'Carton_gris': 30003189, 'Carton_brun': 30003190, 'flou': 30003191}]} input_args_next_step : {1402738213: ('0.04581996353836964',), 1402738211: ('0.04581996353836964',), 1402738209: ('0.04581996353836964',), 1402738175: ('0.04581996353836964',), 1402738173: ('0.04581996353836964',), 1402738172: ('0.04581996353836964',), 1402738171: ('0.04581996353836964',), 1402738159: ('0.04581996353836964',), 1402738157: ('0.04581996353836964',), 1402738153: ('0.04581996353836964',), 1402738151: ('0.04581996353836964',), 1402738150: ('0.04581996353836964',), 1402738149: ('0.04581996353836964',), 30003176: ()} output_args : {30003176: [{'environnement': 30003180, 'mal_croppe': 30003181, 'Teint_Dans_La_Masse': 30003182, 'kraft': 30003183, 'metal': 30003184, 'plastique': 30003185, 'papier': 30003186, 'autre_refus': 30003187, 'cartonnette': 30003188, 'Carton_gris': 30003189, 'Carton_brun': 30003190, 'flou': 30003191}]} args : 30003176 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 :14, first value : ('0.04581996353836964',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30003176) 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 (1402738213,1402738211,1402738209,1402738175,1402738173,1402738172,1402738171,1402738159,1402738157,1402738153,1402738151,1402738150,1402738149) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402738149 begin to download photo : 1402738153 begin to download photo : 1402738171 begin to download photo : 1402738175 begin to download photo : 1402738213 download finish for photo 1402738213 download finish for photo 1402738153 begin to download photo : 1402738157 download finish for photo 1402738175 begin to download photo : 1402738209 download finish for photo 1402738171 begin to download photo : 1402738172 download finish for photo 1402738149 begin to download photo : 1402738150 download finish for photo 1402738209 begin to download photo : 1402738211 download finish for photo 1402738150 begin to download photo : 1402738151 download finish for photo 1402738157 begin to download photo : 1402738159 download finish for photo 1402738172 begin to download photo : 1402738173 download finish for photo 1402738211 download finish for photo 1402738159 download finish for photo 1402738151 download finish for photo 1402738173 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette300031811767750180/ imagette300031831767750180/ imagette300031841767750180/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P30003176_07-01-2026_02_43_00.pdf 30003181 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=30003181 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300031811767750180 30003183 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=30003183 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300031831767750180 30003184 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=30003184 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300031841767750180 30003185 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=30003185 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402738066: '1767749786_1897405_1402737979_14f58730cb6da319e2eb44a626a76198_rle_crop_4092301695_0.png', 1402738191: '1767750065_1913638_1402738055_e1c343900b469ae729cfb74406ec11d3_rle_crop_4092302752_0.png', 1402738192: '1767750065_1913638_1402738055_e1c343900b469ae729cfb74406ec11d3_rle_crop_4092302758_0.png', 1402738203: '1767750084_1915421_1402738075_e48f1d73536226042dbc9bf51fb92dab_rle_crop_4092302987_0.png', 1402738204: '1767750084_1915421_1402738075_e48f1d73536226042dbc9bf51fb92dab_rle_crop_4092302984_0.png', 1402738205: '1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092302999_0.png', 1402738206: '1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092303003_0.png', 1402738207: '1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092303004_0.png', 1402738208: '1767750084_1915421_1402738037_73253d0f72b29c11169fa071ed10c4ab_rle_crop_4092303048_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8eb2d928509ab654e41ac2531213618d_12978936.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/75d99a84469ef25e67eec911ce14eb48_833834.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7b5e85ea29c89bcdc447a10a98775c60_14003618.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c5f85d109c638d00c03d4157bc18915b_27549398.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/667b3a04a02e81005dba039e8c131fd7_40908588.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/d4f482f0b528f541de8fb826ec5c933a_90581615.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/b2d49b368a492181f3e6bc14e46ea834_41446592.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/664b85af91cd4d1ba81e6feb77139ebd_57249437.png change filename to text .imagette300031851767750180/ imagette300031851767750180/1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092303003_0.png.png imagette300031851767750180/1767750084_1915421_1402738037_73253d0f72b29c11169fa071ed10c4ab_rle_crop_4092303048_0.png.png imagette300031851767750180/1767750084_1915421_1402738075_e48f1d73536226042dbc9bf51fb92dab_rle_crop_4092302987_0.png.png imagette300031851767750180/1767750084_1915421_1402738075_e48f1d73536226042dbc9bf51fb92dab_rle_crop_4092302984_0.png.png imagette300031851767750180/1767750065_1913638_1402738055_e1c343900b469ae729cfb74406ec11d3_rle_crop_4092302752_0.png.png imagette300031851767750180/1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092302999_0.png.png imagette300031851767750180/1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092303004_0.png.png imagette300031851767750180/1767750065_1913638_1402738055_e1c343900b469ae729cfb74406ec11d3_rle_crop_4092302758_0.png.png imagette300031851767750180/1767749786_1897405_1402737979_14f58730cb6da319e2eb44a626a76198_rle_crop_4092301695_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/acd7710301e55bebbc0c405835668645_73214058.png imagette300031851767750180 30003187 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=30003187 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402738007: '1767749666_1890895_1402737906_1aa5dd0ec0b07749d5a9fa3e84613021_rle_crop_4092301176_0.png', 1402738008: '1767749666_1890895_1402737905_b4897cfa57c45f5225c9723fdf6f98ba_rle_crop_4092301186_0.png', 1402738062: '1767749786_1897405_1402737975_74dd41822ddb4d0a1a48d70718d93c1e_rle_crop_4092301708_0.png', 1402738081: '1767749827_1900256_1402737947_dd8ff76145ba3bb58e58bb529686e36c_rle_crop_4092301911_0.png', 1402738166: '1767750026_1912892_1402738070_be7b520b45498a7a788a5a2285c8abcb_rle_crop_4092302567_0.png', 1402738183: '1767750065_1913638_1402738017_2cee80131455e8220695431bbde46d71_rle_crop_4092302772_0.png', 1402738184: '1767750065_1913638_1402738014_ce72972dd0dba6403425d03080931cfa_rle_crop_4092302796_0.png', 1402738194: '1767750084_1915421_1402738075_e48f1d73536226042dbc9bf51fb92dab_rle_crop_4092302980_0.png', 1402738195: '1767750084_1915421_1402738044_735e29281e4eeae8f322931d39ad7942_rle_crop_4092303029_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/69dd98d9b6a96b94bb98c422eae41a94_21658170.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/d03dc1ebc5bc74e0e7c5852fa2b6e75e_5205061.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/12456b422e0f3cbfb6b816eb00bf549e_63432690.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/90f353158666554e4992a66c77de7859_46782696.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8459db7cb80b34acdbb4f0441e70889a_28019523.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/1a1d2a1f582df25ffbea1b6f18c2b308_67463029.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c9c28dc7f7216db5a7aadbcaafcb7f09_36559054.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e7ceb9bb6c5165424def3337d2685caa_52956345.png change filename to text .imagette300031871767750181/ imagette300031871767750181/1767749666_1890895_1402737905_b4897cfa57c45f5225c9723fdf6f98ba_rle_crop_4092301186_0.png.png imagette300031871767750181/1767750065_1913638_1402738017_2cee80131455e8220695431bbde46d71_rle_crop_4092302772_0.png.png imagette300031871767750181/1767749786_1897405_1402737975_74dd41822ddb4d0a1a48d70718d93c1e_rle_crop_4092301708_0.png.png imagette300031871767750181/1767750084_1915421_1402738044_735e29281e4eeae8f322931d39ad7942_rle_crop_4092303029_0.png.png imagette300031871767750181/1767749666_1890895_1402737906_1aa5dd0ec0b07749d5a9fa3e84613021_rle_crop_4092301176_0.png.png imagette300031871767750181/1767749827_1900256_1402737947_dd8ff76145ba3bb58e58bb529686e36c_rle_crop_4092301911_0.png.png imagette300031871767750181/1767750084_1915421_1402738075_e48f1d73536226042dbc9bf51fb92dab_rle_crop_4092302980_0.png.png imagette300031871767750181/1767750026_1912892_1402738070_be7b520b45498a7a788a5a2285c8abcb_rle_crop_4092302567_0.png.png imagette300031871767750181/1767750065_1913638_1402738014_ce72972dd0dba6403425d03080931cfa_rle_crop_4092302796_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/6029610385cc56c2e09589f749ccd60a_79454975.png imagette300031871767750181 30003188 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=30003188 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402738012: '1767749666_1890895_1402737914_de7ac2d8d2b01477ca506b93abaacc44_rle_crop_4092301137_0.png', 1402738063: '1767749786_1897405_1402737979_14f58730cb6da319e2eb44a626a76198_rle_crop_4092301697_0.png', 1402738064: '1767749786_1897405_1402737973_77a439719645a355365567e3d47a5d41_rle_crop_4092301714_0.png', 1402738083: '1767749827_1900256_1402737947_dd8ff76145ba3bb58e58bb529686e36c_rle_crop_4092301909_0.png', 1402738168: '1767750026_1912892_1402738068_02276c3b829acab3a547ffd9c5ae391e_rle_crop_4092302572_0.png', 1402738169: '1767750026_1912892_1402738068_02276c3b829acab3a547ffd9c5ae391e_rle_crop_4092302578_0.png', 1402738170: '1767750026_1912892_1402738067_b479fa7b40a1cd64c9b0128c9750365b_rle_crop_4092302589_0.png', 1402738187: '1767750065_1913638_1402738013_701760be1e385c608f898703a05e7834_rle_crop_4092302808_0.png', 1402738197: '1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092303000_0.png', 1402738198: '1767750084_1915421_1402738050_87668fdd22347fdde683860b8acdb218_rle_crop_4092303017_0.png', 1402738199: '1767750084_1915421_1402738037_73253d0f72b29c11169fa071ed10c4ab_rle_crop_4092303040_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/69332277baed9bb8c89d942edfd2da27_72327368.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/faad372f57501f689720dcb7cd3241f5_92482648.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9e7b5bbf887c4c07e38b607139ef536c_84645331.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9b63a2f1a1204e0939791c6d294975b7_83261750.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ebb29c20256992597d20fbbd7002694d_54840186.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ff3e38a6f6362d3191baa7eff6ceb734_40054705.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/838a7e011106a6a017c34051d10c36ee_45775625.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a27961a4b8e93f58710fc51574a680c1_17473409.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/305c14d78d5b408af74e1d39ab5a918a_28801662.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8b851425304166fc7e49b8d68bd1ff89_80742592.png change filename to text .imagette300031881767750182/ imagette300031881767750182/1767749786_1897405_1402737973_77a439719645a355365567e3d47a5d41_rle_crop_4092301714_0.png.png imagette300031881767750182/1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092303000_0.png.png imagette300031881767750182/1767750065_1913638_1402738013_701760be1e385c608f898703a05e7834_rle_crop_4092302808_0.png.png imagette300031881767750182/1767750026_1912892_1402738067_b479fa7b40a1cd64c9b0128c9750365b_rle_crop_4092302589_0.png.png imagette300031881767750182/1767749666_1890895_1402737914_de7ac2d8d2b01477ca506b93abaacc44_rle_crop_4092301137_0.png.png imagette300031881767750182/1767750084_1915421_1402738050_87668fdd22347fdde683860b8acdb218_rle_crop_4092303017_0.png.png imagette300031881767750182/1767750026_1912892_1402738068_02276c3b829acab3a547ffd9c5ae391e_rle_crop_4092302578_0.png.png imagette300031881767750182/1767750026_1912892_1402738068_02276c3b829acab3a547ffd9c5ae391e_rle_crop_4092302572_0.png.png imagette300031881767750182/1767749827_1900256_1402737947_dd8ff76145ba3bb58e58bb529686e36c_rle_crop_4092301909_0.png.png imagette300031881767750182/1767749786_1897405_1402737979_14f58730cb6da319e2eb44a626a76198_rle_crop_4092301697_0.png.png imagette300031881767750182/1767750084_1915421_1402738037_73253d0f72b29c11169fa071ed10c4ab_rle_crop_4092303040_0.png.png imagette300031911767750183/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/bb865ad05791232a410773b0e9149974_18524959.png imagette300031881767750182 30003191 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=30003191 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300031911767750183 30003182 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=30003182 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402738006: '1767749666_1890895_1402737906_1aa5dd0ec0b07749d5a9fa3e84613021_rle_crop_4092301180_0.png', 1402738061: '1767749786_1897405_1402737971_67ae866df6df7a6ff6e762c23db10791_rle_crop_4092301731_0.png', 1402738079: '1767749827_1900256_1402737953_37c169757138184ca576f9f61aac027c_rle_crop_4092301893_0.png', 1402738165: '1767750026_1912892_1402738072_0fbec8286d0be9a25d7feb312c9eb580_rle_crop_4092302557_0.png', 1402738193: '1767750084_1915421_1402738037_73253d0f72b29c11169fa071ed10c4ab_rle_crop_4092303046_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7a7c12ad7a86abc9ced4931e5502ec0e_9196955.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/216dbd4c5f24ebbb519a4925595ec013_20694115.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/01ea30ce662b6ada935b677d55182597_95618767.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9d7b17c3d51175eef9a81d1858c3df63_69806647.png change filename to text .imagette300031821767750183/ imagette300031821767750183/1767750026_1912892_1402738072_0fbec8286d0be9a25d7feb312c9eb580_rle_crop_4092302557_0.png.png imagette300031821767750183/1767749827_1900256_1402737953_37c169757138184ca576f9f61aac027c_rle_crop_4092301893_0.png.png imagette300031821767750183/1767749666_1890895_1402737906_1aa5dd0ec0b07749d5a9fa3e84613021_rle_crop_4092301180_0.png.png imagette300031821767750183/1767750084_1915421_1402738037_73253d0f72b29c11169fa071ed10c4ab_rle_crop_4092303046_0.png.png imagette300031821767750183/1767749786_1897405_1402737971_67ae866df6df7a6ff6e762c23db10791_rle_crop_4092301731_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/af6d9d58efeaa8938594acb555a323ce_87271318.png imagette300031821767750183 30003189 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=30003189 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402738009: '1767749666_1890895_1402737914_de7ac2d8d2b01477ca506b93abaacc44_rle_crop_4092301140_0.png', 1402738010: '1767749666_1890895_1402737910_f2b474cf53e6fc98536e93e11504b521_rle_crop_4092301151_0.png', 1402738011: '1767749666_1890895_1402737907_78a54fc94b318fb2dad6ed439e8dbfaf_rle_crop_4092301168_0.png', 1402738082: '1767749827_1900256_1402737953_37c169757138184ca576f9f61aac027c_rle_crop_4092301892_0.png', 1402738167: '1767750026_1912892_1402738072_0fbec8286d0be9a25d7feb312c9eb580_rle_crop_4092302559_0.png', 1402738186: '1767750065_1913638_1402738055_e1c343900b469ae729cfb74406ec11d3_rle_crop_4092302754_0.png', 1402738196: '1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092303005_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/bdbd2c9b745f3483d67d3084da060f73_44451499.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7a253c98f9f789eba5fa13b1f48571c8_47548787.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/28ba0bd54b15c72840fee938d85b4b5f_46984821.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/d739691c0a110ef06c6018b88081b79d_36395032.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a3d1908389f03f2d94bda31fe9ba9fd1_50754170.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/74b0cfbb153b0828fac6f07c063bdc7f_24784546.png change filename to text .imagette300031891767750183/ imagette300031891767750183/1767749666_1890895_1402737914_de7ac2d8d2b01477ca506b93abaacc44_rle_crop_4092301140_0.png.png imagette300031891767750183/1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092303005_0.png.png imagette300031891767750183/1767750026_1912892_1402738072_0fbec8286d0be9a25d7feb312c9eb580_rle_crop_4092302559_0.png.png imagette300031891767750183/1767749666_1890895_1402737907_78a54fc94b318fb2dad6ed439e8dbfaf_rle_crop_4092301168_0.png.png imagette300031891767750183/1767749827_1900256_1402737953_37c169757138184ca576f9f61aac027c_rle_crop_4092301892_0.png.png imagette300031891767750183/1767750065_1913638_1402738055_e1c343900b469ae729cfb74406ec11d3_rle_crop_4092302754_0.png.png imagette300031891767750183/1767749666_1890895_1402737910_f2b474cf53e6fc98536e93e11504b521_rle_crop_4092301151_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/26165926668b8d78f8ee500614888de5_37035025.png imagette300031891767750183 30003190 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=30003190 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402738065: '1767749786_1897405_1402737971_67ae866df6df7a6ff6e762c23db10791_rle_crop_4092301732_0.png', 1402738084: '1767749827_1900256_1402737949_1ef51a9f91ca79077962dee62a0f4d80_rle_crop_4092301902_0.png', 1402738085: '1767749827_1900256_1402737947_dd8ff76145ba3bb58e58bb529686e36c_rle_crop_4092301912_0.png', 1402738188: '1767750065_1913638_1402738055_e1c343900b469ae729cfb74406ec11d3_rle_crop_4092302759_0.png', 1402738189: '1767750065_1913638_1402738055_e1c343900b469ae729cfb74406ec11d3_rle_crop_4092302764_0.png', 1402738200: '1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092303009_0.png', 1402738201: '1767750084_1915421_1402738037_73253d0f72b29c11169fa071ed10c4ab_rle_crop_4092303045_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/06b2a1f8007cbac663d9a887760c8e34_17179144.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/b6e7739865280b8021b555b4455697ff_86002626.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/4ad30e504a907875a8e317d4083948c3_86609084.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ed73285fecb87c355c3786ff3b7609df_13645764.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/d38f5c04c756f98312a2b4f2164d99fe_92528161.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/53157108b90002a4c0d67173f3dd3d1a_32363035.png change filename to text .imagette300031901767750184/ imagette300031901767750184/1767749827_1900256_1402737949_1ef51a9f91ca79077962dee62a0f4d80_rle_crop_4092301902_0.png.png imagette300031901767750184/1767750065_1913638_1402738055_e1c343900b469ae729cfb74406ec11d3_rle_crop_4092302759_0.png.png imagette300031901767750184/1767750084_1915421_1402738037_73253d0f72b29c11169fa071ed10c4ab_rle_crop_4092303045_0.png.png imagette300031901767750184/1767750084_1915421_1402738052_77201f0b716f4577865a2674bb09051c_rle_crop_4092303009_0.png.png imagette300031901767750184/1767749786_1897405_1402737971_67ae866df6df7a6ff6e762c23db10791_rle_crop_4092301732_0.png.png imagette300031901767750184/1767750065_1913638_1402738055_e1c343900b469ae729cfb74406ec11d3_rle_crop_4092302764_0.png.png imagette300031901767750184/1767749827_1900256_1402737947_dd8ff76145ba3bb58e58bb529686e36c_rle_crop_4092301912_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9bbeb8c12db4568ab9aa635a8a488104_10487221.png imagette300031901767750184 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=30003176 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/30003193,30003194,30003195,30003196,30003197,30003198,30003199,30003200,30003201,30003202,30003203,30003204?tags=environnement,mal_croppe,Teint_Dans_La_Masse,kraft,metal,plastique,papier,autre_refus,cartonnette,Carton_gris,Carton_brun,flou your option no_mail is active, we will not send the real mail to your client args[1402738213] : ('0.04581996353836964',) no score found for photo 1402738213 We are sending mail with results at report@fotonower.com args[1402738211] : ('0.04581996353836964',) no score found for photo 1402738211 We are sending mail with results at report@fotonower.com args[1402738209] : ('0.04581996353836964',) no score found for photo 1402738209 We are sending mail with results at report@fotonower.com args[1402738175] : ('0.04581996353836964',) no score found for photo 1402738175 We are sending mail with results at report@fotonower.com args[1402738173] : ('0.04581996353836964',) no score found for photo 1402738173 We are sending mail with results at report@fotonower.com args[1402738172] : ('0.04581996353836964',) no score found for photo 1402738172 We are sending mail with results at report@fotonower.com args[1402738171] : ('0.04581996353836964',) no score found for photo 1402738171 We are sending mail with results at report@fotonower.com args[1402738159] : ('0.04581996353836964',) no score found for photo 1402738159 We are sending mail with results at report@fotonower.com args[1402738157] : ('0.04581996353836964',) no score found for photo 1402738157 We are sending mail with results at report@fotonower.com args[1402738153] : ('0.04581996353836964',) no score found for photo 1402738153 We are sending mail with results at report@fotonower.com args[1402738151] : ('0.04581996353836964',) no score found for photo 1402738151 We are sending mail with results at report@fotonower.com args[1402738150] : ('0.04581996353836964',) no score found for photo 1402738150 We are sending mail with results at report@fotonower.com args[1402738149] : ('0.04581996353836964',) no score found for photo 1402738149 We are sending mail with results at report@fotonower.com refus_total : 0.04581996353836964 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=30003176 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_P30003176_07-01-2026_02_43_00.pdf results_Auto_P30003176_07-01-2026_02_43_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003176_07-01-2026_02_43_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','30003176','results_Auto_P30003176_07-01-2026_02_43_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003176_07-01-2026_02_43_00.pdf','pdf','','0.25','0.04581996353836964') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30003176]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149] map_info['map_portfolio_photo'] : {30003176: [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149, 1402738125, 1402738123, 1402738121, 1402738118, 1402738116, 1402738114, 1402738105, 1402738099, 1402738075, 1402738072, 1402738070, 1402738068, 1402738067, 1402738055, 1402738052, 1402738050, 1402738044, 1402738037, 1402738021, 1402738017, 1402738015, 1402738014, 1402738013, 1402737994, 1402737982, 1402737979, 1402737975, 1402737973, 1402737972, 1402737971, 1402737956, 1402737953, 1402737949, 1402737947, 1402737946, 1402737939, 1402737914, 1402737910, 1402737907, 1402737906, 1402737905]} final : False mtd_id 4302 list_pids : [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149] 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, '4319777') ('4302', '30003176', '1402738213', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738211', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738209', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738175', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738173', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738172', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738171', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738159', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738157', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738153', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738151', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738150', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738149', None, None, None, None, None, '4319777') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '30003176', '1402738213', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738211', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738209', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738175', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738173', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738172', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738171', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738159', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738157', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738153', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738151', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738150', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738149', None, None, None, None, None, '4319777')] time used for this insertion : 0.015961885452270508 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.6651952266693115 time spend to save output : 0.0161895751953125 total time spend for step 4 : 5.681384801864624 step5:split_time_score Wed Jan 7 02:43:05 2026 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 : ['30003176'] 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 : [('30003176',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30003176) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402738213: {'path': 'temp/1767750180_2063434_1402738213_9c133b80ccece771077e189c800640fa.jpg', 'extension': 'jpg'}, 1402738175: {'path': 'temp/1767750180_2063434_1402738175_eced958d83131497ebdc7e97e1e934b0.jpg', 'extension': 'jpg'}, 1402738209: {'path': 'temp/1767750180_2063434_1402738209_4c99fe1d9ccf31ff0a19225691ffc350.jpg', 'extension': 'jpg'}, 1402738211: {'path': 'temp/1767750180_2063434_1402738211_69372881ec44cfc46b904101b3e496ae.jpg', 'extension': 'jpg'}, 1402738153: {'path': 'temp/1767750180_2063434_1402738153_2265138c0bed4b28f8e952fd4015f70d.jpg', 'extension': 'jpg'}, 1402738157: {'path': 'temp/1767750180_2063434_1402738157_023ff5a1f2cd26b1df1de54a3b558656.jpg', 'extension': 'jpg'}, 1402738159: {'path': 'temp/1767750180_2063434_1402738159_b5c6a9f60cad8ea1b6e82f0ac2f22385.jpg', 'extension': 'jpg'}, 1402738149: {'path': 'temp/1767750180_2063434_1402738149_223eb6eed6a489c08d7c053b97a28c10.jpg', 'extension': 'jpg'}, 1402738150: {'path': 'temp/1767750180_2063434_1402738150_2a86f0915382aac111a78a4fabca42c1.jpg', 'extension': 'jpg'}, 1402738151: {'path': 'temp/1767750180_2063434_1402738151_1af2776c8f980c397681ad774fc6534a.jpg', 'extension': 'jpg'}, 1402738171: {'path': 'temp/1767750180_2063434_1402738171_8cb23e47c175253818d3ea4521144cd9.jpg', 'extension': 'jpg'}, 1402738172: {'path': 'temp/1767750180_2063434_1402738172_7f5c39936e828c1fbe39252c85154a27.jpg', 'extension': 'jpg'}, 1402738173: {'path': 'temp/1767750180_2063434_1402738173_3d0b7797fd2e79750cf954c820309f8e.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 = 30003176; (('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 = 30003176 group by h (('02', 54),) 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=30003176 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 (30003176) 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 (30003176) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07012026 30003176 Nombre de photos uploadées : 54 / 23040 (0%) 07012026 30003176 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 07012026 30003176 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1402737914, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/de7ac2d8d2b01477ca506b93abaacc44.jpg', 'username': None, 'uploaded_at': 1767749468, 'text': 'image_07012026_02_30_04_10141.jpg'}, {'photo_id': 1402737910, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f2b474cf53e6fc98536e93e11504b521.jpg', 'username': None, 'uploaded_at': 1767749468, 'text': 'image_07012026_02_30_14_10136.jpg'}, {'photo_id': 1402737907, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/78a54fc94b318fb2dad6ed439e8dbfaf.jpg', 'username': None, 'uploaded_at': 1767749468, 'text': 'image_07012026_02_30_25_10135.jpg'}, {'photo_id': 1402737906, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/1aa5dd0ec0b07749d5a9fa3e84613021.jpg', 'username': None, 'uploaded_at': 1767749468, 'text': 'image_07012026_02_30_35_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023374557495117188 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 30003176, '2026-01-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2854728,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24812936782836914 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= 2854728 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861482, 'mtr_portfolio_id': 29999365, 'dashboard_result_id': 19087628, '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_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861482, 'mtr_portfolio_id': 29999670, 'dashboard_result_id': 19087629, '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_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861482, 'mtr_portfolio_id': 30000240, 'dashboard_result_id': 19087630, '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_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861482, 'mtr_portfolio_id': 30000381, 'dashboard_result_id': 19087631, '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_P30000381_07-01-2026_01_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861482, 'mtr_portfolio_id': 30001385, 'dashboard_result_id': 19087632, '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_P30001385_07-01-2026_01_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861482, 'mtr_portfolio_id': 30001625, 'dashboard_result_id': 19087633, '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_P30001625_07-01-2026_02_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861482, 'mtr_portfolio_id': 30001993, 'dashboard_result_id': 19087634, '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_P30001993_07-01-2026_02_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861482, 'mtr_portfolio_id': 30002683, 'dashboard_result_id': 19087635, '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_P30002683_07-01-2026_02_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002720, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861482, 'mtr_portfolio_id': 30003176, 'dashboard_result_id': 19087636, '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_P30003176_07-01-2026_02_38_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003191, '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 = 29999365 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': 4319217, 'mtr_portfolio_id': 29999365, 'created_at': datetime.datetime(2026, 1, 7, 0, 16, 58), 'result': '0.03556487967171043', 'result_long': None, 'result_double': None}] Qualite : 0.03556487967171043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29999365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999365_07-01-2026_00_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29999365 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_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, 'pht': 3726}}" where mtr_portfolio_id = 29999365 and dashboard_run_id = 2861482 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`=29999365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087628, 0.03556487967171043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, '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 = 29999670 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': 4319241, 'mtr_portfolio_id': 29999670, 'created_at': datetime.datetime(2026, 1, 7, 0, 35), 'result': '0.07220360950194565', 'result_long': None, 'result_double': None}] Qualite : 0.07220360950194565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29999670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999670_07-01-2026_00_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29999670 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_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, 'pht': 3726}}" where mtr_portfolio_id = 29999670 and dashboard_run_id = 2861482 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`=29999670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087629, 0.07220360950194565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, '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 = 30000240 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': 4319321, 'mtr_portfolio_id': 30000240, 'created_at': datetime.datetime(2026, 1, 7, 0, 48, 59), 'result': '0.08740129110559802', 'result_long': None, 'result_double': None}] Qualite : 0.08740129110559802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30000240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000240_07-01-2026_00_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30000240 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_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, 'pht': 3726}}" where mtr_portfolio_id = 30000240 and dashboard_run_id = 2861482 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`=30000240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087630, 0.08740129110559802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, '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 = 30000381 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': 4319352, 'mtr_portfolio_id': 30000381, 'created_at': datetime.datetime(2026, 1, 7, 1, 2, 31), 'result': '0.03941804582502747', 'result_long': None, 'result_double': None}] Qualite : 0.03941804582502747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30000381 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_01_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30000381 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_P30000381_07-01-2026_01_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, 'pht': 3726}}" where mtr_portfolio_id = 30000381 and dashboard_run_id = 2861482 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`=30000381 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087631, 0.03941804582502747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_01_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, '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 = 30001385 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': 4319516, 'mtr_portfolio_id': 30001385, 'created_at': datetime.datetime(2026, 1, 7, 1, 47), 'result': '0.03810687232726498', 'result_long': None, 'result_double': None}] Qualite : 0.03810687232726498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001385_07-01-2026_01_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001385 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_P30001385_07-01-2026_01_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, 'pht': 3726}}" where mtr_portfolio_id = 30001385 and dashboard_run_id = 2861482 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`=30001385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087632, 0.03810687232726498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001385_07-01-2026_01_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, '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 = 30001625 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': 4319549, 'mtr_portfolio_id': 30001625, 'created_at': datetime.datetime(2026, 1, 7, 2, 3), 'result': '0.07216863145607044', 'result_long': None, 'result_double': None}] Qualite : 0.07216863145607044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001625_07-01-2026_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001625 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_P30001625_07-01-2026_02_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, 'pht': 3726}}" where mtr_portfolio_id = 30001625 and dashboard_run_id = 2861480 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`=30001625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087633, 0.07216863145607044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001625_07-01-2026_02_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, '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 = 30001993 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': 4319642, 'mtr_portfolio_id': 30001993, 'created_at': datetime.datetime(2026, 1, 7, 2, 17, 1), 'result': '0.06528625286761691', 'result_long': None, 'result_double': None}] Qualite : 0.06528625286761691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001993_07-01-2026_02_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001993 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_P30001993_07-01-2026_02_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, 'pht': 3726}}" where mtr_portfolio_id = 30001993 and dashboard_run_id = 2861480 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`=30001993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087634, 0.06528625286761691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001993_07-01-2026_02_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, '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 = 30002683 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': 4319707, 'mtr_portfolio_id': 30002683, 'created_at': datetime.datetime(2026, 1, 7, 2, 33, 29), 'result': '0.07765632558480265', 'result_long': None, 'result_double': None}] Qualite : 0.07765632558480265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30002683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30002683_07-01-2026_02_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30002683 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_P30002683_07-01-2026_02_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002720, 'pht': 3726}}" where mtr_portfolio_id = 30002683 and dashboard_run_id = 2861480 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`=30002683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087635, 0.07765632558480265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30002683_07-01-2026_02_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002720, '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 = 30003176 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': 4319777, 'mtr_portfolio_id': 30003176, 'created_at': datetime.datetime(2026, 1, 7, 2, 42, 59), 'result': '0.04581996353836964', 'result_long': None, 'result_double': None}] Qualite : 0.04581996353836964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30003176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003176_07-01-2026_02_43_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30003176 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_P30003176_07-01-2026_02_43_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003191, 'pht': 3726}}" where mtr_portfolio_id = 30003176 and dashboard_run_id = 2861480 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`=30003176 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087636, 0.04581996353836964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30003176_07-01-2026_02_43_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30003180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30003181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30003182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30003183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30003184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30003185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30003186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30003187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30003188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30003189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30003190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30003191, '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 (29999365,29999670,30000240,30000381,30001385,30001625,30001993,30002683,30003176) result : ((1402725806,), (1402725885,), (1402725888,), (1402725954,), (1402725956,), (1402725957,), (1402725959,), (1402726002,), (1402726004,), (1402726006,), (1402726033,), (1402726034,), (1402726036,), (1402726038,), (1402726054,), (1402726055,), (1402726058,), (1402726060,), (1402726064,), (1402726067,), (1402726080,), (1402726081,), (1402726086,), (1402726091,), (1402726189,), (1402726205,), (1402726236,), (1402726249,), (1402726250,), (1402726251,), (1402726261,), (1402726451,), (1402726452,), (1402726482,), (1402726520,), (1402726557,), (1402726579,), (1402726590,), (1402726591,), (1402726592,), (1402726656,), (1402726658,), (1402726661,), (1402726663,), (1402726666,), (1402726670,), (1402726677,), (1402726679,), (1402726680,), (1402726682,), (1402726683,), (1402726684,), (1402726686,), (1402726688,), (1402726692,), (1402726695,), (1402726734,), (1402726726,), (1402726727,), (1402726728,), (1402726730,), (1402726746,), (1402726747,), (1402726748,), (1402726790,), (1402726791,), (1402726793,), (1402726794,), (1402726837,), (1402726838,), (1402726839,), (1402726841,), (1402726844,), (1402726927,), (1402726931,), (1402726933,), (1402726935,), (1402726948,), (1402726949,), (1402726950,), (1402727047,), (1402727048,), (1402727049,), (1402727052,), (1402727055,), (1402727058,), (1402727061,), (1402727062,), (1402727063,), (1402727084,), (1402727085,), (1402727087,), (1402727104,), (1402727105,), (1402727129,), (1402727140,), (1402727149,), (1402727152,), (1402727156,), (1402727227,), (1402727229,), (1402727363,), (1402727462,), (1402727384,), (1402727476,), (1402727537,), (1402727538,), (1402727555,), (1402727556,), (1402727558,), (1402727562,), (1402727565,), (1402727568,), (1402727571,), (1402727572,), (1402727574,), (1402727575,), (1402727583,), (1402727584,), (1402727585,), (1402727601,), (1402727602,), (1402727603,), (1402727604,), (1402727607,), (1402727620,), (1402727621,), (1402727623,), (1402727624,), (1402727625,), (1402727626,), (1402727639,), (1402727640,), (1402727641,), (1402727677,), (1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,), (1402728536,), (1402728539,), (1402728542,), (1402728546,), (1402728549,), (1402728557,), (1402732292,), (1402732293,), (1402732328,), (1402732356,), (1402732359,), (1402732365,), (1402732369,), (1402732374,), (1402732548,), (1402732549,), (1402732550,), (1402732552,), (1402732556,), (1402732572,), (1402732582,), (1402732593,), (1402732594,), (1402732596,), (1402732597,), (1402732627,), (1402732628,), (1402732629,), (1402732653,), (1402732682,), (1402732711,), (1402732712,), (1402732713,), (1402732716,), (1402732719,), (1402732722,), (1402732731,), (1402732732,), (1402732733,), (1402732734,), (1402732751,), (1402732752,), (1402732754,), (1402732765,), (1402732766,), (1402732770,), (1402732771,), (1402732774,), (1402732776,), (1402732803,), (1402732793,), (1402732795,), (1402732798,), (1402732800,), (1402732809,), (1402732811,), (1402732814,), (1402732839,), (1402732845,), (1402732847,), (1402732850,), (1402732853,), (1402732865,), (1402732866,), (1402732867,), (1402732868,), (1402732872,), (1402732900,), (1402732901,), (1402732903,), (1402732916,), (1402732917,), (1402732919,), (1402732920,), (1402732923,), (1402732925,), (1402732957,), (1402732958,), (1402732959,), (1402732960,), (1402732963,), (1402732966,), (1402732976,), (1402732978,), (1402732997,), (1402732999,), (1402733001,), (1402733002,), (1402733005,), (1402733008,), (1402733019,), (1402733021,), (1402733023,), (1402733036,), (1402733038,), (1402733040,), (1402733044,), (1402733046,), (1402733079,), (1402733081,), (1402733101,), (1402733105,), (1402733110,), (1402733118,), (1402733119,), (1402733122,), (1402733123,), (1402733125,), (1402733126,), (1402733129,), (1402733131,), (1402733177,), (1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,), (1402737458,), (1402737460,), (1402737462,), (1402737464,), (1402737467,), (1402737489,), (1402737496,), (1402737510,), (1402737511,), (1402737513,), (1402737514,), (1402737547,), (1402737539,), (1402737540,), (1402737542,), (1402737544,), (1402737569,), (1402737571,), (1402737572,), (1402737573,), (1402737577,), (1402737581,), (1402737602,), (1402737603,), (1402737624,), (1402737625,), (1402737626,), (1402737628,), (1402737665,), (1402737696,), (1402737697,), (1402737698,), (1402737713,), (1402737714,), (1402737716,), (1402737718,), (1402737721,), (1402737740,), (1402737758,), (1402737759,), (1402737760,), (1402737761,), (1402737785,), (1402737786,), (1402737797,), (1402737799,), (1402737802,), (1402737806,), (1402737811,), (1402737816,), (1402737827,), (1402737828,), (1402737829,), (1402737831,), (1402737835,), (1402737854,), (1402737855,), (1402737856,), (1402737857,), (1402737887,), (1402737890,), (1402737891,), (1402737893,), (1402737917,), (1402737905,), (1402737906,), (1402737907,), (1402737910,), (1402737914,), (1402737939,), (1402737946,), (1402737947,), (1402737949,), (1402737953,), (1402737956,), (1402737971,), (1402737972,), (1402737973,), (1402737975,), (1402737979,), (1402737982,), (1402737994,), (1402738013,), (1402738014,), (1402738015,), (1402738017,), (1402738021,), (1402738037,), (1402738044,), (1402738050,), (1402738052,), (1402738055,), (1402738067,), (1402738068,), (1402738070,), (1402738072,), (1402738075,), (1402738099,), (1402738105,), (1402738114,), (1402738116,), (1402738118,), (1402738121,), (1402738123,), (1402738125,), (1402738149,), (1402738150,), (1402738151,), (1402738153,), (1402738157,), (1402738159,), (1402738171,), (1402738172,), (1402738173,), (1402738175,), (1402738209,), (1402738211,), (1402738213,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07012026': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30003176]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149] map_info['map_portfolio_photo'] : {30003176: [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149, 1402738125, 1402738123, 1402738121, 1402738118, 1402738116, 1402738114, 1402738105, 1402738099, 1402738075, 1402738072, 1402738070, 1402738068, 1402738067, 1402738055, 1402738052, 1402738050, 1402738044, 1402738037, 1402738021, 1402738017, 1402738015, 1402738014, 1402738013, 1402737994, 1402737982, 1402737979, 1402737975, 1402737973, 1402737972, 1402737971, 1402737956, 1402737953, 1402737949, 1402737947, 1402737946, 1402737939, 1402737914, 1402737910, 1402737907, 1402737906, 1402737905]} final : True mtd_id 4302 list_pids : [1402738213, 1402738211, 1402738209, 1402738175, 1402738173, 1402738172, 1402738171, 1402738159, 1402738157, 1402738153, 1402738151, 1402738150, 1402738149] Looping around the photos to save general results len do output : 1 /30003176Didn'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, '4319777') ('4302', '30003176', '1402738213', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738211', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738209', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738175', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738173', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738172', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738171', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738159', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738157', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738153', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738151', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738150', None, None, None, None, None, '4319777') ('4302', None, None, None, None, None, None, None, '4319777') ('4302', '30003176', '1402738149', None, None, None, None, None, '4319777') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '30003176', 'None', None, None, None, None, '4319777'), ('4302', '30003176', '1402738213', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738211', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738209', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738175', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738173', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738172', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738171', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738159', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738157', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738153', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738151', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738150', None, None, None, None, None, '4319777'), ('4302', '30003176', '1402738149', None, None, None, None, None, '4319777')] time used for this insertion : 0.01900339126586914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9499337673187256 time spend to save output : 0.019245386123657227 total time spend for step 5 : 0.9691791534423828 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 (4319777) 2.21user 2.52system 0:11.39elapsed 41%CPU (0avgtext+0avgdata 168692maxresident)k 8inputs+14472outputs (16major+76512minor)pagefaults 0swaps