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 : 2247008 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 (4001040) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4001040) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189717 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4001040'] with mtr_portfolio_ids : ['28189717'] and first list_photo_ids : [] new path : /proc/2247008/ Name: python3 Umask: 0002 State: R (running) Tgid: 2247008 Ngid: 0 Pid: 2247008 PPid: 2247007 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2247008 NSpid: 2247008 NSpgid: 2246209 NSsid: 2246209 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99416 kB VmRSS: 99416 kB RssAnon: 59908 kB RssFile: 39508 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 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: 42 nonvoluntary_ctxt_switches: 148 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2247008', 'Ngid': '0', 'Pid': '2247008', 'PPid': '2247007', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2247008', 'NSpid': '2247008', 'NSpgid': '2246209', 'NSsid': '2246209', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99416 kB', 'VmRSS': '99416 kB', 'RssAnon': '59908 kB', 'RssFile': '39508 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 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': '42', 'nonvoluntary_ctxt_switches': '148'} ('datou_batch_current', '2247008', '1106908', '0', '1106884', '865636', '99416', b'', 'marlene', '4001040') 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 (28189717) 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 (4001040 ) ) 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 (28189717) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1392658430, 'portfolio_id': 28189717}, {'photo_id': 1392658427, 'portfolio_id': 28189717}, {'photo_id': 1392658425, 'portfolio_id': 28189717}, {'photo_id': 1392658421, 'portfolio_id': 28189717}, {'photo_id': 1392658418, 'portfolio_id': 28189717}, {'photo_id': 1392658409, 'portfolio_id': 28189717}, {'photo_id': 1392658408, 'portfolio_id': 28189717}, {'photo_id': 1392658407, 'portfolio_id': 28189717}, {'photo_id': 1392658405, 'portfolio_id': 28189717}, {'photo_id': 1392658393, 'portfolio_id': 28189717}, {'photo_id': 1392658391, 'portfolio_id': 28189717}, {'photo_id': 1392658388, 'portfolio_id': 28189717}, {'photo_id': 1392658385, 'portfolio_id': 28189717}, {'photo_id': 1392658382, 'portfolio_id': 28189717}, {'photo_id': 1392658376, 'portfolio_id': 28189717}, {'photo_id': 1392658341, 'portfolio_id': 28189717}, {'photo_id': 1392658339, 'portfolio_id': 28189717}, {'photo_id': 1392658337, 'portfolio_id': 28189717}, {'photo_id': 1392658336, 'portfolio_id': 28189717}, {'photo_id': 1392658335, 'portfolio_id': 28189717}, {'photo_id': 1392658288, 'portfolio_id': 28189717}, {'photo_id': 1392658285, 'portfolio_id': 28189717}, {'photo_id': 1392658281, 'portfolio_id': 28189717}, {'photo_id': 1392658276, 'portfolio_id': 28189717}, {'photo_id': 1392658246, 'portfolio_id': 28189717}, {'photo_id': 1392658243, 'portfolio_id': 28189717}, {'photo_id': 1392658241, 'portfolio_id': 28189717}, {'photo_id': 1392658239, 'portfolio_id': 28189717}, {'photo_id': 1392658236, 'portfolio_id': 28189717}, {'photo_id': 1392658214, 'portfolio_id': 28189717}, {'photo_id': 1392658211, 'portfolio_id': 28189717}, {'photo_id': 1392658208, 'portfolio_id': 28189717}, {'photo_id': 1392658205, 'portfolio_id': 28189717}, {'photo_id': 1392658171, 'portfolio_id': 28189717}, {'photo_id': 1392658169, 'portfolio_id': 28189717}, {'photo_id': 1392658165, 'portfolio_id': 28189717}, {'photo_id': 1392658162, 'portfolio_id': 28189717}, {'photo_id': 1392658160, 'portfolio_id': 28189717}, {'photo_id': 1392658158, 'portfolio_id': 28189717}, {'photo_id': 1392658134, 'portfolio_id': 28189717}, {'photo_id': 1392658130, 'portfolio_id': 28189717}, {'photo_id': 1392658126, 'portfolio_id': 28189717}, {'photo_id': 1392658124, 'portfolio_id': 28189717}, {'photo_id': 1392658122, 'portfolio_id': 28189717}, {'photo_id': 1392658025, 'portfolio_id': 28189717}, {'photo_id': 1392658023, 'portfolio_id': 28189717}, {'photo_id': 1392658022, 'portfolio_id': 28189717}, {'photo_id': 1392658020, 'portfolio_id': 28189717}, {'photo_id': 1392657997, 'portfolio_id': 28189717}, {'photo_id': 1392657995, 'portfolio_id': 28189717}] map_portfolio_id_photo_id: {28189717: [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376, 1392658341, 1392658339, 1392658337, 1392658336, 1392658335, 1392658288, 1392658285, 1392658281, 1392658276, 1392658246, 1392658243, 1392658241, 1392658239, 1392658236, 1392658214, 1392658211, 1392658208, 1392658205, 1392658171, 1392658169, 1392658165, 1392658162, 1392658160, 1392658158, 1392658134, 1392658130, 1392658126, 1392658124, 1392658122, 1392658025, 1392658023, 1392658022, 1392658020, 1392657997, 1392657995]} ##### 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.016008377075195312 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Nov 5 05:56:28 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 (28189717) 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 : 28189717 get user id for portfolio 28189717 get sub ptf for main ptf 28189717, type 3726 and hashtags ['flou', 'cartonnette', 'environnement', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'autre_refus', 'kraft', 'metal', 'plastique', 'Teint_Dans_La_Masse', 'papier'] 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`=28189717 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','environnement','mal_croppe','Carton_gris','Carton_brun','autre_refus','kraft','metal','plastique','Teint_Dans_La_Masse','papier')) 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`=28189717 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','environnement','mal_croppe','Carton_gris','Carton_brun','autre_refus','kraft','metal','plastique','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 28189717, 'sub_port_id': 28189720, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065808, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'mal_croppe': {'main_port_id': 28189717, 'sub_port_id': 28189721, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065809, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'Carton_brun': {'main_port_id': 28189717, 'sub_port_id': 28189722, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065810, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 28189717, 'sub_port_id': 28189723, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065811, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'kraft': {'main_port_id': 28189717, 'sub_port_id': 28189724, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065812, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'plastique': {'main_port_id': 28189717, 'sub_port_id': 28189725, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065813, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'papier': {'main_port_id': 28189717, 'sub_port_id': 28189726, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065814, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'environnement': {'main_port_id': 28189717, 'sub_port_id': 28189727, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065815, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'metal': {'main_port_id': 28189717, 'sub_port_id': 28189728, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065816, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'flou': {'main_port_id': 28189717, 'sub_port_id': 28189729, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065817, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'cartonnette': {'main_port_id': 28189717, 'sub_port_id': 28189730, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065818, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}, 'autre_refus': {'main_port_id': 28189717, 'sub_port_id': 28189731, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065819, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28189720 , 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=28189717 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 (28189720) result : ((1392658179,), (1392658253,), (1392658270,), (1392658271,), (1392658379,), (1392658380,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189721 , 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=28189717 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 (28189721) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189722 , 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=28189717 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 (28189722) result : ((1392658183,), (1392658184,), (1392658275,), (1392658381,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189723 , 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=28189717 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 (28189723) result : ((1392658043,), (1392658044,), (1392658045,), (1392658174,), (1392658175,), (1392658176,), (1392658191,), (1392658192,), (1392658251,), (1392658261,), (1392658262,), (1392658263,), (1392658377,), (1392658378,), (1392658433,), (1392658434,), (1392658435,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189724 , 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=28189717 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 (28189724) result : ((1392658384,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189725 , 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=28189717 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 (28189725) result : ((1392658053,), (1392658186,), (1392658278,), (1392658279,), (1392658383,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189726 , 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=28189717 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 (28189726) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189727 , 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=28189717 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 (28189727) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189728 , 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=28189717 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 (28189728) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189729 , 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=28189717 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 (28189729) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189730 , 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=28189717 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 (28189730) result : ((1392658046,), (1392658180,), (1392658181,), (1392658182,), (1392658273,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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 28189731 , 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=28189717 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 (28189731) result : ((1392658178,), (1392658194,), (1392658266,), (1392658267,), (1392658268,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28189717) result : ((1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) 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`=28189717 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','environnement','mal_croppe','Carton_gris','Carton_brun','autre_refus','kraft','metal','plastique','Teint_Dans_La_Masse','papier')) 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`=28189717 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','environnement','mal_croppe','Carton_gris','Carton_brun','autre_refus','kraft','metal','plastique','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 28189717, 'sub_port_id': 28189732, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065820, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'mal_croppe': {'main_port_id': 28189717, 'sub_port_id': 28189733, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065821, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'Carton_brun': {'main_port_id': 28189717, 'sub_port_id': 28189734, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065822, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28189717, 'sub_port_id': 28189735, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065823, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'kraft': {'main_port_id': 28189717, 'sub_port_id': 28189736, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065824, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'plastique': {'main_port_id': 28189717, 'sub_port_id': 28189737, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065825, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'papier': {'main_port_id': 28189717, 'sub_port_id': 28189738, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065826, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'environnement': {'main_port_id': 28189717, 'sub_port_id': 28189739, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065827, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'metal': {'main_port_id': 28189717, 'sub_port_id': 28189740, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065828, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'flou': {'main_port_id': 28189717, 'sub_port_id': 28189741, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065829, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'cartonnette': {'main_port_id': 28189717, 'sub_port_id': 28189742, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065830, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}, 'autre_refus': {'main_port_id': 28189717, 'sub_port_id': 28189743, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19065831, 'last_updated_at': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 5, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 5, 46, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189732,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189720 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189733,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189721 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189734,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189722 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189735,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189723 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189736,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189724 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189737,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189725 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189738,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189726 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189739,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189727 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189740,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189728 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189741,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189729 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189742,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189730 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28189743,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28189731 lien utilise dans velours : https://marlene.fotonower.com/velours/28189732,28189733,28189734,28189735,28189736,28189737,28189738,28189739,28189740,28189741,28189742,28189743?tags=Carton_gris,mal_croppe,Carton_brun,Teint_Dans_La_Masse,kraft,plastique,papier,environnement,metal,flou,cartonnette,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28189717]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376] map_info['map_portfolio_photo'] : {28189717: [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376, 1392658341, 1392658339, 1392658337, 1392658336, 1392658335, 1392658288, 1392658285, 1392658281, 1392658276, 1392658246, 1392658243, 1392658241, 1392658239, 1392658236, 1392658214, 1392658211, 1392658208, 1392658205, 1392658171, 1392658169, 1392658165, 1392658162, 1392658160, 1392658158, 1392658134, 1392658130, 1392658126, 1392658124, 1392658122, 1392658025, 1392658023, 1392658022, 1392658020, 1392657997, 1392657995]} final : False mtd_id 4302 list_pids : [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376] Looping around the photos to save general results len do output : 1 /28189717. 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, '4001040') ('4302', '28189717', '1392658430', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658427', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658425', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658421', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658418', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658409', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658408', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658407', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658405', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658393', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658391', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658388', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658385', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658382', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658376', None, None, None, None, None, '4001040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28189717', "{'Carton_gris': 28189720, 'mal_croppe': 28189721, 'Carton_brun': 28189722, 'Teint_Dans_La_Masse': 28189723, 'kraft': 28189724, 'plastique': 28189725, 'papier': 28189726, 'environnement': 28189727, 'metal': 28189728, 'flou': 28189729, 'cartonnette': 28189730, 'autre_refus': 28189731}", None, None, None, None, '4001040'), ('4302', '28189717', '1392658430', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658427', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658425', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658421', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658418', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658409', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658408', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658407', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658405', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658393', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658391', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658388', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658385', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658382', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658376', None, None, None, None, None, '4001040')] time used for this insertion : 0.0167233943939209 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6302587985992432 time spend to save output : 0.017107009887695312 total time spend for step 1 : 1.6473658084869385 step2:final Wed Nov 5 05:56:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (28189717) 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 28189717 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1392657997,1392658025,1392657995,1392658023,1392658022,1392658020,1392658134,1392658130,1392658126,1392658124,1392658122,1392658171,1392658169,1392658165,1392658162,1392658160,1392658158,1392658214,1392658211,1392658208,1392658205,1392658246,1392658243,1392658241,1392658239,1392658236,1392658288,1392658285,1392658281,1392658276,1392658409,1392658341,1392658408,1392658339,1392658337,1392658407,1392658336,1392658405,1392658335,1392658393,1392658391,1392658388,1392658385,1392658382,1392658376,1392658430,1392658427,1392658425,1392658421,1392658418); 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([28189717]) Inside saveOutput : final : False verbose : True original output for save of step final : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} new output for save of step final : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376] map_info['map_portfolio_photo'] : {28189717: [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376, 1392658341, 1392658339, 1392658337, 1392658336, 1392658335, 1392658288, 1392658285, 1392658281, 1392658276, 1392658246, 1392658243, 1392658241, 1392658239, 1392658236, 1392658214, 1392658211, 1392658208, 1392658205, 1392658171, 1392658169, 1392658165, 1392658162, 1392658160, 1392658158, 1392658134, 1392658130, 1392658126, 1392658124, 1392658122, 1392658025, 1392658023, 1392658022, 1392658020, 1392657997, 1392657995]} final : False mtd_id 4302 list_pids : [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376] Looping around the photos to save general results len do output : 15 /1392658430.Didn't retrieve data . /1392658427.Didn't retrieve data . /1392658425.Didn't retrieve data . /1392658421.Didn't retrieve data . /1392658418.Didn't retrieve data . /1392658409.Didn't retrieve data . /1392658408.Didn't retrieve data . /1392658407.Didn't retrieve data . /1392658405.Didn't retrieve data . /1392658393.Didn't retrieve data . /1392658391.Didn't retrieve data . /1392658388.Didn't retrieve data . /1392658385.Didn't retrieve data . /1392658382.Didn't retrieve data . /1392658376.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, '4001040') ('4302', '28189717', '1392658430', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658427', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658425', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658421', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658418', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658409', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658408', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658407', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658405', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658393', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658391', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658388', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658385', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658382', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658376', None, None, None, None, None, '4001040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28189717', '1392658430', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658427', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658425', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658421', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658418', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658409', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658408', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658407', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658405', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658393', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658391', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658388', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658385', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658382', '0.05670282457813817', None, None, None, None, '4001040'), ('4302', '28189717', '1392658376', '0.05670282457813817', None, None, None, None, '4001040')] time used for this insertion : 0.015263080596923828 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07088017463684082 time spend to save output : 0.016022443771362305 total time spend for step 2 : 0.08690261840820312 step3:velours_tree Wed Nov 5 05:56:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {28189717: [{'Carton_gris': 28189720, 'mal_croppe': 28189721, 'Carton_brun': 28189722, 'Teint_Dans_La_Masse': 28189723, 'kraft': 28189724, 'plastique': 28189725, 'papier': 28189726, 'environnement': 28189727, 'metal': 28189728, 'flou': 28189729, 'cartonnette': 28189730, 'autre_refus': 28189731}]} input_args_next_step : {28189717: ()} output_args : {28189717: [{'Carton_gris': 28189720, 'mal_croppe': 28189721, 'Carton_brun': 28189722, 'Teint_Dans_La_Masse': 28189723, 'kraft': 28189724, 'plastique': 28189725, 'papier': 28189726, 'environnement': 28189727, 'metal': 28189728, 'flou': 28189729, 'cartonnette': 28189730, 'autre_refus': 28189731}]} args : 28189717 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 28189720, 'mal_croppe': 28189721, 'Carton_brun': 28189722, 'Teint_Dans_La_Masse': 28189723, 'kraft': 28189724, 'plastique': 28189725, 'papier': 28189726, 'environnement': 28189727, 'metal': 28189728, 'flou': 28189729, 'cartonnette': 28189730, 'autre_refus': 28189731},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28189717) 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([28189717]) 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.317002534866333 time spend to save output : 4.2438507080078125e-05 total time spend for step 3 : 0.3170449733734131 step4:send_mail_cod Wed Nov 5 05:56:30 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 : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} input_args_next_step : {1392658430: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658430 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658427 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658425 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658421 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658418 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658409 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658408 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658407 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658405 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658393 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658391 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658388 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658385 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658382 depend.output_id : 0 input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ()} output_args : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',)} args : 1392658376 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 : {28189717: [{'Carton_gris': 28189720, 'mal_croppe': 28189721, 'Carton_brun': 28189722, 'Teint_Dans_La_Masse': 28189723, 'kraft': 28189724, 'plastique': 28189725, 'papier': 28189726, 'environnement': 28189727, 'metal': 28189728, 'flou': 28189729, 'cartonnette': 28189730, 'autre_refus': 28189731}]} input_args_next_step : {1392658430: ('0.05670282457813817',), 1392658427: ('0.05670282457813817',), 1392658425: ('0.05670282457813817',), 1392658421: ('0.05670282457813817',), 1392658418: ('0.05670282457813817',), 1392658409: ('0.05670282457813817',), 1392658408: ('0.05670282457813817',), 1392658407: ('0.05670282457813817',), 1392658405: ('0.05670282457813817',), 1392658393: ('0.05670282457813817',), 1392658391: ('0.05670282457813817',), 1392658388: ('0.05670282457813817',), 1392658385: ('0.05670282457813817',), 1392658382: ('0.05670282457813817',), 1392658376: ('0.05670282457813817',), 28189717: ()} output_args : {28189717: [{'Carton_gris': 28189720, 'mal_croppe': 28189721, 'Carton_brun': 28189722, 'Teint_Dans_La_Masse': 28189723, 'kraft': 28189724, 'plastique': 28189725, 'papier': 28189726, 'environnement': 28189727, 'metal': 28189728, 'flou': 28189729, 'cartonnette': 28189730, 'autre_refus': 28189731}]} args : 28189717 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :16, first value : ('0.05670282457813817',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28189717) 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 (1392658430,1392658427,1392658425,1392658421,1392658418,1392658409,1392658408,1392658407,1392658405,1392658393,1392658391,1392658388,1392658385,1392658382,1392658376) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1392658376 begin to download photo : 1392658391 begin to download photo : 1392658408 begin to download photo : 1392658425 download finish for photo 1392658391 begin to download photo : 1392658393 download finish for photo 1392658425 begin to download photo : 1392658427 download finish for photo 1392658376 begin to download photo : 1392658382 download finish for photo 1392658408 begin to download photo : 1392658409 download finish for photo 1392658427 begin to download photo : 1392658430 download finish for photo 1392658393 begin to download photo : 1392658405 download finish for photo 1392658382 begin to download photo : 1392658385 download finish for photo 1392658409 begin to download photo : 1392658418 download finish for photo 1392658405 begin to download photo : 1392658407 download finish for photo 1392658430 download finish for photo 1392658385 begin to download photo : 1392658388 download finish for photo 1392658418 begin to download photo : 1392658421 download finish for photo 1392658407 download finish for photo 1392658388 download finish for photo 1392658421 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette281897211762318590/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P28189717_05-11-2025_05_56_30.pdf 28189721 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=28189721 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281897211762318590 28189724 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=28189724 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392658384: '1762318406_507026_1392658285_021da8de185487ae1bf9e4286939eef3_rle_crop_4021198779_0.png'} change filename to text .imagette281897241762318590/ imagette281897241762318590/1762318406_507026_1392658285_021da8de185487ae1bf9e4286939eef3_rle_crop_4021198779_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/49f73b1c0598e5ba984fa11fc89538fe_92371946.png imagette281897241762318590 28189725 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=28189725 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392658053: '1762318026_487637_1392657997_a981512edb1ff6247463ad96f64e1df6_rle_crop_4021196523_0.png', 1392658186: '1762318146_493103_1392658022_d8e8738233f9639e1c77085810c1dbb6_rle_crop_4021197083_0.png', 1392658278: '1762318286_499329_1392658169_d2cd468a7eabde73bcbbb717f2d879f8_rle_crop_4021198236_0.png', 1392658279: '1762318286_499329_1392658165_f9987887d2e4129537d12b5bcfd591dd_rle_crop_4021198246_0.png', 1392658383: '1762318406_507026_1392658276_752ed898eb5db72ebb903f5a98b3433d_rle_crop_4021198807_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/b2dc62fbc12ceb6552ba60b846405a0f_29733276.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/13c9e92faa66503a69c12f5796f7b25e_88227578.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/0353ffd2a9a4f327d2a934f62b77c2c9_58026134.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/2e398c320b073a82f30b38593678499c_9474492.png change filename to text .imagette281897251762318590/ imagette281897251762318590/1762318146_493103_1392658022_d8e8738233f9639e1c77085810c1dbb6_rle_crop_4021197083_0.png.png imagette281897251762318590/1762318286_499329_1392658169_d2cd468a7eabde73bcbbb717f2d879f8_rle_crop_4021198236_0.png.png imagette281897251762318590/1762318026_487637_1392657997_a981512edb1ff6247463ad96f64e1df6_rle_crop_4021196523_0.png.png imagette281897251762318590/1762318406_507026_1392658276_752ed898eb5db72ebb903f5a98b3433d_rle_crop_4021198807_0.png.png imagette281897251762318590/1762318286_499329_1392658165_f9987887d2e4129537d12b5bcfd591dd_rle_crop_4021198246_0.png.png imagette281897281762318591/ imagette281897291762318591/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/459534389d7015379c61bea1748f8ed4_63433273.png imagette281897251762318590 28189728 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=28189728 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281897281762318591 28189729 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=28189729 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281897291762318591 28189730 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=28189730 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392658046: '1762318026_487637_1392657995_74b2504958333766f9602b164b7bad2e_rle_crop_4021196544_0.png', 1392658180: '1762318146_493103_1392658023_4f89694643cbfcaecc9742cfc217b952_rle_crop_4021197048_0.png', 1392658181: '1762318146_493103_1392658022_d8e8738233f9639e1c77085810c1dbb6_rle_crop_4021197073_0.png', 1392658182: '1762318146_493103_1392658022_d8e8738233f9639e1c77085810c1dbb6_rle_crop_4021197069_0.png', 1392658273: '1762318286_499329_1392658158_330b6381cfaffc721a07d08d886fb0a1_rle_crop_4021198295_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/6917899f8f2d5584864439efe71dfbe8_54719327.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/6a2d52a3b695352cbfac02ea343dde76_86335554.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/81701ec3cf0f84452ddfb719383ba172_48421916.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/422ba4adf10501a7906810b18defd49b_97395049.png change filename to text .imagette281897301762318591/ imagette281897301762318591/1762318026_487637_1392657995_74b2504958333766f9602b164b7bad2e_rle_crop_4021196544_0.png.png imagette281897301762318591/1762318286_499329_1392658158_330b6381cfaffc721a07d08d886fb0a1_rle_crop_4021198295_0.png.png imagette281897301762318591/1762318146_493103_1392658022_d8e8738233f9639e1c77085810c1dbb6_rle_crop_4021197069_0.png.png imagette281897301762318591/1762318146_493103_1392658022_d8e8738233f9639e1c77085810c1dbb6_rle_crop_4021197073_0.png.png imagette281897301762318591/1762318146_493103_1392658023_4f89694643cbfcaecc9742cfc217b952_rle_crop_4021197048_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/57e0629212ea6c68ab3d35639aac1f6c_6881383.png imagette281897301762318591 28189731 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=28189731 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392658178: '1762318146_493103_1392658022_d8e8738233f9639e1c77085810c1dbb6_rle_crop_4021197077_0.png', 1392658194: '1762318165_493499_1392658025_fbbd441d755cb4a60cd5e4523c79295e_rle_crop_4021197142_0.png', 1392658266: '1762318286_499329_1392658214_9227bf6d1f9226d9030138eb09a79613_rle_crop_4021198221_0.png', 1392658267: '1762318286_499329_1392658169_d2cd468a7eabde73bcbbb717f2d879f8_rle_crop_4021198231_0.png', 1392658268: '1762318286_499329_1392658162_30e7f405a7a49d62d8e387138013a8c5_rle_crop_4021198255_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/9f723279ea7d2b77e5ba125e1c6a643c_46483463.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/bdae8d74202d3dd12c69724908eceb04_49976746.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/656553f1ac802d3c258b76bdde9f0d60_55785692.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/89f7e36c56a8727699b9665c91d6cdb4_30794772.png change filename to text .imagette281897311762318591/ imagette281897311762318591/1762318146_493103_1392658022_d8e8738233f9639e1c77085810c1dbb6_rle_crop_4021197077_0.png.png imagette281897311762318591/1762318165_493499_1392658025_fbbd441d755cb4a60cd5e4523c79295e_rle_crop_4021197142_0.png.png imagette281897311762318591/1762318286_499329_1392658214_9227bf6d1f9226d9030138eb09a79613_rle_crop_4021198221_0.png.png imagette281897311762318591/1762318286_499329_1392658169_d2cd468a7eabde73bcbbb717f2d879f8_rle_crop_4021198231_0.png.png imagette281897311762318591/1762318286_499329_1392658162_30e7f405a7a49d62d8e387138013a8c5_rle_crop_4021198255_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/576f32154dd7ac759979b65949863fb9_92866542.png imagette281897311762318591 28189720 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=28189720 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392658179: '1762318146_493103_1392658023_4f89694643cbfcaecc9742cfc217b952_rle_crop_4021197057_0.png', 1392658253: '1762318267_498799_1392658211_d9a6238e7acc2f8564290ca8a3cced18_rle_crop_4021197990_0.png', 1392658270: '1762318286_499329_1392658214_9227bf6d1f9226d9030138eb09a79613_rle_crop_4021198219_0.png', 1392658271: '1762318286_499329_1392658214_9227bf6d1f9226d9030138eb09a79613_rle_crop_4021198218_0.png', 1392658379: '1762318406_507026_1392658281_68c53e017d28930cc674a600de8ee458_rle_crop_4021198794_0.png', 1392658380: '1762318406_507026_1392658276_752ed898eb5db72ebb903f5a98b3433d_rle_crop_4021198815_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/cb7f188624f85326c4bfc0ba55c5254c_41742539.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/5661cd08df0e36e585d9153441f1b92a_33501540.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/617b7d10b3a0572ef8981448c3c3ce98_50052784.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/279b251c096a931a812bab97c87f4fe3_6162284.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/84785be1f5fed861ce3035e0836b73da_80186378.png change filename to text .imagette281897201762318592/ imagette281897201762318592/1762318286_499329_1392658214_9227bf6d1f9226d9030138eb09a79613_rle_crop_4021198219_0.png.png imagette281897201762318592/1762318146_493103_1392658023_4f89694643cbfcaecc9742cfc217b952_rle_crop_4021197057_0.png.png imagette281897201762318592/1762318267_498799_1392658211_d9a6238e7acc2f8564290ca8a3cced18_rle_crop_4021197990_0.png.png imagette281897201762318592/1762318286_499329_1392658214_9227bf6d1f9226d9030138eb09a79613_rle_crop_4021198218_0.png.png imagette281897201762318592/1762318406_507026_1392658276_752ed898eb5db72ebb903f5a98b3433d_rle_crop_4021198815_0.png.png imagette281897201762318592/1762318406_507026_1392658281_68c53e017d28930cc674a600de8ee458_rle_crop_4021198794_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/b825f1fc21f586d64d30b1416f13783c_1769591.png imagette281897201762318592 28189722 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=28189722 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392658183: '1762318146_493103_1392658023_4f89694643cbfcaecc9742cfc217b952_rle_crop_4021197056_0.png', 1392658184: '1762318146_493103_1392658023_4f89694643cbfcaecc9742cfc217b952_rle_crop_4021197053_0.png', 1392658275: '1762318286_499329_1392658160_a75f3e4e5bf7ba10f0cfa42a7dd245ef_rle_crop_4021198274_0.png', 1392658381: '1762318406_507026_1392658281_68c53e017d28930cc674a600de8ee458_rle_crop_4021198795_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/1b1c02d95e5a6a778effc10cae1fab0d_56150534.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/d2dac97fd803016575a686491f3e6140_16140798.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/2f9d28a98c630d3db733c9ffca9ce142_4219855.png change filename to text .imagette281897221762318592/ imagette281897221762318592/1762318286_499329_1392658160_a75f3e4e5bf7ba10f0cfa42a7dd245ef_rle_crop_4021198274_0.png.png imagette281897221762318592/1762318146_493103_1392658023_4f89694643cbfcaecc9742cfc217b952_rle_crop_4021197053_0.png.png imagette281897221762318592/1762318406_507026_1392658281_68c53e017d28930cc674a600de8ee458_rle_crop_4021198795_0.png.png imagette281897221762318592/1762318146_493103_1392658023_4f89694643cbfcaecc9742cfc217b952_rle_crop_4021197056_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/46a18d79e1253d56daf3c5c1120ce1fa_85576170.png imagette281897221762318592 28189723 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=28189723 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392658251: '1762318267_498799_1392658208_3ab9800538af31b08c1d59e47c291c32_rle_crop_4021198004_0.png', 1392658435: '1762318507_512746_1392658335_aaeb2ac1e3144e2a8030bf27d4ed5206_rle_crop_4021199049_0.png', 1392658434: '1762318507_512746_1392658337_7586744daa408f907645b43f34b48b7d_rle_crop_4021199023_0.png', 1392658433: '1762318507_512746_1392658339_c576dfcccf3e588977a85ec940009a93_rle_crop_4021199008_0.png', 1392658378: '1762318406_507026_1392658276_752ed898eb5db72ebb903f5a98b3433d_rle_crop_4021198811_0.png', 1392658377: '1762318406_507026_1392658285_021da8de185487ae1bf9e4286939eef3_rle_crop_4021198780_0.png', 1392658263: '1762318286_499329_1392658162_30e7f405a7a49d62d8e387138013a8c5_rle_crop_4021198265_0.png', 1392658262: '1762318286_499329_1392658165_f9987887d2e4129537d12b5bcfd591dd_rle_crop_4021198249_0.png', 1392658261: '1762318286_499329_1392658169_d2cd468a7eabde73bcbbb717f2d879f8_rle_crop_4021198239_0.png', 1392658043: '1762318026_487637_1392657997_a981512edb1ff6247463ad96f64e1df6_rle_crop_4021196517_0.png', 1392658192: '1762318165_493499_1392658025_fbbd441d755cb4a60cd5e4523c79295e_rle_crop_4021197143_0.png', 1392658191: '1762318165_493499_1392658025_fbbd441d755cb4a60cd5e4523c79295e_rle_crop_4021197147_0.png', 1392658176: '1762318146_493103_1392658020_1c0a6d7eff1e916998426271c95fcbaf_rle_crop_4021197100_0.png', 1392658175: '1762318146_493103_1392658022_d8e8738233f9639e1c77085810c1dbb6_rle_crop_4021197080_0.png', 1392658174: '1762318146_493103_1392658023_4f89694643cbfcaecc9742cfc217b952_rle_crop_4021197059_0.png', 1392658045: '1762318026_487637_1392657995_74b2504958333766f9602b164b7bad2e_rle_crop_4021196546_0.png', 1392658044: '1762318026_487637_1392657995_74b2504958333766f9602b164b7bad2e_rle_crop_4021196554_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/8ad0b79a845a6d1a61ff8a7b90e6ef6f_1436683.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/37a155d11755e13404b2d725ceb387f2_43686854.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/b533bf6ae3422a5aa7b70138d2d52523_54663706.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/49e73baef28be30d3c0c4d2ee45bdadc_90036301.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/aee60f7f6fe257437af6de8f1dc993bd_62377484.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/ff78ad553c5c6d77907abb6ac1502fe5_35710032.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f46cca52e9e214ce2d90d11a49d6c1e0_85698868.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/7e43e436fb22c8893a0ab6381543e763_76629470.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/33f16a94e856f66e2e57ffc94fde0dfc_71198319.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/3d2d195e0c22b9c8618666c5733331bc_51756613.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/8bfc4d87f269d2793c0f2f63f36d671a_57460503.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/bf19ba8661367b6747c4ce6209ccc383_82434220.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/fb6c4764ff734dd07764682c3a626a6c_57732099.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/70adcad9d5e009d0c149abbd324bc302_9913326.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/d3dc42eb5c0b5c93d90c9250c08c7d9e_13831182.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/5cac65480e24d7b92ec5ab575f7f4829_75260013.png change filename to text .imagette281897231762318592/ imagette281897231762318592/1762318286_499329_1392658162_30e7f405a7a49d62d8e387138013a8c5_rle_crop_4021198265_0.png.png imagette281897231762318592/1762318165_493499_1392658025_fbbd441d755cb4a60cd5e4523c79295e_rle_crop_4021197143_0.png.png imagette281897231762318592/1762318267_498799_1392658208_3ab9800538af31b08c1d59e47c291c32_rle_crop_4021198004_0.png.png imagette281897231762318592/1762318507_512746_1392658335_aaeb2ac1e3144e2a8030bf27d4ed5206_rle_crop_4021199049_0.png.png imagette281897231762318592/1762318286_499329_1392658165_f9987887d2e4129537d12b5bcfd591dd_rle_crop_4021198249_0.png.png imagette281897231762318592/1762318507_512746_1392658339_c576dfcccf3e588977a85ec940009a93_rle_crop_4021199008_0.png.png imagette281897231762318592/1762318026_487637_1392657995_74b2504958333766f9602b164b7bad2e_rle_crop_4021196546_0.png.png imagette281897231762318592/1762318146_493103_1392658020_1c0a6d7eff1e916998426271c95fcbaf_rle_crop_4021197100_0.png.png imagette281897231762318592/1762318507_512746_1392658337_7586744daa408f907645b43f34b48b7d_rle_crop_4021199023_0.png.png imagette281897231762318592/1762318406_507026_1392658285_021da8de185487ae1bf9e4286939eef3_rle_crop_4021198780_0.png.png imagette281897231762318592/1762318146_493103_1392658022_d8e8738233f9639e1c77085810c1dbb6_rle_crop_4021197080_0.png.png imagette281897231762318592/1762318146_493103_1392658023_4f89694643cbfcaecc9742cfc217b952_rle_crop_4021197059_0.png.png imagette281897231762318592/1762318165_493499_1392658025_fbbd441d755cb4a60cd5e4523c79295e_rle_crop_4021197147_0.png.png imagette281897231762318592/1762318286_499329_1392658169_d2cd468a7eabde73bcbbb717f2d879f8_rle_crop_4021198239_0.png.png imagette281897231762318592/1762318026_487637_1392657997_a981512edb1ff6247463ad96f64e1df6_rle_crop_4021196517_0.png.png imagette281897231762318592/1762318026_487637_1392657995_74b2504958333766f9602b164b7bad2e_rle_crop_4021196554_0.png.png imagette281897231762318592/1762318406_507026_1392658276_752ed898eb5db72ebb903f5a98b3433d_rle_crop_4021198811_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/549955c476da5e02c59d3946cc12acdb_99547824.png imagette281897231762318592 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28189717 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28189732,28189733,28189734,28189735,28189736,28189737,28189738,28189739,28189740,28189741,28189742,28189743?tags=Carton_gris,mal_croppe,Carton_brun,Teint_Dans_La_Masse,kraft,plastique,papier,environnement,metal,flou,cartonnette,autre_refus your option no_mail is active, we will not send the real mail to your client args[1392658430] : ('0.05670282457813817',) no score found for photo 1392658430 We are sending mail with results at report@fotonower.com args[1392658427] : ('0.05670282457813817',) no score found for photo 1392658427 We are sending mail with results at report@fotonower.com args[1392658425] : ('0.05670282457813817',) no score found for photo 1392658425 We are sending mail with results at report@fotonower.com args[1392658421] : ('0.05670282457813817',) no score found for photo 1392658421 We are sending mail with results at report@fotonower.com args[1392658418] : ('0.05670282457813817',) no score found for photo 1392658418 We are sending mail with results at report@fotonower.com args[1392658409] : ('0.05670282457813817',) no score found for photo 1392658409 We are sending mail with results at report@fotonower.com args[1392658408] : ('0.05670282457813817',) no score found for photo 1392658408 We are sending mail with results at report@fotonower.com args[1392658407] : ('0.05670282457813817',) no score found for photo 1392658407 We are sending mail with results at report@fotonower.com args[1392658405] : ('0.05670282457813817',) no score found for photo 1392658405 We are sending mail with results at report@fotonower.com args[1392658393] : ('0.05670282457813817',) no score found for photo 1392658393 We are sending mail with results at report@fotonower.com args[1392658391] : ('0.05670282457813817',) no score found for photo 1392658391 We are sending mail with results at report@fotonower.com args[1392658388] : ('0.05670282457813817',) no score found for photo 1392658388 We are sending mail with results at report@fotonower.com args[1392658385] : ('0.05670282457813817',) no score found for photo 1392658385 We are sending mail with results at report@fotonower.com args[1392658382] : ('0.05670282457813817',) no score found for photo 1392658382 We are sending mail with results at report@fotonower.com args[1392658376] : ('0.05670282457813817',) no score found for photo 1392658376 We are sending mail with results at report@fotonower.com refus_total : 0.05670282457813817 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=28189717 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_P28189717_05-11-2025_05_56_30.pdf results_Auto_P28189717_05-11-2025_05_56_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_05_56_30.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','28189717','results_Auto_P28189717_05-11-2025_05_56_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_05_56_30.pdf','pdf','','0.24','0.05670282457813817') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28189717]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376] map_info['map_portfolio_photo'] : {28189717: [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376, 1392658341, 1392658339, 1392658337, 1392658336, 1392658335, 1392658288, 1392658285, 1392658281, 1392658276, 1392658246, 1392658243, 1392658241, 1392658239, 1392658236, 1392658214, 1392658211, 1392658208, 1392658205, 1392658171, 1392658169, 1392658165, 1392658162, 1392658160, 1392658158, 1392658134, 1392658130, 1392658126, 1392658124, 1392658122, 1392658025, 1392658023, 1392658022, 1392658020, 1392657997, 1392657995]} final : False mtd_id 4302 list_pids : [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376] 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, '4001040') ('4302', '28189717', '1392658430', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658427', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658425', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658421', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658418', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658409', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658408', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658407', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658405', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658393', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658391', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658388', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658385', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658382', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658376', None, None, None, None, None, '4001040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28189717', '1392658430', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658427', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658425', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658421', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658418', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658409', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658408', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658407', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658405', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658393', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658391', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658388', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658385', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658382', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658376', None, None, None, None, None, '4001040')] time used for this insertion : 0.015533924102783203 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.090337514877319 time spend to save output : 0.015863895416259766 total time spend for step 4 : 5.106201410293579 step5:split_time_score Wed Nov 5 05:56:35 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 : ['28189717'] 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 : [('28189717',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28189717) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1392658425: {'path': 'temp/1762318590_2247008_1392658425_061e92cdb0b2419bc747d421ad12c17f.jpg', 'extension': 'jpg'}, 1392658427: {'path': 'temp/1762318590_2247008_1392658427_6ac6fb0b55fa43cfa54c53aede4aaae7.jpg', 'extension': 'jpg'}, 1392658430: {'path': 'temp/1762318590_2247008_1392658430_0cc6e982dfe9c23dc188eaf40d813fda.jpg', 'extension': 'jpg'}, 1392658391: {'path': 'temp/1762318590_2247008_1392658391_4c727633b207206121836dda966270c7.jpg', 'extension': 'jpg'}, 1392658393: {'path': 'temp/1762318590_2247008_1392658393_ace0a3a960da6eb35fe3217129721f57.jpg', 'extension': 'jpg'}, 1392658405: {'path': 'temp/1762318590_2247008_1392658405_7c4c242ac5b3777ff461b6e58af9ae26.jpg', 'extension': 'jpg'}, 1392658407: {'path': 'temp/1762318590_2247008_1392658407_77a9492aaecea264ba9499efa75d06ac.jpg', 'extension': 'jpg'}, 1392658376: {'path': 'temp/1762318590_2247008_1392658376_ac85387c47c54de8a79b33267dd4c185.jpg', 'extension': 'jpg'}, 1392658382: {'path': 'temp/1762318590_2247008_1392658382_ab00e313c7530c685178f74af408d835.jpg', 'extension': 'jpg'}, 1392658385: {'path': 'temp/1762318590_2247008_1392658385_ac2a85b4bbb8ad33d1b15a533e21b766.jpg', 'extension': 'jpg'}, 1392658388: {'path': 'temp/1762318590_2247008_1392658388_51c6b2f823c48eee37b026011b9dfeed.jpg', 'extension': 'jpg'}, 1392658408: {'path': 'temp/1762318590_2247008_1392658408_f538a31c90f48690fd7f7f4bd523fd50.jpg', 'extension': 'jpg'}, 1392658409: {'path': 'temp/1762318590_2247008_1392658409_cfe5c56bc5bb6688132f34e4e2995a30.jpg', 'extension': 'jpg'}, 1392658418: {'path': 'temp/1762318590_2247008_1392658418_015ee7528c1a58a0238be847a33b49e4.jpg', 'extension': 'jpg'}, 1392658421: {'path': 'temp/1762318590_2247008_1392658421_9ec36e6c9299839e8c01ae8330522fc6.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 = 28189717; (('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 = 28189717 group by h (('05', 50),) 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=28189717 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 (28189717) 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 (28189717) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05112025 28189717 Nombre de photos uploadées : 50 / 23040 (0%) 05112025 28189717 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 05112025 28189717 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1392657997, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/a981512edb1ff6247463ad96f64e1df6.jpg', 'username': None, 'uploaded_at': 1762317967, 'text': 'image_05112025_05_45_03_010156m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1392658025, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/fbbd441d755cb4a60cd5e4523c79295e.jpg', 'username': None, 'uploaded_at': 1762318027, 'text': 'image_05112025_05_45_23_010145m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1392657995, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/74b2504958333766f9602b164b7bad2e.jpg', 'username': None, 'uploaded_at': 1762317967, 'text': 'image_05112025_05_45_43_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392658023, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4f89694643cbfcaecc9742cfc217b952.jpg', 'username': None, 'uploaded_at': 1762318027, 'text': 'image_05112025_05_46_13_010135m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002336263656616211 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28189717, '2025-11-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2512508,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20769667625427246 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= 2512508 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2512508, 'dashboard_run_id': 2521502, 'mtr_portfolio_id': 28186038, 'dashboard_result_id': 16820294, '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_P28186038_05-11-2025_00_40_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2521502, 'mtr_portfolio_id': 28186394, 'dashboard_result_id': 16820295, '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_P28186394_05-11-2025_01_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2521502, 'mtr_portfolio_id': 28187294, 'dashboard_result_id': 16820296, '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_P28187294_05-11-2025_02_20_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2521502, 'mtr_portfolio_id': 28188183, 'dashboard_result_id': 16820297, '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_P28188183_05-11-2025_03_32_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2521502, 'mtr_portfolio_id': 28189180, 'dashboard_result_id': 16820298, '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_P28189180_05-11-2025_05_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189236, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2521502, 'mtr_portfolio_id': 28189317, 'dashboard_result_id': 16820299, '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_P28189317_05-11-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2521502, 'mtr_portfolio_id': 28189664, 'dashboard_result_id': 16820300, '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_P28189664_05-11-2025_05_47_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189677, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2521502, 'mtr_portfolio_id': 28189717, 'dashboard_result_id': 16820301, '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_P28189717_05-11-2025_05_54_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, '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 = 28186038 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': 4000304, 'mtr_portfolio_id': 28186038, 'created_at': datetime.datetime(2025, 11, 5, 0, 40, 58), 'result': '0.11148381848798551', 'result_long': None, 'result_double': None}] Qualite : 0.11148381848798551 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28186038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_00_40_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28186038 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_P28186038_05-11-2025_00_40_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}" where mtr_portfolio_id = 28186038 and dashboard_run_id = 2521502 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`=28186038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16820294, 0.11148381848798551, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_00_40_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, '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 = 28186394 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': 4000357, 'mtr_portfolio_id': 28186394, 'created_at': datetime.datetime(2025, 11, 5, 1, 3), 'result': '0.052245642542151395', 'result_long': None, 'result_double': None}] Qualite : 0.052245642542151395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28186394 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_01_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28186394 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_P28186394_05-11-2025_01_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}" where mtr_portfolio_id = 28186394 and dashboard_run_id = 2521502 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`=28186394 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16820295, 0.052245642542151395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_01_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, '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 = 28187294 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': 4000508, 'mtr_portfolio_id': 28187294, 'created_at': datetime.datetime(2025, 11, 5, 2, 20, 57), 'result': '0.0931771878060378', 'result_long': None, 'result_double': None}] Qualite : 0.0931771878060378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28187294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_02_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28187294 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_P28187294_05-11-2025_02_20_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}" where mtr_portfolio_id = 28187294 and dashboard_run_id = 2521502 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`=28187294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16820296, 0.0931771878060378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_02_20_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, '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 = 28188183 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': 4000645, 'mtr_portfolio_id': 28188183, 'created_at': datetime.datetime(2025, 11, 5, 3, 32, 31), 'result': '0.061078176578676466', 'result_long': None, 'result_double': None}] Qualite : 0.061078176578676466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28188183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_03_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28188183 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_P28188183_05-11-2025_03_32_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}" where mtr_portfolio_id = 28188183 and dashboard_run_id = 2521502 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`=28188183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16820297, 0.061078176578676466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_03_32_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, '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 = 28189180 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189180 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28189180 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189180 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189180 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189180_05-11-2025_05_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189180 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_P28189180_05-11-2025_05_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189236, 'pht': 3726}}" where mtr_portfolio_id = 28189180 and dashboard_run_id = 2521502 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 = 28189317 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': 4000858, 'mtr_portfolio_id': 28189317, 'created_at': datetime.datetime(2025, 11, 5, 5, 45, 33), 'result': '0.05720052889085852', 'result_long': None, 'result_double': None}] Qualite : 0.05720052889085852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189317 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_P28189317_05-11-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}" where mtr_portfolio_id = 28189317 and dashboard_run_id = 2521502 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`=28189317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16820299, 0.05720052889085852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_05_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, '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 = 28189664 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28189664 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189664_05-11-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189664 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_P28189664_05-11-2025_05_47_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189677, 'pht': 3726}}" where mtr_portfolio_id = 28189664 and dashboard_run_id = 2521502 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 = 28189717 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': 4001040, 'mtr_portfolio_id': 28189717, 'created_at': datetime.datetime(2025, 11, 5, 5, 56, 29), 'result': '0.05670282457813817', 'result_long': None, 'result_double': None}] Qualite : 0.05670282457813817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_05_56_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189717 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_P28189717_05-11-2025_05_56_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, 'pht': 3726}}" where mtr_portfolio_id = 28189717 and dashboard_run_id = 2521502 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`=28189717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16820301, 0.05670282457813817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_05_56_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, '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 (28186038,28186394,28187294,28188183,28189180,28189317,28189664,28189717) result : ((1392617853,), (1392617859,), (1392617861,), (1392618834,), (1392619427,), (1392619646,), (1392619652,), (1392619664,), (1392619771,), (1392619776,), (1392619794,), (1392622575,), (1392624099,), (1392624159,), (1392624315,), (1392624846,), (1392625280,), (1392625705,), (1392625734,), (1392626088,), (1392626189,), (1392626193,), (1392626304,), (1392633920,), (1392636440,), (1392637712,), (1392637787,), (1392638973,), (1392639353,), (1392639501,), (1392639504,), (1392639569,), (1392639809,), (1392646293,), (1392646343,), (1392646492,), (1392646587,), (1392646612,), (1392646668,), (1392646671,), (1392646674,), (1392646746,), (1392656106,), (1392656317,), (1392656320,), (1392656388,), (1392656613,), (1392656752,), (1392656757,), (1392656803,), (1392656829,), (1392656831,), (1392656855,), (1392656858,), (1392656860,), (1392656957,), (1392656964,), (1392656970,), (1392656978,), (1392657044,), (1392657051,), (1392657054,), (1392657057,), (1392657073,), (1392657076,), (1392657079,), (1392657114,), (1392657116,), (1392657118,), (1392657121,), (1392657140,), (1392657143,), (1392657144,), (1392657145,), (1392657249,), (1392657251,), (1392657252,), (1392657255,), (1392657258,), (1392657262,), (1392657280,), (1392657284,), (1392657286,), (1392657288,), (1392657339,), (1392657343,), (1392657919,), (1392657614,), (1392657918,), (1392657958,), (1392657959,), (1392657963,), (1392657965,), (1392657967,), (1392657970,), (1392657999,), (1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05112025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28189717]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376] map_info['map_portfolio_photo'] : {28189717: [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376, 1392658341, 1392658339, 1392658337, 1392658336, 1392658335, 1392658288, 1392658285, 1392658281, 1392658276, 1392658246, 1392658243, 1392658241, 1392658239, 1392658236, 1392658214, 1392658211, 1392658208, 1392658205, 1392658171, 1392658169, 1392658165, 1392658162, 1392658160, 1392658158, 1392658134, 1392658130, 1392658126, 1392658124, 1392658122, 1392658025, 1392658023, 1392658022, 1392658020, 1392657997, 1392657995]} final : True mtd_id 4302 list_pids : [1392658430, 1392658427, 1392658425, 1392658421, 1392658418, 1392658409, 1392658408, 1392658407, 1392658405, 1392658393, 1392658391, 1392658388, 1392658385, 1392658382, 1392658376] Looping around the photos to save general results len do output : 1 /28189717Didn'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, '4001040') ('4302', '28189717', '1392658430', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658427', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658425', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658421', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658418', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658409', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658408', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658407', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658405', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658393', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658391', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658388', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658385', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658382', None, None, None, None, None, '4001040') ('4302', None, None, None, None, None, None, None, '4001040') ('4302', '28189717', '1392658376', None, None, None, None, None, '4001040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28189717', 'None', None, None, None, None, '4001040'), ('4302', '28189717', '1392658430', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658427', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658425', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658421', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658418', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658409', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658408', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658407', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658405', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658393', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658391', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658388', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658385', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658382', None, None, None, None, None, '4001040'), ('4302', '28189717', '1392658376', None, None, None, None, None, '4001040')] time used for this insertion : 0.023202180862426758 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9510378837585449 time spend to save output : 0.023479938507080078 total time spend for step 5 : 0.974517822265625 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 (4001040) 2.64user 2.37system 0:11.98elapsed 41%CPU (0avgtext+0avgdata 160688maxresident)k 80inputs+13384outputs (4major+78973minor)pagefaults 0swaps