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 : 3690863 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 (3937337) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3937337) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783528 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3937337'] with mtr_portfolio_ids : ['27783528'] and first list_photo_ids : [] new path : /proc/3690863/ Name: python3 Umask: 0002 State: R (running) Tgid: 3690863 Ngid: 0 Pid: 3690863 PPid: 3690862 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3690863 NSpid: 3690863 NSpgid: 3689600 NSsid: 3689600 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99456 kB VmRSS: 99456 kB RssAnon: 59840 kB RssFile: 39616 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 50 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3690863', 'Ngid': '0', 'Pid': '3690863', 'PPid': '3690862', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3690863', 'NSpid': '3690863', 'NSpgid': '3689600', 'NSsid': '3689600', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99456 kB', 'VmRSS': '99456 kB', 'RssAnon': '59840 kB', 'RssFile': '39616 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '50', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '3690863', '1106856', '0', '1106856', '865608', '99456', b'', 'marlene', '3937337') 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 (27783528) 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 (3937337 ) ) 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 (27783528) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1389347204, 'portfolio_id': 27783528}, {'photo_id': 1389347166, 'portfolio_id': 27783528}, {'photo_id': 1389347122, 'portfolio_id': 27783528}, {'photo_id': 1389347074, 'portfolio_id': 27783528}, {'photo_id': 1389347033, 'portfolio_id': 27783528}, {'photo_id': 1389346964, 'portfolio_id': 27783528}, {'photo_id': 1389346690, 'portfolio_id': 27783528}, {'photo_id': 1389346686, 'portfolio_id': 27783528}, {'photo_id': 1389346664, 'portfolio_id': 27783528}, {'photo_id': 1389346656, 'portfolio_id': 27783528}, {'photo_id': 1389346618, 'portfolio_id': 27783528}, {'photo_id': 1389346617, 'portfolio_id': 27783528}, {'photo_id': 1389346605, 'portfolio_id': 27783528}, {'photo_id': 1389346604, 'portfolio_id': 27783528}, {'photo_id': 1389346576, 'portfolio_id': 27783528}, {'photo_id': 1389346575, 'portfolio_id': 27783528}, {'photo_id': 1389346548, 'portfolio_id': 27783528}, {'photo_id': 1389346547, 'portfolio_id': 27783528}, {'photo_id': 1389346493, 'portfolio_id': 27783528}, {'photo_id': 1389346395, 'portfolio_id': 27783528}, {'photo_id': 1389346143, 'portfolio_id': 27783528}, {'photo_id': 1389345904, 'portfolio_id': 27783528}, {'photo_id': 1389345881, 'portfolio_id': 27783528}, {'photo_id': 1389345865, 'portfolio_id': 27783528}, {'photo_id': 1389345591, 'portfolio_id': 27783528}, {'photo_id': 1389345583, 'portfolio_id': 27783528}, {'photo_id': 1389345580, 'portfolio_id': 27783528}, {'photo_id': 1389345577, 'portfolio_id': 27783528}, {'photo_id': 1389345575, 'portfolio_id': 27783528}, {'photo_id': 1389345568, 'portfolio_id': 27783528}, {'photo_id': 1389345554, 'portfolio_id': 27783528}, {'photo_id': 1389345553, 'portfolio_id': 27783528}, {'photo_id': 1389345550, 'portfolio_id': 27783528}, {'photo_id': 1389345403, 'portfolio_id': 27783528}, {'photo_id': 1389345221, 'portfolio_id': 27783528}, {'photo_id': 1389345209, 'portfolio_id': 27783528}, {'photo_id': 1389345201, 'portfolio_id': 27783528}, {'photo_id': 1389345186, 'portfolio_id': 27783528}, {'photo_id': 1389345175, 'portfolio_id': 27783528}, {'photo_id': 1389344968, 'portfolio_id': 27783528}, {'photo_id': 1389344929, 'portfolio_id': 27783528}, {'photo_id': 1389344923, 'portfolio_id': 27783528}, {'photo_id': 1389344913, 'portfolio_id': 27783528}, {'photo_id': 1389344910, 'portfolio_id': 27783528}, {'photo_id': 1389344904, 'portfolio_id': 27783528}] map_portfolio_id_photo_id: {27783528: [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547, 1389346493, 1389346395, 1389346143, 1389345904, 1389345881, 1389345865, 1389345591, 1389345583, 1389345580, 1389345577, 1389345575, 1389345568, 1389345554, 1389345553, 1389345550, 1389345403, 1389345221, 1389345209, 1389345201, 1389345186, 1389345175, 1389344968, 1389344929, 1389344923, 1389344913, 1389344910, 1389344904]} ##### 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.053458452224731445 #### 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 Tue Oct 14 07:08:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27783528) 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 : 27783528 get user id for portfolio 27783528 get sub ptf for main ptf 27783528, type 3726 and hashtags ['Carton_brun', 'cartonnette', 'flou', 'autre_refus', 'environnement', 'kraft', 'metal', 'Teint_Dans_La_Masse', 'plastique', 'mal_croppe', 'papier', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27783528 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','flou','autre_refus','environnement','kraft','metal','Teint_Dans_La_Masse','plastique','mal_croppe','papier','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27783528 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','flou','autre_refus','environnement','kraft','metal','Teint_Dans_La_Masse','plastique','mal_croppe','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 27783528, 'sub_port_id': 27783534, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18743991, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'Carton_gris': {'main_port_id': 27783528, 'sub_port_id': 27783537, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18743992, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'papier': {'main_port_id': 27783528, 'sub_port_id': 27783538, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18743993, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'plastique': {'main_port_id': 27783528, 'sub_port_id': 27783539, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18743994, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'cartonnette': {'main_port_id': 27783528, 'sub_port_id': 27783540, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18743995, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'environnement': {'main_port_id': 27783528, 'sub_port_id': 27783541, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18743996, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'mal_croppe': {'main_port_id': 27783528, 'sub_port_id': 27783542, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18743997, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'metal': {'main_port_id': 27783528, 'sub_port_id': 27783543, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18743998, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'flou': {'main_port_id': 27783528, 'sub_port_id': 27783544, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18743999, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'kraft': {'main_port_id': 27783528, 'sub_port_id': 27783545, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744000, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'Carton_brun': {'main_port_id': 27783528, 'sub_port_id': 27783546, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744001, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}, 'autre_refus': {'main_port_id': 27783528, 'sub_port_id': 27783547, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744002, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 13)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27783534 , 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=27783528 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 (27783534) result : ((1389347055,), (1389347057,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783537 , 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=27783528 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 (27783537) result : ((1389347067,), (1389347211,), (1389347212,), (1389347371,), (1389347372,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783538 , 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=27783528 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 (27783538) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783539 , 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=27783528 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 (27783539) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783540 , 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=27783528 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 (27783540) result : ((1389347076,), (1389347213,), (1389347214,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783541 , 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=27783528 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 (27783541) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783542 , 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=27783528 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 (27783542) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783543 , 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=27783528 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 (27783543) result : ((1389347087,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783544 , 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=27783528 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 (27783544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783545 , 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=27783528 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 (27783545) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783546 , 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=27783528 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 (27783546) result : ((1389347215,), (1389347216,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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 27783547 , 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=27783528 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 (27783547) result : ((1389347209,), (1389347210,), (1389347343,), (1389347344,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27783528) result : ((1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) 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`=27783528 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','flou','autre_refus','environnement','kraft','metal','Teint_Dans_La_Masse','plastique','mal_croppe','papier','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27783528 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','flou','autre_refus','environnement','kraft','metal','Teint_Dans_La_Masse','plastique','mal_croppe','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 27783528, 'sub_port_id': 27783562, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744015, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'Carton_gris': {'main_port_id': 27783528, 'sub_port_id': 27783565, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744016, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'papier': {'main_port_id': 27783528, 'sub_port_id': 27783566, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744017, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'plastique': {'main_port_id': 27783528, 'sub_port_id': 27783567, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744018, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'cartonnette': {'main_port_id': 27783528, 'sub_port_id': 27783568, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744019, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'environnement': {'main_port_id': 27783528, 'sub_port_id': 27783569, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744020, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'mal_croppe': {'main_port_id': 27783528, 'sub_port_id': 27783570, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744021, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'metal': {'main_port_id': 27783528, 'sub_port_id': 27783572, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744022, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'flou': {'main_port_id': 27783528, 'sub_port_id': 27783575, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744023, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'kraft': {'main_port_id': 27783528, 'sub_port_id': 27783577, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744024, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'Carton_brun': {'main_port_id': 27783528, 'sub_port_id': 27783583, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744025, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}, 'autre_refus': {'main_port_id': 27783528, 'sub_port_id': 27783587, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18744026, 'last_updated_at': datetime.datetime(2025, 10, 14, 7, 7, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 7, 7, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 7, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783534 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783575,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783577,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27783587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27783547 lien utilise dans velours : https://marlene.fotonower.com/velours/27783562,27783565,27783566,27783567,27783568,27783569,27783570,27783572,27783575,27783577,27783583,27783587?tags=Teint_Dans_La_Masse,Carton_gris,papier,plastique,cartonnette,environnement,mal_croppe,metal,flou,kraft,Carton_brun,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27783528]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547] map_info['map_portfolio_photo'] : {27783528: [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547, 1389346493, 1389346395, 1389346143, 1389345904, 1389345881, 1389345865, 1389345591, 1389345583, 1389345580, 1389345577, 1389345575, 1389345568, 1389345554, 1389345553, 1389345550, 1389345403, 1389345221, 1389345209, 1389345201, 1389345186, 1389345175, 1389344968, 1389344929, 1389344923, 1389344913, 1389344910, 1389344904]} final : False mtd_id 4302 list_pids : [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547] Looping around the photos to save general results len do output : 1 /27783528. 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, '3937337') ('4302', '27783528', '1389347204', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347166', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347122', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347074', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347033', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346964', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346690', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346686', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346664', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346656', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346618', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346617', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346605', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346604', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346576', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346575', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346548', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346547', None, None, None, None, None, '3937337') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27783528', "{'Teint_Dans_La_Masse': 27783534, 'Carton_gris': 27783537, 'papier': 27783538, 'plastique': 27783539, 'cartonnette': 27783540, 'environnement': 27783541, 'mal_croppe': 27783542, 'metal': 27783543, 'flou': 27783544, 'kraft': 27783545, 'Carton_brun': 27783546, 'autre_refus': 27783547}", None, None, None, None, '3937337'), ('4302', '27783528', '1389347204', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347166', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347122', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347074', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347033', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346964', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346690', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346686', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346664', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346656', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346618', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346617', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346605', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346604', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346576', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346575', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346548', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346547', None, None, None, None, None, '3937337')] time used for this insertion : 0.0403590202331543 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.371856689453125 time spend to save output : 0.04078412055969238 total time spend for step 1 : 5.412640810012817 step2:final Tue Oct 14 07:09:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27783528) 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 27783528 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1389344913,1389345209,1389344910,1389345186,1389345175,1389344904,1389344968,1389345554,1389344929,1389345553,1389344923,1389345550,1389345403,1389345221,1389345201,1389345591,1389345583,1389345580,1389345577,1389345575,1389346493,1389347204,1389346395,1389345568,1389346143,1389346690,1389346686,1389346664,1389345904,1389346656,1389346617,1389346618,1389345881,1389346604,1389346605,1389345865,1389346576,1389346575,1389346547,1389346548,1389347166,1389347122,1389347074,1389347033,1389346964); 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([27783528]) Inside saveOutput : final : False verbose : True original output for save of step final : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} new output for save of step final : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547] map_info['map_portfolio_photo'] : {27783528: [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547, 1389346493, 1389346395, 1389346143, 1389345904, 1389345881, 1389345865, 1389345591, 1389345583, 1389345580, 1389345577, 1389345575, 1389345568, 1389345554, 1389345553, 1389345550, 1389345403, 1389345221, 1389345209, 1389345201, 1389345186, 1389345175, 1389344968, 1389344929, 1389344923, 1389344913, 1389344910, 1389344904]} final : False mtd_id 4302 list_pids : [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547] Looping around the photos to save general results len do output : 18 /1389347204.Didn't retrieve data . /1389347166.Didn't retrieve data . /1389347122.Didn't retrieve data . /1389347074.Didn't retrieve data . /1389347033.Didn't retrieve data . /1389346964.Didn't retrieve data . /1389346690.Didn't retrieve data . /1389346686.Didn't retrieve data . /1389346664.Didn't retrieve data . /1389346656.Didn't retrieve data . /1389346618.Didn't retrieve data . /1389346617.Didn't retrieve data . /1389346605.Didn't retrieve data . /1389346604.Didn't retrieve data . /1389346576.Didn't retrieve data . /1389346575.Didn't retrieve data . /1389346548.Didn't retrieve data . /1389346547.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, '3937337') ('4302', '27783528', '1389347204', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347166', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347122', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347074', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347033', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346964', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346690', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346686', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346664', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346656', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346618', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346617', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346605', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346604', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346576', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346575', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346548', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346547', None, None, None, None, None, '3937337') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27783528', '1389347204', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389347166', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389347122', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389347074', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389347033', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346964', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346690', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346686', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346664', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346656', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346618', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346617', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346605', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346604', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346576', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346575', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346548', '0.09138122111970577', None, None, None, None, '3937337'), ('4302', '27783528', '1389346547', '0.09138122111970577', None, None, None, None, '3937337')] time used for this insertion : 0.040099382400512695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24789762496948242 time spend to save output : 0.04095268249511719 total time spend for step 2 : 0.2888503074645996 step3:velours_tree Tue Oct 14 07:09:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27783528: [{'Teint_Dans_La_Masse': 27783534, 'Carton_gris': 27783537, 'papier': 27783538, 'plastique': 27783539, 'cartonnette': 27783540, 'environnement': 27783541, 'mal_croppe': 27783542, 'metal': 27783543, 'flou': 27783544, 'kraft': 27783545, 'Carton_brun': 27783546, 'autre_refus': 27783547}]} input_args_next_step : {27783528: ()} output_args : {27783528: [{'Teint_Dans_La_Masse': 27783534, 'Carton_gris': 27783537, 'papier': 27783538, 'plastique': 27783539, 'cartonnette': 27783540, 'environnement': 27783541, 'mal_croppe': 27783542, 'metal': 27783543, 'flou': 27783544, 'kraft': 27783545, 'Carton_brun': 27783546, 'autre_refus': 27783547}]} args : 27783528 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 27783534, 'Carton_gris': 27783537, 'papier': 27783538, 'plastique': 27783539, 'cartonnette': 27783540, 'environnement': 27783541, 'mal_croppe': 27783542, 'metal': 27783543, 'flou': 27783544, 'kraft': 27783545, 'Carton_brun': 27783546, 'autre_refus': 27783547},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27783528) 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([27783528]) 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.294724702835083 time spend to save output : 4.172325134277344e-05 total time spend for step 3 : 0.2947664260864258 step4:send_mail_cod Tue Oct 14 07:09:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} input_args_next_step : {1389347204: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389347204 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389347166 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389347122 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389347074 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389347033 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346964 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346690 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346686 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346664 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346656 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346618 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346617 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346605 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346604 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346576 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346575 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346548 depend.output_id : 0 input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ()} output_args : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',)} args : 1389346547 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 : {27783528: [{'Teint_Dans_La_Masse': 27783534, 'Carton_gris': 27783537, 'papier': 27783538, 'plastique': 27783539, 'cartonnette': 27783540, 'environnement': 27783541, 'mal_croppe': 27783542, 'metal': 27783543, 'flou': 27783544, 'kraft': 27783545, 'Carton_brun': 27783546, 'autre_refus': 27783547}]} input_args_next_step : {1389347204: ('0.09138122111970577',), 1389347166: ('0.09138122111970577',), 1389347122: ('0.09138122111970577',), 1389347074: ('0.09138122111970577',), 1389347033: ('0.09138122111970577',), 1389346964: ('0.09138122111970577',), 1389346690: ('0.09138122111970577',), 1389346686: ('0.09138122111970577',), 1389346664: ('0.09138122111970577',), 1389346656: ('0.09138122111970577',), 1389346618: ('0.09138122111970577',), 1389346617: ('0.09138122111970577',), 1389346605: ('0.09138122111970577',), 1389346604: ('0.09138122111970577',), 1389346576: ('0.09138122111970577',), 1389346575: ('0.09138122111970577',), 1389346548: ('0.09138122111970577',), 1389346547: ('0.09138122111970577',), 27783528: ()} output_args : {27783528: [{'Teint_Dans_La_Masse': 27783534, 'Carton_gris': 27783537, 'papier': 27783538, 'plastique': 27783539, 'cartonnette': 27783540, 'environnement': 27783541, 'mal_croppe': 27783542, 'metal': 27783543, 'flou': 27783544, 'kraft': 27783545, 'Carton_brun': 27783546, 'autre_refus': 27783547}]} args : 27783528 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :19, first value : ('0.09138122111970577',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27783528) 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 (1389347204,1389347166,1389347122,1389347074,1389347033,1389346964,1389346690,1389346686,1389346664,1389346656,1389346618,1389346617,1389346605,1389346604,1389346576,1389346575,1389346548,1389346547) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1389346547 begin to download photo : 1389346604 begin to download photo : 1389346656 begin to download photo : 1389346964 begin to download photo : 1389347166 download finish for photo 1389347166 begin to download photo : 1389347204 download finish for photo 1389346547 begin to download photo : 1389346548 download finish for photo 1389346964 begin to download photo : 1389347033 download finish for photo 1389346656 begin to download photo : 1389346664 download finish for photo 1389346604 begin to download photo : 1389346605 download finish for photo 1389347204 download finish for photo 1389347033 begin to download photo : 1389347074 download finish for photo 1389346548 begin to download photo : 1389346575 download finish for photo 1389346664 begin to download photo : 1389346686 download finish for photo 1389346605 begin to download photo : 1389346617 download finish for photo 1389346575 begin to download photo : 1389346576 download finish for photo 1389347074 begin to download photo : 1389347122 download finish for photo 1389346686 begin to download photo : 1389346690 download finish for photo 1389347122 download finish for photo 1389346617 begin to download photo : 1389346618 download finish for photo 1389346576 download finish for photo 1389346690 download finish for photo 1389346618 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette277835391760418544/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P27783528_14-10-2025_07_09_04.pdf 27783539 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=27783539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277835391760418544 27783540 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=27783540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389347076: '1760418427_1520509_1389345201_576b1a0a9bdff88ff2eb7449b51372ab_rle_crop_3997209086_0.png', 1389347213: '1760418446_1521180_1389345553_c5d3b34e3b56f8e2d1044aad7dbef1f4_rle_crop_3997209308_0.png', 1389347214: '1760418446_1521180_1389344929_a4d8aaefd73c693d7e3173feebba6d62_rle_crop_3997209344_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c1c82f14c198a36817fbd1fcbb03bc0c_47856858.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/5f8cfbb35e9d5d0a2d6c0b7da18409df_9595592.png change filename to text .imagette277835401760418544/ imagette277835401760418544/1760418446_1521180_1389345553_c5d3b34e3b56f8e2d1044aad7dbef1f4_rle_crop_3997209308_0.png.png imagette277835401760418544/1760418427_1520509_1389345201_576b1a0a9bdff88ff2eb7449b51372ab_rle_crop_3997209086_0.png.png imagette277835401760418544/1760418446_1521180_1389344929_a4d8aaefd73c693d7e3173feebba6d62_rle_crop_3997209344_0.png.png imagette277835421760418544/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/5f8cfbb35e9d5d0a2d6c0b7da18409df_83236493.png imagette277835401760418544 27783542 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=27783542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277835421760418544 27783543 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=27783543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389347087: '1760418427_1520509_1389345201_576b1a0a9bdff88ff2eb7449b51372ab_rle_crop_3997209088_0.png'} change filename to text .imagette277835431760418544/ imagette277835431760418544/1760418427_1520509_1389345201_576b1a0a9bdff88ff2eb7449b51372ab_rle_crop_3997209088_0.png.png imagette277835441760418545/ imagette277835451760418545/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/3bc66470d1a042669d471dd9a061b982_17868770.png imagette277835431760418544 27783544 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=27783544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277835441760418545 27783545 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=27783545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277835451760418545 27783547 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=27783547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389347209: '1760418446_1521180_1389345553_c5d3b34e3b56f8e2d1044aad7dbef1f4_rle_crop_3997209310_0.png', 1389347210: '1760418446_1521180_1389344929_a4d8aaefd73c693d7e3173feebba6d62_rle_crop_3997209346_0.png', 1389347343: '1760418506_1526123_1389345881_9ca72ccf8ea32ddcebc0efe90bc53b6f_rle_crop_3997209897_0.png', 1389347344: '1760418506_1526123_1389345881_9ca72ccf8ea32ddcebc0efe90bc53b6f_rle_crop_3997209901_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/aa02575ae1f70e17f4f4096a0f1bebb7_5575035.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/aa02575ae1f70e17f4f4096a0f1bebb7_73143703.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/9ace4b0d9db9c337a4052b3c1c5ccb91_27130882.png change filename to text .imagette277835471760418545/ imagette277835471760418545/1760418506_1526123_1389345881_9ca72ccf8ea32ddcebc0efe90bc53b6f_rle_crop_3997209897_0.png.png imagette277835471760418545/1760418506_1526123_1389345881_9ca72ccf8ea32ddcebc0efe90bc53b6f_rle_crop_3997209901_0.png.png imagette277835471760418545/1760418446_1521180_1389345553_c5d3b34e3b56f8e2d1044aad7dbef1f4_rle_crop_3997209310_0.png.png imagette277835471760418545/1760418446_1521180_1389344929_a4d8aaefd73c693d7e3173feebba6d62_rle_crop_3997209346_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a38738c7f1cceaff5557c0a9c2986b7c_80956456.png imagette277835471760418545 27783534 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=27783534 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389347055: '1760418427_1520509_1389345201_576b1a0a9bdff88ff2eb7449b51372ab_rle_crop_3997209089_0.png', 1389347057: '1760418427_1520509_1389345201_576b1a0a9bdff88ff2eb7449b51372ab_rle_crop_3997209090_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/8bd4555476a5637a7abe293237b502f7_39960719.png change filename to text .imagette277835341760418545/ imagette277835341760418545/1760418427_1520509_1389345201_576b1a0a9bdff88ff2eb7449b51372ab_rle_crop_3997209089_0.png.png imagette277835341760418545/1760418427_1520509_1389345201_576b1a0a9bdff88ff2eb7449b51372ab_rle_crop_3997209090_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/2a9197640393895aef615e92a75d5d8f_926555.png imagette277835341760418545 27783537 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=27783537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389347067: '1760418427_1520509_1389345221_ab571f537d75b763afada88925792024_rle_crop_3997209077_0.png', 1389347211: '1760418446_1521180_1389345550_59b872921552fc3337cbd5b69c78edd8_rle_crop_3997209327_0.png', 1389347212: '1760418446_1521180_1389344923_1e173b3399a60cf93bd25751112a2ab5_rle_crop_3997209363_0.png', 1389347371: '1760418506_1526123_1389345881_9ca72ccf8ea32ddcebc0efe90bc53b6f_rle_crop_3997209896_0.png', 1389347372: '1760418506_1526123_1389345865_feb4ce3cc0c7ac719a2e3f92abe563a3_rle_crop_3997209909_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c67c506cada6a28e3642596120d6f673_5327475.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a1f7484e97e230b063698a820d4dfdd0_27295325.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a1f7484e97e230b063698a820d4dfdd0_64558008.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/531536a689044c70e48c60248d90e01d_23983362.png change filename to text .imagette277835371760418545/ imagette277835371760418545/1760418506_1526123_1389345865_feb4ce3cc0c7ac719a2e3f92abe563a3_rle_crop_3997209909_0.png.png imagette277835371760418545/1760418446_1521180_1389344923_1e173b3399a60cf93bd25751112a2ab5_rle_crop_3997209363_0.png.png imagette277835371760418545/1760418446_1521180_1389345550_59b872921552fc3337cbd5b69c78edd8_rle_crop_3997209327_0.png.png imagette277835371760418545/1760418506_1526123_1389345881_9ca72ccf8ea32ddcebc0efe90bc53b6f_rle_crop_3997209896_0.png.png imagette277835371760418545/1760418427_1520509_1389345221_ab571f537d75b763afada88925792024_rle_crop_3997209077_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c747e8606825606fbc18c53ae0163f13_42048334.png imagette277835371760418545 27783546 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=27783546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389347215: '1760418446_1521180_1389345550_59b872921552fc3337cbd5b69c78edd8_rle_crop_3997209330_0.png', 1389347216: '1760418446_1521180_1389344923_1e173b3399a60cf93bd25751112a2ab5_rle_crop_3997209366_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c17c488fee7e23f09ae719a2ec05d6de_16812773.png change filename to text .imagette277835461760418546/ imagette277835461760418546/1760418446_1521180_1389344923_1e173b3399a60cf93bd25751112a2ab5_rle_crop_3997209366_0.png.png imagette277835461760418546/1760418446_1521180_1389345550_59b872921552fc3337cbd5b69c78edd8_rle_crop_3997209330_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c17c488fee7e23f09ae719a2ec05d6de_24249846.png imagette277835461760418546 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27783528 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27783562,27783565,27783566,27783567,27783568,27783569,27783570,27783572,27783575,27783577,27783583,27783587?tags=Teint_Dans_La_Masse,Carton_gris,papier,plastique,cartonnette,environnement,mal_croppe,metal,flou,kraft,Carton_brun,autre_refus your option no_mail is active, we will not send the real mail to your client args[1389347204] : ('0.09138122111970577',) no score found for photo 1389347204 We are sending mail with results at report@fotonower.com args[1389347166] : ('0.09138122111970577',) no score found for photo 1389347166 We are sending mail with results at report@fotonower.com args[1389347122] : ('0.09138122111970577',) no score found for photo 1389347122 We are sending mail with results at report@fotonower.com args[1389347074] : ('0.09138122111970577',) no score found for photo 1389347074 We are sending mail with results at report@fotonower.com args[1389347033] : ('0.09138122111970577',) no score found for photo 1389347033 We are sending mail with results at report@fotonower.com args[1389346964] : ('0.09138122111970577',) no score found for photo 1389346964 We are sending mail with results at report@fotonower.com args[1389346690] : ('0.09138122111970577',) no score found for photo 1389346690 We are sending mail with results at report@fotonower.com args[1389346686] : ('0.09138122111970577',) no score found for photo 1389346686 We are sending mail with results at report@fotonower.com args[1389346664] : ('0.09138122111970577',) no score found for photo 1389346664 We are sending mail with results at report@fotonower.com args[1389346656] : ('0.09138122111970577',) no score found for photo 1389346656 We are sending mail with results at report@fotonower.com args[1389346618] : ('0.09138122111970577',) no score found for photo 1389346618 We are sending mail with results at report@fotonower.com args[1389346617] : ('0.09138122111970577',) no score found for photo 1389346617 We are sending mail with results at report@fotonower.com args[1389346605] : ('0.09138122111970577',) no score found for photo 1389346605 We are sending mail with results at report@fotonower.com args[1389346604] : ('0.09138122111970577',) no score found for photo 1389346604 We are sending mail with results at report@fotonower.com args[1389346576] : ('0.09138122111970577',) no score found for photo 1389346576 We are sending mail with results at report@fotonower.com args[1389346575] : ('0.09138122111970577',) no score found for photo 1389346575 We are sending mail with results at report@fotonower.com args[1389346548] : ('0.09138122111970577',) no score found for photo 1389346548 We are sending mail with results at report@fotonower.com args[1389346547] : ('0.09138122111970577',) no score found for photo 1389346547 We are sending mail with results at report@fotonower.com refus_total : 0.09138122111970577 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=27783528 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_P27783528_14-10-2025_07_09_04.pdf results_Auto_P27783528_14-10-2025_07_09_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783528_14-10-2025_07_09_04.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','27783528','results_Auto_P27783528_14-10-2025_07_09_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783528_14-10-2025_07_09_04.pdf','pdf','','0.19','0.09138122111970577') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27783528]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547] map_info['map_portfolio_photo'] : {27783528: [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547, 1389346493, 1389346395, 1389346143, 1389345904, 1389345881, 1389345865, 1389345591, 1389345583, 1389345580, 1389345577, 1389345575, 1389345568, 1389345554, 1389345553, 1389345550, 1389345403, 1389345221, 1389345209, 1389345201, 1389345186, 1389345175, 1389344968, 1389344929, 1389344923, 1389344913, 1389344910, 1389344904]} final : False mtd_id 4302 list_pids : [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547] 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, '3937337') ('4302', '27783528', '1389347204', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347166', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347122', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347074', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347033', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346964', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346690', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346686', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346664', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346656', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346618', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346617', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346605', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346604', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346576', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346575', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346548', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346547', None, None, None, None, None, '3937337') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27783528', '1389347204', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347166', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347122', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347074', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347033', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346964', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346690', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346686', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346664', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346656', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346618', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346617', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346605', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346604', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346576', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346575', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346548', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346547', None, None, None, None, None, '3937337')] time used for this insertion : 0.03928875923156738 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.2822253704071045 time spend to save output : 0.03960132598876953 total time spend for step 4 : 4.321826696395874 step5:split_time_score Tue Oct 14 07:09:08 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27783528'] 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 : [('27783528',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27783528) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1389347166: {'path': 'temp/1760418543_3690863_1389347166_9737c746b13ff42f32a4d02cb3caf610.jpg', 'extension': 'jpg'}, 1389347204: {'path': 'temp/1760418543_3690863_1389347204_c028525bc54f72c3a1be8edf5ef333bf.jpg', 'extension': 'jpg'}, 1389346964: {'path': 'temp/1760418543_3690863_1389346964_5ae480f3b6ee4103552dc78a66feb528.jpg', 'extension': 'jpg'}, 1389347033: {'path': 'temp/1760418543_3690863_1389347033_26d78043d94596d9712947a9f83e5a70.jpg', 'extension': 'jpg'}, 1389347074: {'path': 'temp/1760418543_3690863_1389347074_d528f1aa5db7967c4f5afa52c5fe4c00.jpg', 'extension': 'jpg'}, 1389347122: {'path': 'temp/1760418543_3690863_1389347122_24291548eb7a0136a7b61b674ca28112.jpg', 'extension': 'jpg'}, 1389346547: {'path': 'temp/1760418543_3690863_1389346547_291003ecff9c053e8e71fe76e1ffaa96.jpg', 'extension': 'jpg'}, 1389346548: {'path': 'temp/1760418543_3690863_1389346548_1b67f0b064e8db1cc827dfdce609a4e2.jpg', 'extension': 'jpg'}, 1389346575: {'path': 'temp/1760418543_3690863_1389346575_29c1a0b559b2e41fcfabd1586277f4f6.jpg', 'extension': 'jpg'}, 1389346576: {'path': 'temp/1760418543_3690863_1389346576_e2acbeebd88308ddf4d5ea3c0b6bc3de.jpg', 'extension': 'jpg'}, 1389346656: {'path': 'temp/1760418543_3690863_1389346656_c42954383b1444f1b2ef85c11de6f8d2.jpg', 'extension': 'jpg'}, 1389346664: {'path': 'temp/1760418543_3690863_1389346664_c9fce19f1836265e0a3ea43a464aaf22.jpg', 'extension': 'jpg'}, 1389346686: {'path': 'temp/1760418543_3690863_1389346686_4fd023871d8024fe5efc7267812c2ca4.jpg', 'extension': 'jpg'}, 1389346690: {'path': 'temp/1760418543_3690863_1389346690_e8aa64817d9ad8541d5c6de5fa1462f0.jpg', 'extension': 'jpg'}, 1389346604: {'path': 'temp/1760418543_3690863_1389346604_c1893a7edf8d225bbbfc87b0b07161bf.jpg', 'extension': 'jpg'}, 1389346605: {'path': 'temp/1760418543_3690863_1389346605_e8ecf6dc9625415c167e878298926128.jpg', 'extension': 'jpg'}, 1389346617: {'path': 'temp/1760418543_3690863_1389346617_c442d80c8308a258371fe0141482aadd.jpg', 'extension': 'jpg'}, 1389346618: {'path': 'temp/1760418543_3690863_1389346618_da682fd8611d8c09c97b132d9c7f2f48.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 = 27783528; (('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 = 27783528 group by h (('07', 45),) 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=27783528 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 (27783528) 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 (27783528) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14102025 27783528 Nombre de photos uploadées : 45 / 23040 (0%) 14102025 27783528 Nombre de photos taguées (types de déchets): 0 / 45 (0%) 14102025 27783528 Nombre de photos taguées (volume) : 0 / 45 (0%) [{'photo_id': 1389344913, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/96675181f5a69727a74d9d6c930daece.jpg', 'username': None, 'uploaded_at': 1760418068, 'text': 'image_14102025_07_00_13_10243.jpg'}, {'photo_id': 1389345209, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/99e8aadd0426a7a1d86c3257419d602f.jpg', 'username': None, 'uploaded_at': 1760418133, 'text': 'image_14102025_07_00_13_10243.jpg'}, {'photo_id': 1389344910, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/6afdd6cd0c5f607d6e66a9f99081024c.jpg', 'username': None, 'uploaded_at': 1760418068, 'text': 'image_14102025_07_00_34_10136.jpg'}, {'photo_id': 1389345186, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/19ee525225396e455113475ac0a655c6.jpg', 'username': None, 'uploaded_at': 1760418133, 'text': 'image_14102025_07_00_34_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002858877182006836 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27783528, '2025-10-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-10-14' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2442841,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.656409740447998 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= 2442841 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27777996, 'dashboard_result_id': 16354779, '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_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27778872, 'dashboard_result_id': 16354780, '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_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27779391, 'dashboard_result_id': 16354781, '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_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27779550, 'dashboard_result_id': 16354782, '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_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27779656, 'dashboard_result_id': 16354783, '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_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27780223, 'dashboard_result_id': 16354784, '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_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27780493, 'dashboard_result_id': 16354785, '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_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27780862, 'dashboard_result_id': 16354786, '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_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27781293, 'dashboard_result_id': 16354787, '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_P27781293_14-10-2025_05_58_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27781652, 'dashboard_result_id': 16354788, '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_P27781652_14-10-2025_06_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27782198, 'dashboard_result_id': 16354789, '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_P27782198_14-10-2025_06_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27782235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782245, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27782598, 'dashboard_result_id': 16354790, '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_P27782598_14-10-2025_06_49_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27782623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782634, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27783071, 'dashboard_result_id': 16354791, '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_P27783071_14-10-2025_07_04_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783083, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2451983, 'mtr_portfolio_id': 27783528, 'dashboard_result_id': 16354792, '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_P27783528_14-10-2025_07_07_10.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783547, '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 = 27777996 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': 3936795, 'mtr_portfolio_id': 27777996, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 4), 'result': '0.08473370900574158', 'result_long': None, 'result_double': None}] Qualite : 0.08473370900574158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27777996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27777996_14-10-2025_05_56_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27777996 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_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, 'pht': 3726}}" where mtr_portfolio_id = 27777996 and dashboard_run_id = 2451983 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`=27777996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354779, 0.08473370900574158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, '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 = 27778872 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': 3936796, 'mtr_portfolio_id': 27778872, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 4), 'result': '0.05252490161835598', 'result_long': None, 'result_double': None}] Qualite : 0.05252490161835598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27778872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27778872_14-10-2025_05_56_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27778872 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_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, 'pht': 3726}}" where mtr_portfolio_id = 27778872 and dashboard_run_id = 2451983 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`=27778872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354780, 0.05252490161835598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, '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 = 27779391 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': 3936797, 'mtr_portfolio_id': 27779391, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 35), 'result': '0.12409417799557848', 'result_long': None, 'result_double': None}] Qualite : 0.12409417799557848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779391_14-10-2025_05_56_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779391 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_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, 'pht': 3726}}" where mtr_portfolio_id = 27779391 and dashboard_run_id = 2451983 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`=27779391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354781, 0.12409417799557848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, '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 = 27779550 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': 3936798, 'mtr_portfolio_id': 27779550, 'created_at': datetime.datetime(2025, 10, 14, 5, 57, 33), 'result': '0.03184540944410446', 'result_long': None, 'result_double': None}] Qualite : 0.03184540944410446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779550_14-10-2025_05_57_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779550 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_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, 'pht': 3726}}" where mtr_portfolio_id = 27779550 and dashboard_run_id = 2451983 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`=27779550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354782, 0.03184540944410446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, '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 = 27779656 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': 3936799, 'mtr_portfolio_id': 27779656, 'created_at': datetime.datetime(2025, 10, 14, 5, 58, 2), 'result': '0.05052474997406134', 'result_long': None, 'result_double': None}] Qualite : 0.05052474997406134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779656_14-10-2025_05_58_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779656 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_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, 'pht': 3726}}" where mtr_portfolio_id = 27779656 and dashboard_run_id = 2451983 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`=27779656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354783, 0.05052474997406134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, '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 = 27780223 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': 3936800, 'mtr_portfolio_id': 27780223, 'created_at': datetime.datetime(2025, 10, 14, 5, 59, 4), 'result': '0.040319035993793335', 'result_long': None, 'result_double': None}] Qualite : 0.040319035993793335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780223 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780223_14-10-2025_05_59_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780223 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_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, 'pht': 3726}}" where mtr_portfolio_id = 27780223 and dashboard_run_id = 2451983 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`=27780223 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354784, 0.040319035993793335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, '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 = 27780493 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': 3936801, 'mtr_portfolio_id': 27780493, 'created_at': datetime.datetime(2025, 10, 14, 5, 59, 29), 'result': '0.04214279264128584', 'result_long': None, 'result_double': None}] Qualite : 0.04214279264128584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780493_14-10-2025_05_59_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780493 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_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, 'pht': 3726}}" where mtr_portfolio_id = 27780493 and dashboard_run_id = 2451983 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`=27780493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354785, 0.04214279264128584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, '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 = 27780862 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': 3936750, 'mtr_portfolio_id': 27780862, 'created_at': datetime.datetime(2025, 10, 14, 5, 49), 'result': '0.057302103776373695', 'result_long': None, 'result_double': None}] Qualite : 0.057302103776373695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780862 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780862_14-10-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780862 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_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, 'pht': 3726}}" where mtr_portfolio_id = 27780862 and dashboard_run_id = 2451983 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`=27780862 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354786, 0.057302103776373695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, '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 = 27781293 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': 3936877, 'mtr_portfolio_id': 27781293, 'created_at': datetime.datetime(2025, 10, 14, 5, 58, 33), 'result': '0.05161213879580548', 'result_long': None, 'result_double': None}] Qualite : 0.05161213879580548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27781293 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781293_14-10-2025_05_58_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27781293 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_P27781293_14-10-2025_05_58_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, 'pht': 3726}}" where mtr_portfolio_id = 27781293 and dashboard_run_id = 2451983 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`=27781293 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354787, 0.05161213879580548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781293_14-10-2025_05_58_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, '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 = 27781652 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': 3936958, 'mtr_portfolio_id': 27781652, 'created_at': datetime.datetime(2025, 10, 14, 6, 19, 4), 'result': '0.05147357773397054', 'result_long': None, 'result_double': None}] Qualite : 0.05147357773397054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27781652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781652_14-10-2025_06_19_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27781652 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_P27781652_14-10-2025_06_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, 'pht': 3726}}" where mtr_portfolio_id = 27781652 and dashboard_run_id = 2451983 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`=27781652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354788, 0.05147357773397054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781652_14-10-2025_06_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, '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 = 27782198 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': 3937066, 'mtr_portfolio_id': 27782198, 'created_at': datetime.datetime(2025, 10, 14, 6, 33, 1), 'result': '0.0493053223759745', 'result_long': None, 'result_double': None}] Qualite : 0.0493053223759745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27782198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782198_14-10-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27782198 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_P27782198_14-10-2025_06_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27782235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782245, 'pht': 3726}}" where mtr_portfolio_id = 27782198 and dashboard_run_id = 2451985 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`=27782198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354789, 0.0493053223759745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782198_14-10-2025_06_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27782235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782245, '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 = 27782598 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': 3937171, 'mtr_portfolio_id': 27782598, 'created_at': datetime.datetime(2025, 10, 14, 6, 49, 40), 'result': '0.06079474485418993', 'result_long': None, 'result_double': None}] Qualite : 0.06079474485418993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27782598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782598_14-10-2025_06_49_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27782598 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_P27782598_14-10-2025_06_49_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27782623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782634, 'pht': 3726}}" where mtr_portfolio_id = 27782598 and dashboard_run_id = 2451985 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`=27782598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354790, 0.06079474485418993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782598_14-10-2025_06_49_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27782623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782634, '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 = 27783071 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': 3937254, 'mtr_portfolio_id': 27783071, 'created_at': datetime.datetime(2025, 10, 14, 7, 4, 36), 'result': '0.04935427998508324', 'result_long': None, 'result_double': None}] Qualite : 0.04935427998508324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27783071 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783071_14-10-2025_07_04_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27783071 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_P27783071_14-10-2025_07_04_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783083, 'pht': 3726}}" where mtr_portfolio_id = 27783071 and dashboard_run_id = 2451985 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`=27783071 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354791, 0.04935427998508324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783071_14-10-2025_07_04_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783083, '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 = 27783528 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': 3937337, 'mtr_portfolio_id': 27783528, 'created_at': datetime.datetime(2025, 10, 14, 7, 9, 3), 'result': '0.09138122111970577', 'result_long': None, 'result_double': None}] Qualite : 0.09138122111970577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27783528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783528_14-10-2025_07_09_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27783528 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_P27783528_14-10-2025_07_09_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783547, 'pht': 3726}}" where mtr_portfolio_id = 27783528 and dashboard_run_id = 2451985 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`=27783528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16354792, 0.09138122111970577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783528_14-10-2025_07_09_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783547, '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 (27777996,27778872,27779391,27779550,27779656,27780223,27780493,27780862,27781293,27781652,27782198,27782598,27783071,27783528) result : ((1389325084,), (1389325226,), (1389325245,), (1389325345,), (1389325726,), (1389325883,), (1389325885,), (1389326199,), (1389331930,), (1389332748,), (1389333287,), (1389333288,), (1389333300,), (1389333351,), (1389333367,), (1389333368,), (1389333393,), (1389335401,), (1389335981,), (1389335993,), (1389336007,), (1389336008,), (1389336024,), (1389336040,), (1389336057,), (1389336061,), (1389336090,), (1389336101,), (1389336134,), (1389336151,), (1389336188,), (1389336187,), (1389336243,), (1389336261,), (1389336274,), (1389336288,), (1389336289,), (1389336290,), (1389336307,), (1389336308,), (1389336345,), (1389336362,), (1389336378,), (1389336391,), (1389336492,), (1389336509,), (1389336522,), (1389336524,), (1389336528,), (1389336531,), (1389336558,), (1389336560,), (1389336562,), (1389336574,), (1389336575,), (1389336616,), (1389336617,), (1389336645,), (1389336689,), (1389336691,), (1389336746,), (1389340467,), (1389340529,), (1389340555,), (1389340557,), (1389340578,), (1389340582,), (1389340608,), (1389340617,), (1389340621,), (1389340626,), (1389340636,), (1389340654,), (1389340656,), (1389340673,), (1389340675,), (1389340697,), (1389340699,), (1389340701,), (1389340717,), (1389340742,), (1389340744,), (1389340748,), (1389340752,), (1389340764,), (1389340766,), (1389340810,), (1389340795,), (1389340798,), (1389340801,), (1389340805,), (1389340818,), (1389340824,), (1389340829,), (1389340836,), (1389340843,), (1389340846,), (1389340854,), (1389340856,), (1389340858,), (1389340866,), (1389340871,), (1389340874,), (1389340877,), (1389340879,), (1389340881,), (1389340904,), (1389340906,), (1389340908,), (1389340912,), (1389340917,), (1389340929,), (1389340931,), (1389340933,), (1389340935,), (1389340938,), (1389340957,), (1389340958,), (1389340960,), (1389340962,), (1389340979,), (1389340985,), (1389340991,), (1389340996,), (1389341003,), (1389341006,), (1389341049,), (1389341052,), (1389341056,), (1389341059,), (1389341062,), (1389341065,), (1389341068,), (1389341069,), (1389341070,), (1389341072,), (1389341074,), (1389341077,), (1389341081,), (1389341091,), (1389341097,), (1389341100,), (1389341108,), (1389341109,), (1389341110,), (1389341113,), (1389341127,), (1389341129,), (1389341131,), (1389341134,), (1389341139,), (1389341142,), (1389341171,), (1389341172,), (1389341173,), (1389341175,), (1389341190,), (1389341192,), (1389341193,), (1389341195,), (1389341198,), (1389341246,), (1389341252,), (1389341255,), (1389341259,), (1389341262,), (1389341278,), (1389341272,), (1389341275,), (1389341313,), (1389341315,), (1389341316,), (1389341347,), (1389341348,), (1389341350,), (1389341354,), (1389341358,), (1389341361,), (1389341368,), (1389341370,), (1389341372,), (1389341374,), (1389341380,), (1389341389,), (1389341390,), (1389341392,), (1389341394,), (1389341407,), (1389341409,), (1389341411,), (1389341413,), (1389341419,), (1389341429,), (1389341444,), (1389341445,), (1389341446,), (1389341448,), (1389341451,), (1389341462,), (1389341464,), (1389341469,), (1389341476,), (1389341493,), (1389341494,), (1389341495,), (1389341497,), (1389341500,), (1389341503,), (1389341517,), (1389341519,), (1389341521,), (1389341525,), (1389341527,), (1389341558,), (1389341559,), (1389341560,), (1389341576,), (1389341579,), (1389341606,), (1389341608,), (1389341609,), (1389341612,), (1389341616,), (1389341627,), (1389341628,), (1389341631,), (1389341636,), (1389341646,), (1389341677,), (1389341665,), (1389341666,), (1389341669,), (1389341673,), (1389341675,), (1389341686,), (1389341687,), (1389341688,), (1389341691,), (1389341711,), (1389341712,), (1389341713,), (1389341716,), (1389341722,), (1389341731,), (1389341733,), (1389341738,), (1389341742,), (1389341746,), (1389341749,), (1389341761,), (1389341762,), (1389341763,), (1389341779,), (1389341781,), (1389341782,), (1389341785,), (1389341789,), (1389341807,), (1389341808,), (1389341811,), (1389341815,), (1389341818,), (1389341821,), (1389341828,), (1389341830,), (1389341831,), (1389341834,), (1389341859,), (1389341860,), (1389341861,), (1389341864,), (1389341868,), (1389341880,), (1389341882,), (1389341884,), (1389341887,), (1389341889,), (1389341895,), (1389341908,), (1389341911,), (1389341912,), (1389341914,), (1389341928,), (1389341931,), (1389341932,), (1389341934,), (1389341937,), (1389341944,), (1389341959,), (1389341961,), (1389341963,), (1389341965,), (1389341969,), (1389341973,), (1389342228,), (1389342234,), (1389342239,), (1389342243,), (1389342267,), (1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,), (1389343602,), (1389343605,), (1389343607,), (1389343610,), (1389343614,), (1389343618,), (1389343623,), (1389343624,), (1389343626,), (1389343630,), (1389343634,), (1389343639,), (1389343674,), (1389343661,), (1389343662,), (1389343663,), (1389343667,), (1389343670,), (1389343683,), (1389343685,), (1389343686,), (1389343688,), (1389343711,), (1389343712,), (1389343713,), (1389343716,), (1389343720,), (1389343723,), (1389343732,), (1389343734,), (1389343735,), (1389343738,), (1389343756,), (1389343757,), (1389343758,), (1389343761,), (1389343765,), (1389343776,), (1389343778,), (1389343779,), (1389343782,), (1389343789,), (1389343792,), (1389343806,), (1389343807,), (1389343810,), (1389343813,), (1389343816,), (1389343831,), (1389343833,), (1389343835,), (1389343838,), (1389343871,), (1389343872,), (1389343873,), (1389343876,), (1389343880,), (1389343891,), (1389343893,), (1389343894,), (1389343897,), (1389343901,), (1389343932,), (1389343933,), (1389343934,), (1389343937,), (1389343941,), (1389343952,), (1389343954,), (1389343955,), (1389343980,), (1389343981,), (1389343983,), (1389343985,), (1389343989,), (1389343998,), (1389344000,), (1389344001,), (1389344003,), (1389344006,), (1389344029,), (1389344031,), (1389344032,), (1389344034,), (1389344037,), (1389344056,), (1389344048,), (1389344050,), (1389344051,), (1389344053,), (1389344079,), (1389344080,), (1389344083,), (1389344088,), (1389344090,), (1389344091,), (1389344110,), (1389344113,), (1389344115,), (1389344138,), (1389344139,), (1389344140,), (1389344143,), (1389344147,), (1389344155,), (1389344157,), (1389344159,), (1389344163,), (1389344166,), (1389344182,), (1389344183,), (1389344184,), (1389344188,), (1389344191,), (1389344199,), (1389344201,), (1389344203,), (1389344205,), (1389344210,), (1389344235,), (1389344236,), (1389344237,), (1389344239,), (1389344241,), (1389344255,), (1389344296,), (1389344297,), (1389344302,), (1389344306,), (1389344308,), (1389344310,), (1389344318,), (1389344320,), (1389344324,), (1389344335,), (1389344340,), (1389344349,), (1389344351,), (1389344355,), (1389344358,), (1389344365,), (1389344369,), (1389344371,), (1389344373,), (1389344380,), (1389344402,), (1389344415,), (1389344419,), (1389344420,), (1389344422,), (1389344425,), (1389344443,), (1389344449,), (1389344456,), (1389344459,), (1389344462,), (1389344465,), (1389344468,), (1389344471,), (1389344496,), (1389344484,), (1389344487,), (1389344489,), (1389344492,), (1389344515,), (1389344517,), (1389344520,), (1389344544,), (1389344553,), (1389344558,), (1389344562,), (1389344563,), (1389344566,), (1389344571,), (1389344572,), (1389344576,), (1389344579,), (1389344583,), (1389344586,), (1389344590,), (1389344594,), (1389344596,), (1389344599,), (1389344602,), (1389344606,), (1389344611,), (1389344614,), (1389344617,), (1389344620,), (1389344621,), (1389344638,), (1389344647,), (1389344668,), (1389344677,), (1389344682,), (1389344683,), (1389344688,), (1389344690,), (1389344694,), (1389344698,), (1389344701,), (1389344707,), (1389344719,), (1389344720,), (1389344721,), (1389344724,), (1389344727,), (1389344731,), (1389344735,), (1389344740,), (1389344749,), (1389344754,), (1389344767,), (1389344781,), (1389344782,), (1389344786,), (1389344790,), (1389344795,), (1389344798,), (1389344802,), (1389344803,), (1389344807,), (1389344814,), (1389344816,), (1389344822,), (1389344827,), (1389344836,), (1389344846,), (1389344852,), (1389344864,), (1389344868,), (1389344873,), (1389344880,), (1389344886,), (1389344889,), (1389344892,), (1389344895,), (1389344898,), (1389344916,), (1389344917,), (1389344919,), (1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14102025': {'nb_upload': 45, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27783528]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547] map_info['map_portfolio_photo'] : {27783528: [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547, 1389346493, 1389346395, 1389346143, 1389345904, 1389345881, 1389345865, 1389345591, 1389345583, 1389345580, 1389345577, 1389345575, 1389345568, 1389345554, 1389345553, 1389345550, 1389345403, 1389345221, 1389345209, 1389345201, 1389345186, 1389345175, 1389344968, 1389344929, 1389344923, 1389344913, 1389344910, 1389344904]} final : True mtd_id 4302 list_pids : [1389347204, 1389347166, 1389347122, 1389347074, 1389347033, 1389346964, 1389346690, 1389346686, 1389346664, 1389346656, 1389346618, 1389346617, 1389346605, 1389346604, 1389346576, 1389346575, 1389346548, 1389346547] Looping around the photos to save general results len do output : 1 /27783528Didn'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, '3937337') ('4302', '27783528', '1389347204', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347166', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347122', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347074', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389347033', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346964', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346690', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346686', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346664', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346656', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346618', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346617', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346605', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346604', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346576', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346575', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346548', None, None, None, None, None, '3937337') ('4302', None, None, None, None, None, None, None, '3937337') ('4302', '27783528', '1389346547', None, None, None, None, None, '3937337') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27783528', 'None', None, None, None, None, '3937337'), ('4302', '27783528', '1389347204', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347166', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347122', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347074', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389347033', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346964', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346690', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346686', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346664', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346656', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346618', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346617', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346605', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346604', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346576', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346575', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346548', None, None, None, None, None, '3937337'), ('4302', '27783528', '1389346547', None, None, None, None, None, '3937337')] time used for this insertion : 0.03909182548522949 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.980255603790283 time spend to save output : 0.03935718536376953 total time spend for step 5 : 4.019612789154053 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 (3937337) 2.35user 2.44system 0:17.01elapsed 28%CPU (0avgtext+0avgdata 169188maxresident)k 344inputs+13376outputs (0major+76754minor)pagefaults 0swaps