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 : 3664702 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 (4261715) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4261715) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643562 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4261715'] with mtr_portfolio_ids : ['29643562'] and first list_photo_ids : [] new path : /proc/3664702/ Name: python3 Umask: 0002 State: R (running) Tgid: 3664702 Ngid: 0 Pid: 3664702 PPid: 3664701 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3664702 NSpid: 3664702 NSpgid: 3663347 NSsid: 3663347 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104824 kB VmRSS: 104824 kB RssAnon: 66288 kB RssFile: 38536 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 596 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: 44 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3664702', 'Ngid': '0', 'Pid': '3664702', 'PPid': '3664701', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3664702', 'NSpid': '3664702', 'NSpgid': '3663347', 'NSsid': '3663347', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104824 kB', 'VmRSS': '104824 kB', 'RssAnon': '66288 kB', 'RssFile': '38536 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '596 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': '44', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '3664702', '1113364', '0', '1113364', '872092', '104824', b'', 'marlene', '4261715') 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 (29643562) 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 (4261715 ) ) 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 (29643562) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400647637, 'portfolio_id': 29643562}, {'photo_id': 1400647635, 'portfolio_id': 29643562}, {'photo_id': 1400647633, 'portfolio_id': 29643562}, {'photo_id': 1400647630, 'portfolio_id': 29643562}, {'photo_id': 1400647602, 'portfolio_id': 29643562}, {'photo_id': 1400647592, 'portfolio_id': 29643562}, {'photo_id': 1400647588, 'portfolio_id': 29643562}, {'photo_id': 1400647584, 'portfolio_id': 29643562}, {'photo_id': 1400647581, 'portfolio_id': 29643562}, {'photo_id': 1400647579, 'portfolio_id': 29643562}, {'photo_id': 1400647578, 'portfolio_id': 29643562}, {'photo_id': 1400647577, 'portfolio_id': 29643562}, {'photo_id': 1400647575, 'portfolio_id': 29643562}, {'photo_id': 1400647574, 'portfolio_id': 29643562}, {'photo_id': 1400647573, 'portfolio_id': 29643562}, {'photo_id': 1400647571, 'portfolio_id': 29643562}, {'photo_id': 1400647568, 'portfolio_id': 29643562}, {'photo_id': 1400647567, 'portfolio_id': 29643562}, {'photo_id': 1400647564, 'portfolio_id': 29643562}, {'photo_id': 1400647562, 'portfolio_id': 29643562}, {'photo_id': 1400647561, 'portfolio_id': 29643562}, {'photo_id': 1400647558, 'portfolio_id': 29643562}, {'photo_id': 1400647556, 'portfolio_id': 29643562}, {'photo_id': 1400647549, 'portfolio_id': 29643562}, {'photo_id': 1400647547, 'portfolio_id': 29643562}, {'photo_id': 1400647545, 'portfolio_id': 29643562}, {'photo_id': 1400647538, 'portfolio_id': 29643562}, {'photo_id': 1400647531, 'portfolio_id': 29643562}, {'photo_id': 1400647530, 'portfolio_id': 29643562}, {'photo_id': 1400647522, 'portfolio_id': 29643562}, {'photo_id': 1400647520, 'portfolio_id': 29643562}, {'photo_id': 1400647514, 'portfolio_id': 29643562}, {'photo_id': 1400647512, 'portfolio_id': 29643562}, {'photo_id': 1400647509, 'portfolio_id': 29643562}, {'photo_id': 1400647506, 'portfolio_id': 29643562}, {'photo_id': 1400647492, 'portfolio_id': 29643562}, {'photo_id': 1400647489, 'portfolio_id': 29643562}, {'photo_id': 1400647480, 'portfolio_id': 29643562}, {'photo_id': 1400647468, 'portfolio_id': 29643562}, {'photo_id': 1400647463, 'portfolio_id': 29643562}, {'photo_id': 1400647460, 'portfolio_id': 29643562}, {'photo_id': 1400647397, 'portfolio_id': 29643562}, {'photo_id': 1400647393, 'portfolio_id': 29643562}, {'photo_id': 1400647389, 'portfolio_id': 29643562}, {'photo_id': 1400647387, 'portfolio_id': 29643562}, {'photo_id': 1400647376, 'portfolio_id': 29643562}, {'photo_id': 1400647373, 'portfolio_id': 29643562}, {'photo_id': 1400647370, 'portfolio_id': 29643562}, {'photo_id': 1400647368, 'portfolio_id': 29643562}, {'photo_id': 1400647364, 'portfolio_id': 29643562}, {'photo_id': 1400647359, 'portfolio_id': 29643562}, {'photo_id': 1400647357, 'portfolio_id': 29643562}, {'photo_id': 1400647356, 'portfolio_id': 29643562}, {'photo_id': 1400647355, 'portfolio_id': 29643562}, {'photo_id': 1400647352, 'portfolio_id': 29643562}, {'photo_id': 1400647350, 'portfolio_id': 29643562}, {'photo_id': 1400647341, 'portfolio_id': 29643562}, {'photo_id': 1400647333, 'portfolio_id': 29643562}, {'photo_id': 1400647331, 'portfolio_id': 29643562}, {'photo_id': 1400647329, 'portfolio_id': 29643562}, {'photo_id': 1400647328, 'portfolio_id': 29643562}, {'photo_id': 1400647327, 'portfolio_id': 29643562}, {'photo_id': 1400647316, 'portfolio_id': 29643562}, {'photo_id': 1400647313, 'portfolio_id': 29643562}, {'photo_id': 1400647309, 'portfolio_id': 29643562}, {'photo_id': 1400647306, 'portfolio_id': 29643562}, {'photo_id': 1400647305, 'portfolio_id': 29643562}, {'photo_id': 1400647302, 'portfolio_id': 29643562}, {'photo_id': 1400647279, 'portfolio_id': 29643562}, {'photo_id': 1400647278, 'portfolio_id': 29643562}, {'photo_id': 1400647277, 'portfolio_id': 29643562}, {'photo_id': 1400647225, 'portfolio_id': 29643562}, {'photo_id': 1400647197, 'portfolio_id': 29643562}, {'photo_id': 1400647176, 'portfolio_id': 29643562}] map_portfolio_id_photo_id: {29643562: [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556, 1400647549, 1400647547, 1400647545, 1400647538, 1400647531, 1400647530, 1400647522, 1400647520, 1400647514, 1400647512, 1400647509, 1400647506, 1400647492, 1400647489, 1400647480, 1400647468, 1400647463, 1400647460, 1400647397, 1400647393, 1400647389, 1400647387, 1400647376, 1400647373, 1400647370, 1400647368, 1400647364, 1400647359, 1400647357, 1400647356, 1400647355, 1400647352, 1400647350, 1400647341, 1400647333, 1400647331, 1400647329, 1400647328, 1400647327, 1400647316, 1400647313, 1400647309, 1400647306, 1400647305, 1400647302, 1400647279, 1400647278, 1400647277, 1400647225, 1400647197, 1400647176]} ##### 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.01952528953552246 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Dec 23 05:28:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29643562) 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 : 29643562 get user id for portfolio 29643562 get sub ptf for main ptf 29643562, type 3726 and hashtags ['papier', 'plastique', 'mal_croppe', 'environnement', 'cartonnette', 'kraft', 'Teint_Dans_La_Masse', 'flou', 'Carton_gris', 'autre_refus', 'Carton_brun', 'metal'] 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`=29643562 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','environnement','cartonnette','kraft','Teint_Dans_La_Masse','flou','Carton_gris','autre_refus','Carton_brun','metal')) 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`=29643562 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','environnement','cartonnette','kraft','Teint_Dans_La_Masse','flou','Carton_gris','autre_refus','Carton_brun','metal')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 29643562, 'sub_port_id': 29643577, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241573, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'papier': {'main_port_id': 29643562, 'sub_port_id': 29643578, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241574, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'Carton_brun': {'main_port_id': 29643562, 'sub_port_id': 29643579, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241575, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'plastique': {'main_port_id': 29643562, 'sub_port_id': 29643580, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241576, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'autre_refus': {'main_port_id': 29643562, 'sub_port_id': 29643581, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241577, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'cartonnette': {'main_port_id': 29643562, 'sub_port_id': 29643582, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241578, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29643562, 'sub_port_id': 29643583, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241579, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'environnement': {'main_port_id': 29643562, 'sub_port_id': 29643584, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241580, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'metal': {'main_port_id': 29643562, 'sub_port_id': 29643585, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241581, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'Carton_gris': {'main_port_id': 29643562, 'sub_port_id': 29643586, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241582, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'flou': {'main_port_id': 29643562, 'sub_port_id': 29643587, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241583, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}, 'mal_croppe': {'main_port_id': 29643562, 'sub_port_id': 29643588, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241584, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29643577 , 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=29643562 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 (29643577) result : ((1400647546,), (1400647626,), (1400647627,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643578 , 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=29643562 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 (29643578) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643579 , 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=29643562 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 (29643579) result : ((1400647484,), (1400647485,), (1400647486,), (1400647544,), (1400647612,), (1400647613,), (1400647625,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643580 , 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=29643562 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 (29643580) result : ((1400647487,), (1400647488,), (1400647518,), (1400647618,), (1400647619,), (1400647620,), (1400647622,), (1400647623,), (1400647624,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643581 , 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=29643562 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 (29643581) result : ((1400647469,), (1400647470,), (1400647517,), (1400647539,), (1400647606,), (1400647607,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643582 , 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=29643562 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 (29643582) result : ((1400647481,), (1400647482,), (1400647610,), (1400647611,), (1400647621,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643583 , 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=29643562 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 (29643583) result : ((1400647287,), (1400647335,), (1400647336,), (1400647337,), (1400647338,), (1400647339,), (1400647408,), (1400647464,), (1400647465,), (1400647466,), (1400647467,), (1400647515,), (1400647533,), (1400647534,), (1400647535,), (1400647536,), (1400647537,), (1400647604,), (1400647605,), (1400647614,), (1400647615,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643584 , 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=29643562 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 (29643584) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643585 , 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=29643562 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 (29643585) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643586 , 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=29643562 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 (29643586) result : ((1400647472,), (1400647473,), (1400647474,), (1400647475,), (1400647476,), (1400647477,), (1400647478,), (1400647479,), (1400647540,), (1400647541,), (1400647542,), (1400647608,), (1400647609,), (1400647617,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643587 , 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=29643562 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 (29643587) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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 29643588 , 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=29643562 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 (29643588) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29643562) result : ((1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) 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`=29643562 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','environnement','cartonnette','kraft','Teint_Dans_La_Masse','flou','Carton_gris','autre_refus','Carton_brun','metal')) 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`=29643562 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','environnement','cartonnette','kraft','Teint_Dans_La_Masse','flou','Carton_gris','autre_refus','Carton_brun','metal')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 29643562, 'sub_port_id': 29643589, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241585, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'papier': {'main_port_id': 29643562, 'sub_port_id': 29643590, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241586, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'Carton_brun': {'main_port_id': 29643562, 'sub_port_id': 29643591, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241587, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'plastique': {'main_port_id': 29643562, 'sub_port_id': 29643592, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241588, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'autre_refus': {'main_port_id': 29643562, 'sub_port_id': 29643593, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241589, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'cartonnette': {'main_port_id': 29643562, 'sub_port_id': 29643594, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241590, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29643562, 'sub_port_id': 29643595, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241591, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'environnement': {'main_port_id': 29643562, 'sub_port_id': 29643596, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241592, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'metal': {'main_port_id': 29643562, 'sub_port_id': 29643597, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241593, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'Carton_gris': {'main_port_id': 29643562, 'sub_port_id': 29643598, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241594, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'flou': {'main_port_id': 29643562, 'sub_port_id': 29643599, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241595, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}, 'mal_croppe': {'main_port_id': 29643562, 'sub_port_id': 29643600, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20241596, 'last_updated_at': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 5, 26, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 5, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643589,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643577 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643590,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643578 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643591,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643579 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643592,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643580 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643593,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643581 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643594,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643582 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643595,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643583 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643596,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643584 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643597,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643585 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643598,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643586 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643599,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643587 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29643600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29643588 lien utilise dans velours : https://marlene.fotonower.com/velours/29643589,29643590,29643591,29643592,29643593,29643594,29643595,29643596,29643597,29643598,29643599,29643600?tags=kraft,papier,Carton_brun,plastique,autre_refus,cartonnette,Teint_Dans_La_Masse,environnement,metal,Carton_gris,flou,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29643562]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556] map_info['map_portfolio_photo'] : {29643562: [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556, 1400647549, 1400647547, 1400647545, 1400647538, 1400647531, 1400647530, 1400647522, 1400647520, 1400647514, 1400647512, 1400647509, 1400647506, 1400647492, 1400647489, 1400647480, 1400647468, 1400647463, 1400647460, 1400647397, 1400647393, 1400647389, 1400647387, 1400647376, 1400647373, 1400647370, 1400647368, 1400647364, 1400647359, 1400647357, 1400647356, 1400647355, 1400647352, 1400647350, 1400647341, 1400647333, 1400647331, 1400647329, 1400647328, 1400647327, 1400647316, 1400647313, 1400647309, 1400647306, 1400647305, 1400647302, 1400647279, 1400647278, 1400647277, 1400647225, 1400647197, 1400647176]} final : False mtd_id 4302 list_pids : [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556] Looping around the photos to save general results len do output : 1 /29643562. 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, '4261715') ('4302', '29643562', '1400647637', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647635', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647633', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647630', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647602', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647592', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647588', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647584', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647581', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647579', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647578', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647577', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647575', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647574', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647573', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647571', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647568', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647567', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647564', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647562', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647561', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647558', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647556', None, None, None, None, None, '4261715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '29643562', "{'kraft': 29643577, 'papier': 29643578, 'Carton_brun': 29643579, 'plastique': 29643580, 'autre_refus': 29643581, 'cartonnette': 29643582, 'Teint_Dans_La_Masse': 29643583, 'environnement': 29643584, 'metal': 29643585, 'Carton_gris': 29643586, 'flou': 29643587, 'mal_croppe': 29643588}", None, None, None, None, '4261715'), ('4302', '29643562', '1400647637', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647635', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647633', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647630', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647602', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647592', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647588', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647584', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647581', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647579', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647578', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647577', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647575', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647574', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647573', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647571', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647568', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647567', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647564', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647562', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647561', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647558', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647556', None, None, None, None, None, '4261715')] time used for this insertion : 0.02100658416748047 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9264988899230957 time spend to save output : 0.02139115333557129 total time spend for step 1 : 1.947890043258667 step2:final Tue Dec 23 05:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29643562) 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 29643562 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400647176,1400647197,1400647225,1400647279,1400647278,1400647277,1400647357,1400647316,1400647356,1400647313,1400647355,1400647309,1400647306,1400647352,1400647350,1400647305,1400647341,1400647302,1400647333,1400647331,1400647329,1400647328,1400647327,1400647376,1400647373,1400647370,1400647368,1400647364,1400647359,1400647397,1400647602,1400647393,1400647577,1400647575,1400647389,1400647574,1400647573,1400647387,1400647492,1400647549,1400647489,1400647547,1400647545,1400647480,1400647538,1400647468,1400647531,1400647463,1400647530,1400647460,1400647522,1400647520,1400647514,1400647512,1400647509,1400647506,1400647571,1400647568,1400647567,1400647564,1400647562,1400647561,1400647558,1400647556,1400647592,1400647588,1400647584,1400647581,1400647579,1400647578,1400647637,1400647635,1400647633,1400647630); 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([29643562]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} new output for save of step final : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556] map_info['map_portfolio_photo'] : {29643562: [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556, 1400647549, 1400647547, 1400647545, 1400647538, 1400647531, 1400647530, 1400647522, 1400647520, 1400647514, 1400647512, 1400647509, 1400647506, 1400647492, 1400647489, 1400647480, 1400647468, 1400647463, 1400647460, 1400647397, 1400647393, 1400647389, 1400647387, 1400647376, 1400647373, 1400647370, 1400647368, 1400647364, 1400647359, 1400647357, 1400647356, 1400647355, 1400647352, 1400647350, 1400647341, 1400647333, 1400647331, 1400647329, 1400647328, 1400647327, 1400647316, 1400647313, 1400647309, 1400647306, 1400647305, 1400647302, 1400647279, 1400647278, 1400647277, 1400647225, 1400647197, 1400647176]} final : False mtd_id 4302 list_pids : [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556] Looping around the photos to save general results len do output : 23 /1400647637.Didn't retrieve data . /1400647635.Didn't retrieve data . /1400647633.Didn't retrieve data . /1400647630.Didn't retrieve data . /1400647602.Didn't retrieve data . /1400647592.Didn't retrieve data . /1400647588.Didn't retrieve data . /1400647584.Didn't retrieve data . /1400647581.Didn't retrieve data . /1400647579.Didn't retrieve data . /1400647578.Didn't retrieve data . /1400647577.Didn't retrieve data . /1400647575.Didn't retrieve data . /1400647574.Didn't retrieve data . /1400647573.Didn't retrieve data . /1400647571.Didn't retrieve data . /1400647568.Didn't retrieve data . /1400647567.Didn't retrieve data . /1400647564.Didn't retrieve data . /1400647562.Didn't retrieve data . /1400647561.Didn't retrieve data . /1400647558.Didn't retrieve data . /1400647556.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, '4261715') ('4302', '29643562', '1400647637', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647635', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647633', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647630', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647602', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647592', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647588', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647584', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647581', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647579', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647578', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647577', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647575', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647574', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647573', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647571', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647568', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647567', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647564', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647562', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647561', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647558', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647556', None, None, None, None, None, '4261715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 69 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', '29643562', '1400647637', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647635', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647633', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647630', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647602', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647592', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647588', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647584', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647581', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647579', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647578', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647577', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647575', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647574', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647573', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647571', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647568', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647567', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647564', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647562', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647561', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647558', '0.040221915226335905', None, None, None, None, '4261715'), ('4302', '29643562', '1400647556', '0.040221915226335905', None, None, None, None, '4261715')] time used for this insertion : 0.019006729125976562 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08735156059265137 time spend to save output : 0.019961118698120117 total time spend for step 2 : 0.10731267929077148 step3:velours_tree Tue Dec 23 05:29:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29643562: [{'kraft': 29643577, 'papier': 29643578, 'Carton_brun': 29643579, 'plastique': 29643580, 'autre_refus': 29643581, 'cartonnette': 29643582, 'Teint_Dans_La_Masse': 29643583, 'environnement': 29643584, 'metal': 29643585, 'Carton_gris': 29643586, 'flou': 29643587, 'mal_croppe': 29643588}]} input_args_next_step : {29643562: ()} output_args : {29643562: [{'kraft': 29643577, 'papier': 29643578, 'Carton_brun': 29643579, 'plastique': 29643580, 'autre_refus': 29643581, 'cartonnette': 29643582, 'Teint_Dans_La_Masse': 29643583, 'environnement': 29643584, 'metal': 29643585, 'Carton_gris': 29643586, 'flou': 29643587, 'mal_croppe': 29643588}]} args : 29643562 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 : ({'kraft': 29643577, 'papier': 29643578, 'Carton_brun': 29643579, 'plastique': 29643580, 'autre_refus': 29643581, 'cartonnette': 29643582, 'Teint_Dans_La_Masse': 29643583, 'environnement': 29643584, 'metal': 29643585, 'Carton_gris': 29643586, 'flou': 29643587, 'mal_croppe': 29643588},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29643562) 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([29643562]) 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.24089980125427246 time spend to save output : 3.910064697265625e-05 total time spend for step 3 : 0.24093890190124512 step4:send_mail_cod Tue Dec 23 05:29:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} input_args_next_step : {1400647637: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647637 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647635 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647633 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647630 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647602 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647592 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647588 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647584 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647581 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647579 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647578 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647577 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647575 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647574 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647573 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647571 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647568 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647567 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647564 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647562 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647561 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647558 depend.output_id : 0 input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ()} output_args : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',)} args : 1400647556 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 : {29643562: [{'kraft': 29643577, 'papier': 29643578, 'Carton_brun': 29643579, 'plastique': 29643580, 'autre_refus': 29643581, 'cartonnette': 29643582, 'Teint_Dans_La_Masse': 29643583, 'environnement': 29643584, 'metal': 29643585, 'Carton_gris': 29643586, 'flou': 29643587, 'mal_croppe': 29643588}]} input_args_next_step : {1400647637: ('0.040221915226335905',), 1400647635: ('0.040221915226335905',), 1400647633: ('0.040221915226335905',), 1400647630: ('0.040221915226335905',), 1400647602: ('0.040221915226335905',), 1400647592: ('0.040221915226335905',), 1400647588: ('0.040221915226335905',), 1400647584: ('0.040221915226335905',), 1400647581: ('0.040221915226335905',), 1400647579: ('0.040221915226335905',), 1400647578: ('0.040221915226335905',), 1400647577: ('0.040221915226335905',), 1400647575: ('0.040221915226335905',), 1400647574: ('0.040221915226335905',), 1400647573: ('0.040221915226335905',), 1400647571: ('0.040221915226335905',), 1400647568: ('0.040221915226335905',), 1400647567: ('0.040221915226335905',), 1400647564: ('0.040221915226335905',), 1400647562: ('0.040221915226335905',), 1400647561: ('0.040221915226335905',), 1400647558: ('0.040221915226335905',), 1400647556: ('0.040221915226335905',), 29643562: ()} output_args : {29643562: [{'kraft': 29643577, 'papier': 29643578, 'Carton_brun': 29643579, 'plastique': 29643580, 'autre_refus': 29643581, 'cartonnette': 29643582, 'Teint_Dans_La_Masse': 29643583, 'environnement': 29643584, 'metal': 29643585, 'Carton_gris': 29643586, 'flou': 29643587, 'mal_croppe': 29643588}]} args : 29643562 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 :24, first value : ('0.040221915226335905',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29643562) 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 (1400647637,1400647635,1400647633,1400647630,1400647602,1400647592,1400647588,1400647584,1400647581,1400647579,1400647578,1400647577,1400647575,1400647574,1400647573,1400647571,1400647568,1400647567,1400647564,1400647562,1400647561,1400647558,1400647556) Found this number of photos: 23 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400647556 begin to download photo : 1400647567 begin to download photo : 1400647575 begin to download photo : 1400647584 begin to download photo : 1400647633 download finish for photo 1400647556 begin to download photo : 1400647558 download finish for photo 1400647584 begin to download photo : 1400647588 download finish for photo 1400647633 begin to download photo : 1400647635 download finish for photo 1400647567 begin to download photo : 1400647568 download finish for photo 1400647575 begin to download photo : 1400647577 download finish for photo 1400647588 begin to download photo : 1400647592 download finish for photo 1400647558 begin to download photo : 1400647561 download finish for photo 1400647568 begin to download photo : 1400647571 download finish for photo 1400647577 begin to download photo : 1400647578 download finish for photo 1400647635 begin to download photo : 1400647637 download finish for photo 1400647592 begin to download photo : 1400647602 download finish for photo 1400647561 begin to download photo : 1400647562 download finish for photo 1400647571 begin to download photo : 1400647573 download finish for photo 1400647578 begin to download photo : 1400647579 download finish for photo 1400647637 download finish for photo 1400647602 begin to download photo : 1400647630 download finish for photo 1400647562 begin to download photo : 1400647564 download finish for photo 1400647579 begin to download photo : 1400647581 download finish for photo 1400647573 begin to download photo : 1400647574 download finish for photo 1400647630 download finish for photo 1400647564 download finish for photo 1400647581 download finish for photo 1400647574 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 23 ; length of list_pids : 23 ; length of list_args : 23 results_Auto_P29643562_23-12-2025_05_29_00.pdf 29643577 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=29643577 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400647546: '1766463926_780901_1400647397_4e8a43d77000832c2813b8ba528a7b1f_rle_crop_4078854628_0.png', 1400647626: '1766464026_785937_1400647531_e21e3db389599f662648bcc6c71e6de1_rle_crop_4078855097_0.png', 1400647627: '1766464026_785937_1400647463_d8c85b02834637937674c76856c571d4_rle_crop_4078855161_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/659483d025ac9496d2cb7a3b06f9325f_59500789.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/3b8d3307dc3f228213eaa73f313e5279_20226632.png change filename to text .imagette296435771766464140/ imagette296435771766464140/1766463926_780901_1400647397_4e8a43d77000832c2813b8ba528a7b1f_rle_crop_4078854628_0.png.png imagette296435771766464140/1766464026_785937_1400647531_e21e3db389599f662648bcc6c71e6de1_rle_crop_4078855097_0.png.png imagette296435771766464140/1766464026_785937_1400647463_d8c85b02834637937674c76856c571d4_rle_crop_4078855161_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/3b8d3307dc3f228213eaa73f313e5279_38444127.png imagette296435771766464140 29643580 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=29643580 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400647487: '1766463805_775307_1400647350_ca82768cc08e87ceb3854d45e061feeb_rle_crop_4078854231_0.png', 1400647488: '1766463805_775307_1400647305_3244c9e09fbccc149f6e5fdc4ce1b185_rle_crop_4078854316_0.png', 1400647518: '1766463906_780460_1400647387_a89b65d331a316287a6e65cac60cfdc9_rle_crop_4078854454_0.png', 1400647618: '1766464026_785937_1400647545_75812f9991bc964c80052eee7c8894f4_rle_crop_4078854971_0.png', 1400647619: '1766464026_785937_1400647538_54b8c74bb335e234d22489081f289031_rle_crop_4078855080_0.png', 1400647620: '1766464026_785937_1400647531_e21e3db389599f662648bcc6c71e6de1_rle_crop_4078855107_0.png', 1400647622: '1766464026_785937_1400647480_096b22d05a7ef002454e6b23d59733eb_rle_crop_4078855139_0.png', 1400647623: '1766464026_785937_1400647468_e62b6b0a21877b0e0e247d8c16433c63_rle_crop_4078855154_0.png', 1400647624: '1766464026_785937_1400647463_d8c85b02834637937674c76856c571d4_rle_crop_4078855171_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c398140744786739bbe6ca82d2bef2e2_91245009.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c398140744786739bbe6ca82d2bef2e2_19566069.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/5f6408275144fa4026903416c5f3343a_234981.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f93c6bd9b50cdd9755ca26a81f2f774b_87247563.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/122e63f014e3ae7cd20acab14c0f1fa9_97598939.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/a26722b02d9130b2637593a33b42a02f_8851514.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f93c6bd9b50cdd9755ca26a81f2f774b_74505431.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/122e63f014e3ae7cd20acab14c0f1fa9_89565654.png change filename to text .imagette296435801766464141/ imagette296435801766464141/1766464026_785937_1400647480_096b22d05a7ef002454e6b23d59733eb_rle_crop_4078855139_0.png.png imagette296435801766464141/1766464026_785937_1400647463_d8c85b02834637937674c76856c571d4_rle_crop_4078855171_0.png.png imagette296435801766464141/1766463805_775307_1400647350_ca82768cc08e87ceb3854d45e061feeb_rle_crop_4078854231_0.png.png imagette296435801766464141/1766464026_785937_1400647468_e62b6b0a21877b0e0e247d8c16433c63_rle_crop_4078855154_0.png.png imagette296435801766464141/1766464026_785937_1400647538_54b8c74bb335e234d22489081f289031_rle_crop_4078855080_0.png.png imagette296435801766464141/1766463805_775307_1400647305_3244c9e09fbccc149f6e5fdc4ce1b185_rle_crop_4078854316_0.png.png imagette296435801766464141/1766464026_785937_1400647545_75812f9991bc964c80052eee7c8894f4_rle_crop_4078854971_0.png.png imagette296435801766464141/1766464026_785937_1400647531_e21e3db389599f662648bcc6c71e6de1_rle_crop_4078855107_0.png.png imagette296435801766464141/1766463906_780460_1400647387_a89b65d331a316287a6e65cac60cfdc9_rle_crop_4078854454_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/a26722b02d9130b2637593a33b42a02f_8697233.png imagette296435801766464141 29643581 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=29643581 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400647469: '1766463805_775307_1400647355_691e9d8ed76a4548ee8bac915030c8c7_rle_crop_4078854206_0.png', 1400647470: '1766463805_775307_1400647309_0b52af1426f47abfbe41e4673caa2f50_rle_crop_4078854291_0.png', 1400647517: '1766463906_780460_1400647389_436a6509bea7303c4281e52fb89964bc_rle_crop_4078854437_0.png', 1400647539: '1766463926_780901_1400647373_8a46102679927fb4c99afaf625f68861_rle_crop_4078854636_0.png', 1400647606: '1766464026_785937_1400647545_75812f9991bc964c80052eee7c8894f4_rle_crop_4078854966_0.png', 1400647607: '1766464026_785937_1400647480_096b22d05a7ef002454e6b23d59733eb_rle_crop_4078855134_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/df9776fc0811a8be4d63c46c37d3faf7_63805615.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/df9776fc0811a8be4d63c46c37d3faf7_58858023.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/d25f4ce67f4a9f0aa8e4d7a280bfd339_97754890.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/26df3561e9edad8042410f2ff6740b72_18139925.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/36dc47a4f848c8d213fe5bf167169f83_15989453.png change filename to text .imagette296435811766464141/ imagette296435811766464141/1766463906_780460_1400647389_436a6509bea7303c4281e52fb89964bc_rle_crop_4078854437_0.png.png imagette296435811766464141/1766464026_785937_1400647545_75812f9991bc964c80052eee7c8894f4_rle_crop_4078854966_0.png.png imagette296435811766464141/1766463805_775307_1400647309_0b52af1426f47abfbe41e4673caa2f50_rle_crop_4078854291_0.png.png imagette296435811766464141/1766464026_785937_1400647480_096b22d05a7ef002454e6b23d59733eb_rle_crop_4078855134_0.png.png imagette296435811766464141/1766463926_780901_1400647373_8a46102679927fb4c99afaf625f68861_rle_crop_4078854636_0.png.png imagette296435811766464141/1766463805_775307_1400647355_691e9d8ed76a4548ee8bac915030c8c7_rle_crop_4078854206_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/36dc47a4f848c8d213fe5bf167169f83_57907179.png imagette296435811766464141 29643582 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=29643582 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400647481: '1766463805_775307_1400647355_691e9d8ed76a4548ee8bac915030c8c7_rle_crop_4078854199_0.png', 1400647482: '1766463805_775307_1400647309_0b52af1426f47abfbe41e4673caa2f50_rle_crop_4078854284_0.png', 1400647610: '1766464026_785937_1400647531_e21e3db389599f662648bcc6c71e6de1_rle_crop_4078855101_0.png', 1400647611: '1766464026_785937_1400647463_d8c85b02834637937674c76856c571d4_rle_crop_4078855165_0.png', 1400647621: '1766464046_786276_1400647512_ecc2bc1ac4c782bcaef27358df698a3b_rle_crop_4078855202_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/d3524e3fee5bd539e947faa8ec0c59c2_73247518.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/d3524e3fee5bd539e947faa8ec0c59c2_9079461.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/fd65a56eccb3c40b10cd012a9f975ee0_11133063.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/fd65a56eccb3c40b10cd012a9f975ee0_33394435.png change filename to text .imagette296435821766464142/ imagette296435821766464142/1766463805_775307_1400647309_0b52af1426f47abfbe41e4673caa2f50_rle_crop_4078854284_0.png.png imagette296435821766464142/1766464026_785937_1400647531_e21e3db389599f662648bcc6c71e6de1_rle_crop_4078855101_0.png.png imagette296435821766464142/1766463805_775307_1400647355_691e9d8ed76a4548ee8bac915030c8c7_rle_crop_4078854199_0.png.png imagette296435821766464142/1766464026_785937_1400647463_d8c85b02834637937674c76856c571d4_rle_crop_4078855165_0.png.png imagette296435821766464142/1766464046_786276_1400647512_ecc2bc1ac4c782bcaef27358df698a3b_rle_crop_4078855202_0.png.png imagette296435851766464142/ imagette296435871766464142/ imagette296435881766464142/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ce02edbb5b05f2abc57259320ab994bb_92102354.png imagette296435821766464142 29643585 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=29643585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296435851766464142 29643587 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=29643587 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296435871766464142 29643588 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=29643588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296435881766464142 29643579 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=29643579 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400647484: '1766463805_775307_1400647350_ca82768cc08e87ceb3854d45e061feeb_rle_crop_4078854233_0.png', 1400647485: '1766463805_775307_1400647333_6b0450d916bff3763816b2c8c7b2e350_rle_crop_4078854261_0.png', 1400647486: '1766463805_775307_1400647305_3244c9e09fbccc149f6e5fdc4ce1b185_rle_crop_4078854318_0.png', 1400647544: '1766463926_780901_1400647370_9f3683b01a82fc7f3bd1f5a39c27de23_rle_crop_4078854662_0.png', 1400647612: '1766464026_785937_1400647538_54b8c74bb335e234d22489081f289031_rle_crop_4078855076_0.png', 1400647613: '1766464026_785937_1400647468_e62b6b0a21877b0e0e247d8c16433c63_rle_crop_4078855150_0.png', 1400647625: '1766464046_786276_1400647512_ecc2bc1ac4c782bcaef27358df698a3b_rle_crop_4078855201_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/10dca1ffd0d9e9722e3f0bb4e6de7ce1_19955125.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/a82a3e886625f1be09eb935ce2887e32_12513684.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/10dca1ffd0d9e9722e3f0bb4e6de7ce1_10320064.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/42ebd8fa6f6660f6575ffe9e88c253f7_76004493.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/cb53267f1b3dfd634d359a6c37e728ad_14910136.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/cb53267f1b3dfd634d359a6c37e728ad_22167144.png change filename to text .imagette296435791766464142/ imagette296435791766464142/1766463805_775307_1400647350_ca82768cc08e87ceb3854d45e061feeb_rle_crop_4078854233_0.png.png imagette296435791766464142/1766463926_780901_1400647370_9f3683b01a82fc7f3bd1f5a39c27de23_rle_crop_4078854662_0.png.png imagette296435791766464142/1766464046_786276_1400647512_ecc2bc1ac4c782bcaef27358df698a3b_rle_crop_4078855201_0.png.png imagette296435791766464142/1766464026_785937_1400647538_54b8c74bb335e234d22489081f289031_rle_crop_4078855076_0.png.png imagette296435791766464142/1766464026_785937_1400647468_e62b6b0a21877b0e0e247d8c16433c63_rle_crop_4078855150_0.png.png imagette296435791766464142/1766463805_775307_1400647305_3244c9e09fbccc149f6e5fdc4ce1b185_rle_crop_4078854318_0.png.png imagette296435791766464142/1766463805_775307_1400647333_6b0450d916bff3763816b2c8c7b2e350_rle_crop_4078854261_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/1e8560bbf77afba47140f8d4dba45a7d_47259159.png imagette296435791766464142 29643583 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=29643583 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400647467: '1766463805_775307_1400647305_3244c9e09fbccc149f6e5fdc4ce1b185_rle_crop_4078854317_0.png', 1400647615: '1766464046_786276_1400647512_ecc2bc1ac4c782bcaef27358df698a3b_rle_crop_4078855200_0.png', 1400647614: '1766464046_786276_1400647512_ecc2bc1ac4c782bcaef27358df698a3b_rle_crop_4078855206_0.png', 1400647605: '1766464026_785937_1400647480_096b22d05a7ef002454e6b23d59733eb_rle_crop_4078855135_0.png', 1400647604: '1766464026_785937_1400647545_75812f9991bc964c80052eee7c8894f4_rle_crop_4078854967_0.png', 1400647537: '1766463926_780901_1400647359_4047ae7192e080654c17967845cc443d_rle_crop_4078854696_0.png', 1400647536: '1766463926_780901_1400647368_7dc99c0dfd903b7dd51c85650f280d3a_rle_crop_4078854675_0.png', 1400647535: '1766463926_780901_1400647368_7dc99c0dfd903b7dd51c85650f280d3a_rle_crop_4078854672_0.png', 1400647534: '1766463926_780901_1400647370_9f3683b01a82fc7f3bd1f5a39c27de23_rle_crop_4078854660_0.png', 1400647533: '1766463926_780901_1400647373_8a46102679927fb4c99afaf625f68861_rle_crop_4078854642_0.png', 1400647515: '1766463906_780460_1400647389_436a6509bea7303c4281e52fb89964bc_rle_crop_4078854438_0.png', 1400647287: '1766463545_763118_1400647176_88bd85f0d9453058cfa872735853ba59_rle_crop_4078852762_0.png', 1400647466: '1766463805_775307_1400647313_42d8e13cdcd7a0ff5e8b2440b77c1680_rle_crop_4078854276_0.png', 1400647465: '1766463805_775307_1400647350_ca82768cc08e87ceb3854d45e061feeb_rle_crop_4078854232_0.png', 1400647464: '1766463805_775307_1400647356_bdb201142a2a6d4ce8ed0bcc6f8ae311_rle_crop_4078854191_0.png', 1400647408: '1766463787_774955_1400647327_b23c7769097a225ca38ffcf9ca6215be_rle_crop_4078853153_0.png', 1400647339: '1766463666_769228_1400647277_8d0390c4562a029c3217a39a0ee83488_rle_crop_4078852915_0.png', 1400647338: '1766463666_769228_1400647277_8d0390c4562a029c3217a39a0ee83488_rle_crop_4078852909_0.png', 1400647337: '1766463666_769228_1400647277_8d0390c4562a029c3217a39a0ee83488_rle_crop_4078852908_0.png', 1400647336: '1766463666_769228_1400647277_8d0390c4562a029c3217a39a0ee83488_rle_crop_4078852910_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/faefbbbe10421de8088933c36edb08a9_66749292.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/89160870694ea975591e3bbd298822f6_46855741.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/dbd35f8226a0eda4f01cfb64455b045f_32168630.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/2ac3a48ac6b52d3112f438cd43470cf4_18869332.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/2ac3a48ac6b52d3112f438cd43470cf4_13827579.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/344589330cf5fb33feaa2c0b174e996c_53580048.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b5dbb7facd0f406432f3069a21b6516e_49822683.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/a4edd2cf403d119b90839f11548cd997_56738185.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/89e50d445b79201acbedc25a33f977d0_87990093.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/030efedd33d62baace0e0ded63027fb6_60612456.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/4108405435a001c86e3b1344ab702c51_17041418.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b168758399012ec29e73b31c6a8b0b2f_70624705.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b48440132cbc10bbce9c2d92dc240622_55806722.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/faefbbbe10421de8088933c36edb08a9_14098729.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b48440132cbc10bbce9c2d92dc240622_91931140.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/55b133de1e6a4577c4bb5f832093e07b_44407792.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/84e45ec465528adc45d57a190e75514c_95287794.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/d5af89ffb3115c494ca566583fa8546a_55368339.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/027828159da34cf5b70b9a1382829f63_63657680.png change filename to text .imagette296435831766464143/ imagette296435831766464143/1766463545_763118_1400647176_88bd85f0d9453058cfa872735853ba59_rle_crop_4078852762_0.png.png imagette296435831766464143/1766464026_785937_1400647480_096b22d05a7ef002454e6b23d59733eb_rle_crop_4078855135_0.png.png imagette296435831766464143/1766463805_775307_1400647350_ca82768cc08e87ceb3854d45e061feeb_rle_crop_4078854232_0.png.png imagette296435831766464143/1766463926_780901_1400647373_8a46102679927fb4c99afaf625f68861_rle_crop_4078854642_0.png.png imagette296435831766464143/1766463666_769228_1400647277_8d0390c4562a029c3217a39a0ee83488_rle_crop_4078852908_0.png.png imagette296435831766464143/1766463805_775307_1400647305_3244c9e09fbccc149f6e5fdc4ce1b185_rle_crop_4078854317_0.png.png imagette296435831766464143/1766463906_780460_1400647389_436a6509bea7303c4281e52fb89964bc_rle_crop_4078854438_0.png.png imagette296435831766464143/1766463926_780901_1400647370_9f3683b01a82fc7f3bd1f5a39c27de23_rle_crop_4078854660_0.png.png imagette296435831766464143/1766464046_786276_1400647512_ecc2bc1ac4c782bcaef27358df698a3b_rle_crop_4078855200_0.png.png imagette296435831766464143/1766463787_774955_1400647327_b23c7769097a225ca38ffcf9ca6215be_rle_crop_4078853153_0.png.png imagette296435831766464143/1766463666_769228_1400647277_8d0390c4562a029c3217a39a0ee83488_rle_crop_4078852915_0.png.png imagette296435831766464143/1766464046_786276_1400647512_ecc2bc1ac4c782bcaef27358df698a3b_rle_crop_4078855206_0.png.png imagette296435831766464143/1766463926_780901_1400647368_7dc99c0dfd903b7dd51c85650f280d3a_rle_crop_4078854675_0.png.png imagette296435831766464143/1766463666_769228_1400647277_8d0390c4562a029c3217a39a0ee83488_rle_crop_4078852909_0.png.png imagette296435831766464143/1766463805_775307_1400647356_bdb201142a2a6d4ce8ed0bcc6f8ae311_rle_crop_4078854191_0.png.png imagette296435831766464143/1766463805_775307_1400647313_42d8e13cdcd7a0ff5e8b2440b77c1680_rle_crop_4078854276_0.png.png imagette296435831766464143/1766464026_785937_1400647545_75812f9991bc964c80052eee7c8894f4_rle_crop_4078854967_0.png.png imagette296435831766464143/1766463926_780901_1400647359_4047ae7192e080654c17967845cc443d_rle_crop_4078854696_0.png.png imagette296435831766464143/1766463666_769228_1400647277_8d0390c4562a029c3217a39a0ee83488_rle_crop_4078852910_0.png.png imagette296435831766464143/1766463926_780901_1400647368_7dc99c0dfd903b7dd51c85650f280d3a_rle_crop_4078854672_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/398bc6dfa19dc34cc182114bad6286a5_10455103.png imagette296435831766464143 29643586 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=29643586 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400647472: '1766463805_775307_1400647356_bdb201142a2a6d4ce8ed0bcc6f8ae311_rle_crop_4078854185_0.png', 1400647473: '1766463805_775307_1400647356_bdb201142a2a6d4ce8ed0bcc6f8ae311_rle_crop_4078854184_0.png', 1400647474: '1766463805_775307_1400647356_bdb201142a2a6d4ce8ed0bcc6f8ae311_rle_crop_4078854187_0.png', 1400647475: '1766463805_775307_1400647341_ffa067972ce5fa84057564029f17dbb1_rle_crop_4078854242_0.png', 1400647476: '1766463805_775307_1400647313_42d8e13cdcd7a0ff5e8b2440b77c1680_rle_crop_4078854270_0.png', 1400647477: '1766463805_775307_1400647313_42d8e13cdcd7a0ff5e8b2440b77c1680_rle_crop_4078854269_0.png', 1400647478: '1766463805_775307_1400647313_42d8e13cdcd7a0ff5e8b2440b77c1680_rle_crop_4078854272_0.png', 1400647479: '1766463805_775307_1400647302_43c89255fcb12abc8d9f1ff4b0676c2e_rle_crop_4078854327_0.png', 1400647540: '1766463926_780901_1400647397_4e8a43d77000832c2813b8ba528a7b1f_rle_crop_4078854625_0.png', 1400647541: '1766463926_780901_1400647370_9f3683b01a82fc7f3bd1f5a39c27de23_rle_crop_4078854659_0.png', 1400647542: '1766463926_780901_1400647370_9f3683b01a82fc7f3bd1f5a39c27de23_rle_crop_4078854663_0.png', 1400647608: '1766464026_785937_1400647545_75812f9991bc964c80052eee7c8894f4_rle_crop_4078854963_0.png', 1400647609: '1766464026_785937_1400647480_096b22d05a7ef002454e6b23d59733eb_rle_crop_4078855131_0.png', 1400647617: '1766464046_786276_1400647506_a2e904bc130eeed690b7d805812e7d47_rle_crop_4078855229_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ddb09acce203088243581282c93fcdef_52303917.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/bb69d9ddac81bb8359aef0a5426b5c4e_4836728.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/2d6520d033628e0f1268ffce8c5fef8f_60872916.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/631ee212c78d6ff45de0c503cd34894d_41487959.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ddb09acce203088243581282c93fcdef_38971583.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/bb69d9ddac81bb8359aef0a5426b5c4e_10869226.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/2d6520d033628e0f1268ffce8c5fef8f_4758400.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/631ee212c78d6ff45de0c503cd34894d_14464353.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/7ebab068010bb341ed6370a631d68ce2_49899925.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/fd6d63c596759cc7f617b26ce1a82062_24430363.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b0442ec044623032fca1100ae14d6c9c_34108840.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/edc1b3d626e8a62d133302a9ae95fdea_86459823.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/edc1b3d626e8a62d133302a9ae95fdea_92441295.png change filename to text .imagette296435861766464144/ imagette296435861766464144/1766463926_780901_1400647370_9f3683b01a82fc7f3bd1f5a39c27de23_rle_crop_4078854659_0.png.png imagette296435861766464144/1766463805_775307_1400647356_bdb201142a2a6d4ce8ed0bcc6f8ae311_rle_crop_4078854185_0.png.png imagette296435861766464144/1766464046_786276_1400647506_a2e904bc130eeed690b7d805812e7d47_rle_crop_4078855229_0.png.png imagette296435861766464144/1766463805_775307_1400647356_bdb201142a2a6d4ce8ed0bcc6f8ae311_rle_crop_4078854187_0.png.png imagette296435861766464144/1766463926_780901_1400647397_4e8a43d77000832c2813b8ba528a7b1f_rle_crop_4078854625_0.png.png imagette296435861766464144/1766464026_785937_1400647480_096b22d05a7ef002454e6b23d59733eb_rle_crop_4078855131_0.png.png imagette296435861766464144/1766463805_775307_1400647356_bdb201142a2a6d4ce8ed0bcc6f8ae311_rle_crop_4078854184_0.png.png imagette296435861766464144/1766463805_775307_1400647341_ffa067972ce5fa84057564029f17dbb1_rle_crop_4078854242_0.png.png imagette296435861766464144/1766463926_780901_1400647370_9f3683b01a82fc7f3bd1f5a39c27de23_rle_crop_4078854663_0.png.png imagette296435861766464144/1766464026_785937_1400647545_75812f9991bc964c80052eee7c8894f4_rle_crop_4078854963_0.png.png imagette296435861766464144/1766463805_775307_1400647302_43c89255fcb12abc8d9f1ff4b0676c2e_rle_crop_4078854327_0.png.png imagette296435861766464144/1766463805_775307_1400647313_42d8e13cdcd7a0ff5e8b2440b77c1680_rle_crop_4078854270_0.png.png imagette296435861766464144/1766463805_775307_1400647313_42d8e13cdcd7a0ff5e8b2440b77c1680_rle_crop_4078854269_0.png.png imagette296435861766464144/1766463805_775307_1400647313_42d8e13cdcd7a0ff5e8b2440b77c1680_rle_crop_4078854272_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/7a79c1262e4b40e27e03e5d775488711_90726016.png imagette296435861766464144 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29643562 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29643589,29643590,29643591,29643592,29643593,29643594,29643595,29643596,29643597,29643598,29643599,29643600?tags=kraft,papier,Carton_brun,plastique,autre_refus,cartonnette,Teint_Dans_La_Masse,environnement,metal,Carton_gris,flou,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1400647637] : ('0.040221915226335905',) no score found for photo 1400647637 We are sending mail with results at report@fotonower.com args[1400647635] : ('0.040221915226335905',) no score found for photo 1400647635 We are sending mail with results at report@fotonower.com args[1400647633] : ('0.040221915226335905',) no score found for photo 1400647633 We are sending mail with results at report@fotonower.com args[1400647630] : ('0.040221915226335905',) no score found for photo 1400647630 We are sending mail with results at report@fotonower.com args[1400647602] : ('0.040221915226335905',) no score found for photo 1400647602 We are sending mail with results at report@fotonower.com args[1400647592] : ('0.040221915226335905',) no score found for photo 1400647592 We are sending mail with results at report@fotonower.com args[1400647588] : ('0.040221915226335905',) no score found for photo 1400647588 We are sending mail with results at report@fotonower.com args[1400647584] : ('0.040221915226335905',) no score found for photo 1400647584 We are sending mail with results at report@fotonower.com args[1400647581] : ('0.040221915226335905',) no score found for photo 1400647581 We are sending mail with results at report@fotonower.com args[1400647579] : ('0.040221915226335905',) no score found for photo 1400647579 We are sending mail with results at report@fotonower.com args[1400647578] : ('0.040221915226335905',) no score found for photo 1400647578 We are sending mail with results at report@fotonower.com args[1400647577] : ('0.040221915226335905',) no score found for photo 1400647577 We are sending mail with results at report@fotonower.com args[1400647575] : ('0.040221915226335905',) no score found for photo 1400647575 We are sending mail with results at report@fotonower.com args[1400647574] : ('0.040221915226335905',) no score found for photo 1400647574 We are sending mail with results at report@fotonower.com args[1400647573] : ('0.040221915226335905',) no score found for photo 1400647573 We are sending mail with results at report@fotonower.com args[1400647571] : ('0.040221915226335905',) no score found for photo 1400647571 We are sending mail with results at report@fotonower.com args[1400647568] : ('0.040221915226335905',) no score found for photo 1400647568 We are sending mail with results at report@fotonower.com args[1400647567] : ('0.040221915226335905',) no score found for photo 1400647567 We are sending mail with results at report@fotonower.com args[1400647564] : ('0.040221915226335905',) no score found for photo 1400647564 We are sending mail with results at report@fotonower.com args[1400647562] : ('0.040221915226335905',) no score found for photo 1400647562 We are sending mail with results at report@fotonower.com args[1400647561] : ('0.040221915226335905',) no score found for photo 1400647561 We are sending mail with results at report@fotonower.com args[1400647558] : ('0.040221915226335905',) no score found for photo 1400647558 We are sending mail with results at report@fotonower.com args[1400647556] : ('0.040221915226335905',) no score found for photo 1400647556 We are sending mail with results at report@fotonower.com refus_total : 0.040221915226335905 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=29643562 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_P29643562_23-12-2025_05_29_00.pdf results_Auto_P29643562_23-12-2025_05_29_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643562_23-12-2025_05_29_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29643562','results_Auto_P29643562_23-12-2025_05_29_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643562_23-12-2025_05_29_00.pdf','pdf','','0.31','0.040221915226335905') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29643562]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556] map_info['map_portfolio_photo'] : {29643562: [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556, 1400647549, 1400647547, 1400647545, 1400647538, 1400647531, 1400647530, 1400647522, 1400647520, 1400647514, 1400647512, 1400647509, 1400647506, 1400647492, 1400647489, 1400647480, 1400647468, 1400647463, 1400647460, 1400647397, 1400647393, 1400647389, 1400647387, 1400647376, 1400647373, 1400647370, 1400647368, 1400647364, 1400647359, 1400647357, 1400647356, 1400647355, 1400647352, 1400647350, 1400647341, 1400647333, 1400647331, 1400647329, 1400647328, 1400647327, 1400647316, 1400647313, 1400647309, 1400647306, 1400647305, 1400647302, 1400647279, 1400647278, 1400647277, 1400647225, 1400647197, 1400647176]} final : False mtd_id 4302 list_pids : [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556] 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, '4261715') ('4302', '29643562', '1400647637', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647635', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647633', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647630', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647602', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647592', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647588', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647584', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647581', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647579', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647578', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647577', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647575', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647574', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647573', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647571', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647568', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647567', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647564', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647562', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647561', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647558', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647556', None, None, None, None, None, '4261715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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', '29643562', '1400647637', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647635', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647633', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647630', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647602', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647592', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647588', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647584', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647581', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647579', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647578', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647577', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647575', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647574', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647573', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647571', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647568', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647567', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647564', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647562', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647561', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647558', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647556', None, None, None, None, None, '4261715')] time used for this insertion : 0.021820068359375 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.234904766082764 time spend to save output : 0.0222015380859375 total time spend for step 4 : 7.257106304168701 step5:split_time_score Tue Dec 23 05:29:07 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 : ['29643562'] 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 : [('29643562',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29643562) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400647633: {'path': 'temp/1766464140_3664702_1400647633_bac81bc71eb21a3aa1f64103a245bf75.jpg', 'extension': 'jpg'}, 1400647635: {'path': 'temp/1766464140_3664702_1400647635_703b1350fb6d7995e3475e0a980478bf.jpg', 'extension': 'jpg'}, 1400647637: {'path': 'temp/1766464140_3664702_1400647637_05cd7501317379a7c8f6cbd680af9baa.jpg', 'extension': 'jpg'}, 1400647584: {'path': 'temp/1766464140_3664702_1400647584_a95cab965cba1abe6ced4bab72acd89e.jpg', 'extension': 'jpg'}, 1400647588: {'path': 'temp/1766464140_3664702_1400647588_0067b2d5909f5cf9749e7f49f530ce1e.jpg', 'extension': 'jpg'}, 1400647592: {'path': 'temp/1766464140_3664702_1400647592_adc90954104dc2814cf0928c132621e6.jpg', 'extension': 'jpg'}, 1400647602: {'path': 'temp/1766464140_3664702_1400647602_7c3f73b51e26922f725dc885b4fb5c62.jpg', 'extension': 'jpg'}, 1400647630: {'path': 'temp/1766464140_3664702_1400647630_58e63d79608b9aba367575ee513db58b.jpg', 'extension': 'jpg'}, 1400647556: {'path': 'temp/1766464140_3664702_1400647556_36de76250cb147ea5a49011e944b9c64.jpg', 'extension': 'jpg'}, 1400647558: {'path': 'temp/1766464140_3664702_1400647558_a323e9cdd2f51b48116eda1f9812a0b0.jpg', 'extension': 'jpg'}, 1400647561: {'path': 'temp/1766464140_3664702_1400647561_a96b14cc1b6bcfdf561ec4347b3b2f61.jpg', 'extension': 'jpg'}, 1400647562: {'path': 'temp/1766464140_3664702_1400647562_76fa494742a41ef06d567681e887137c.jpg', 'extension': 'jpg'}, 1400647564: {'path': 'temp/1766464140_3664702_1400647564_45431b7b13f6cc46178068166d5e764f.jpg', 'extension': 'jpg'}, 1400647575: {'path': 'temp/1766464140_3664702_1400647575_c4071f48a90a7a9acd31f4261b4db40f.jpg', 'extension': 'jpg'}, 1400647577: {'path': 'temp/1766464140_3664702_1400647577_24652b0a009e47cf1e2b608d49131dc7.jpg', 'extension': 'jpg'}, 1400647578: {'path': 'temp/1766464140_3664702_1400647578_eaba8723cbf06f150e3db45f07966e8c.jpg', 'extension': 'jpg'}, 1400647579: {'path': 'temp/1766464140_3664702_1400647579_ebdffcb79ea0ee3120954de34cdefaca.jpg', 'extension': 'jpg'}, 1400647581: {'path': 'temp/1766464140_3664702_1400647581_4f8a8ebb4ac237707197cb76adca285c.jpg', 'extension': 'jpg'}, 1400647567: {'path': 'temp/1766464140_3664702_1400647567_48da5fbbe7f5a56a7019167a96e27c74.jpg', 'extension': 'jpg'}, 1400647568: {'path': 'temp/1766464140_3664702_1400647568_5396606b7012a31bc87553d50ecdf4b3.jpg', 'extension': 'jpg'}, 1400647571: {'path': 'temp/1766464140_3664702_1400647571_be64aec3f5e06e9cd707d2642dec1973.jpg', 'extension': 'jpg'}, 1400647573: {'path': 'temp/1766464140_3664702_1400647573_eb2b12a04e6d731ff2ede365d75cf71c.jpg', 'extension': 'jpg'}, 1400647574: {'path': 'temp/1766464140_3664702_1400647574_7014f80b77884c2067f48d896e1d6166.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 = 29643562; (('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 = 29643562 group by h (('05', 74),) 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=29643562 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 (29643562) 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 (29643562) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23122025 29643562 Nombre de photos uploadées : 74 / 23040 (0%) 23122025 29643562 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 23122025 29643562 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1400647176, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/88bd85f0d9453058cfa872735853ba59.jpg', 'username': None, 'uploaded_at': 1766463387, 'text': 'image_23122025_05_15_14_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400647197, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/3a6721eddaa0007d6e04d3595f240712.jpg', 'username': None, 'uploaded_at': 1766463427, 'text': 'image_23122025_05_15_24_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400647225, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/3a83817a8931ae223cf2da5d0051bcce.jpg', 'username': None, 'uploaded_at': 1766463487, 'text': 'image_23122025_05_16_44_10133.jpg'}, {'photo_id': 1400647279, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/a2c5fadc1defa252bae5b5c32ec8dfc7.jpg', 'username': None, 'uploaded_at': 1766463547, 'text': 'image_23122025_05_17_14_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ?????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003724336624145508 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29643562, '2025-12-23' ) 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-12-23' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2776859,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24351096153259277 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= 2776859 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29636316, 'dashboard_result_id': 18642733, '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_P29636316_23-12-2025_00_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29636749, 'dashboard_result_id': 18642734, '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_P29636749_23-12-2025_00_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29637002, 'dashboard_result_id': 18642735, '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_P29637002_23-12-2025_00_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29637369, 'dashboard_result_id': 18642736, '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_P29637369_23-12-2025_01_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29638070, 'dashboard_result_id': 18642737, '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_P29638070_23-12-2025_01_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29638385, 'dashboard_result_id': 18642738, '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_P29638385_23-12-2025_02_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29638771, 'dashboard_result_id': 18642739, '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_P29638771_23-12-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29639188, 'dashboard_result_id': 18642740, '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_P29639188_23-12-2025_02_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29639703, 'dashboard_result_id': 18642741, '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_P29639703_23-12-2025_02_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29639712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639723, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29640097, 'dashboard_result_id': 18642742, '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_P29640097_23-12-2025_03_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640134, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29640520, 'dashboard_result_id': 18642743, '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_P29640520_23-12-2025_03_17_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640563, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29641030, 'dashboard_result_id': 18642744, '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_P29641030_23-12-2025_03_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29641037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641049, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29641457, 'dashboard_result_id': 18642745, '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_P29641457_23-12-2025_03_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641475, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29641822, 'dashboard_result_id': 18642746, '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_P29641822_23-12-2025_04_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641859, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29642134, 'dashboard_result_id': 18642747, '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_P29642134_23-12-2025_04_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29642187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29642188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29642189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29642190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29642191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29642192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29642193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29642194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29642195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29642196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29642197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29642198, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29643132, 'dashboard_result_id': 18642748, '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_P29643132_23-12-2025_04_59_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643144, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29643214, 'dashboard_result_id': 18642749, '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_P29643214_23-12-2025_05_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643226, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2784599, 'mtr_portfolio_id': 29643562, 'dashboard_result_id': 18642750, '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_P29643562_23-12-2025_05_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643588, '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 = 29636316 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': 4260623, 'mtr_portfolio_id': 29636316, 'created_at': datetime.datetime(2025, 12, 23, 0, 20, 58), 'result': '0.040700966366868756', 'result_long': None, 'result_double': None}] Qualite : 0.040700966366868756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29636316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636316_23-12-2025_00_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29636316 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_P29636316_23-12-2025_00_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, 'pht': 3726}}" where mtr_portfolio_id = 29636316 and dashboard_run_id = 2784599 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`=29636316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642733, 0.040700966366868756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636316_23-12-2025_00_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, '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 = 29636749 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': 4260664, 'mtr_portfolio_id': 29636749, 'created_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'result': '0.19526065960367417', 'result_long': None, 'result_double': None}] Qualite : 0.19526065960367417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29636749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636749_23-12-2025_00_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29636749 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_P29636749_23-12-2025_00_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, 'pht': 3726}}" where mtr_portfolio_id = 29636749 and dashboard_run_id = 2784599 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`=29636749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642734, 0.19526065960367417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636749_23-12-2025_00_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, '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 = 29637002 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': 4260689, 'mtr_portfolio_id': 29637002, 'created_at': datetime.datetime(2025, 12, 23, 0, 46, 58), 'result': '0.06958774364948957', 'result_long': None, 'result_double': None}] Qualite : 0.06958774364948957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29637002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637002_23-12-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29637002 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_P29637002_23-12-2025_00_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, 'pht': 3726}}" where mtr_portfolio_id = 29637002 and dashboard_run_id = 2784599 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`=29637002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642735, 0.06958774364948957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637002_23-12-2025_00_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, '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 = 29637369 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': 4260736, 'mtr_portfolio_id': 29637369, 'created_at': datetime.datetime(2025, 12, 23, 1, 3, 29), 'result': '0.0429940679226893', 'result_long': None, 'result_double': None}] Qualite : 0.0429940679226893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29637369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637369_23-12-2025_01_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29637369 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_P29637369_23-12-2025_01_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, 'pht': 3726}}" where mtr_portfolio_id = 29637369 and dashboard_run_id = 2784599 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`=29637369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642736, 0.0429940679226893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637369_23-12-2025_01_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, '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 = 29638070 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': 4260869, 'mtr_portfolio_id': 29638070, 'created_at': datetime.datetime(2025, 12, 23, 1, 48, 58), 'result': '0.0407676713805383', 'result_long': None, 'result_double': None}] Qualite : 0.0407676713805383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638070_23-12-2025_01_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638070 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_P29638070_23-12-2025_01_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, 'pht': 3726}}" where mtr_portfolio_id = 29638070 and dashboard_run_id = 2784599 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`=29638070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642737, 0.0407676713805383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638070_23-12-2025_01_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, '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 = 29638385 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': 4260911, 'mtr_portfolio_id': 29638385, 'created_at': datetime.datetime(2025, 12, 23, 2, 3, 29), 'result': '0.04063360586330179', 'result_long': None, 'result_double': None}] Qualite : 0.04063360586330179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638385_23-12-2025_02_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638385 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_P29638385_23-12-2025_02_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, 'pht': 3726}}" where mtr_portfolio_id = 29638385 and dashboard_run_id = 2784599 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`=29638385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642738, 0.04063360586330179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638385_23-12-2025_02_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, '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 = 29638771 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': 4260986, 'mtr_portfolio_id': 29638771, 'created_at': datetime.datetime(2025, 12, 23, 2, 16, 59), 'result': '0.06310366418016748', 'result_long': None, 'result_double': None}] Qualite : 0.06310366418016748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638771_23-12-2025_02_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638771 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_P29638771_23-12-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, 'pht': 3726}}" where mtr_portfolio_id = 29638771 and dashboard_run_id = 2784599 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`=29638771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642739, 0.06310366418016748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638771_23-12-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, '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 = 29639188 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': 4261044, 'mtr_portfolio_id': 29639188, 'created_at': datetime.datetime(2025, 12, 23, 2, 33), 'result': '0.05262910396961983', 'result_long': None, 'result_double': None}] Qualite : 0.05262910396961983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29639188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639188_23-12-2025_02_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29639188 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_P29639188_23-12-2025_02_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, 'pht': 3726}}" where mtr_portfolio_id = 29639188 and dashboard_run_id = 2784599 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`=29639188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642740, 0.05262910396961983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639188_23-12-2025_02_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, '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 = 29639703 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': 4261108, 'mtr_portfolio_id': 29639703, 'created_at': datetime.datetime(2025, 12, 23, 2, 46, 58), 'result': '0.054024351832757625', 'result_long': None, 'result_double': None}] Qualite : 0.054024351832757625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29639703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639703_23-12-2025_02_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29639703 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_P29639703_23-12-2025_02_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29639712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639723, 'pht': 3726}}" where mtr_portfolio_id = 29639703 and dashboard_run_id = 2784599 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`=29639703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642741, 0.054024351832757625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639703_23-12-2025_02_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29639712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639723, '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 = 29640097 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': 4261176, 'mtr_portfolio_id': 29640097, 'created_at': datetime.datetime(2025, 12, 23, 3, 4, 58), 'result': '0.02831021468958005', 'result_long': None, 'result_double': None}] Qualite : 0.02831021468958005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29640097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640097_23-12-2025_03_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29640097 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_P29640097_23-12-2025_03_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640134, 'pht': 3726}}" where mtr_portfolio_id = 29640097 and dashboard_run_id = 2784599 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`=29640097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642742, 0.02831021468958005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640097_23-12-2025_03_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640134, '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 = 29640520 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': 4261249, 'mtr_portfolio_id': 29640520, 'created_at': datetime.datetime(2025, 12, 23, 3, 17, 1), 'result': '0.06448411483976808', 'result_long': None, 'result_double': None}] Qualite : 0.06448411483976808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29640520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640520_23-12-2025_03_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29640520 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_P29640520_23-12-2025_03_17_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640563, 'pht': 3726}}" where mtr_portfolio_id = 29640520 and dashboard_run_id = 2784599 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`=29640520 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642743, 0.06448411483976808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640520_23-12-2025_03_17_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640563, '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 = 29641030 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': 4261294, 'mtr_portfolio_id': 29641030, 'created_at': datetime.datetime(2025, 12, 23, 3, 32, 57), 'result': '0.07107824018945803', 'result_long': None, 'result_double': None}] Qualite : 0.07107824018945803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29641030 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641030_23-12-2025_03_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29641030 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_P29641030_23-12-2025_03_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29641037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641049, 'pht': 3726}}" where mtr_portfolio_id = 29641030 and dashboard_run_id = 2784599 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`=29641030 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642744, 0.07107824018945803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641030_23-12-2025_03_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29641037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641049, '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 = 29641457 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': 4261349, 'mtr_portfolio_id': 29641457, 'created_at': datetime.datetime(2025, 12, 23, 3, 46, 59), 'result': '0.04214626367721399', 'result_long': None, 'result_double': None}] Qualite : 0.04214626367721399 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29641457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641457_23-12-2025_03_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29641457 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_P29641457_23-12-2025_03_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641475, 'pht': 3726}}" where mtr_portfolio_id = 29641457 and dashboard_run_id = 2784599 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`=29641457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642745, 0.04214626367721399, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641457_23-12-2025_03_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641475, '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 = 29641822 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': 4261415, 'mtr_portfolio_id': 29641822, 'created_at': datetime.datetime(2025, 12, 23, 4, 2, 59), 'result': '0.042517643544748566', 'result_long': None, 'result_double': None}] Qualite : 0.042517643544748566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29641822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641822_23-12-2025_04_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29641822 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_P29641822_23-12-2025_04_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641859, 'pht': 3726}}" where mtr_portfolio_id = 29641822 and dashboard_run_id = 2784599 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`=29641822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642746, 0.042517643544748566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641822_23-12-2025_04_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641859, '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 = 29642134 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': 4261488, 'mtr_portfolio_id': 29642134, 'created_at': datetime.datetime(2025, 12, 23, 4, 12, 57), 'result': '0.04313064196578079', 'result_long': None, 'result_double': None}] Qualite : 0.04313064196578079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29642134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29642134_23-12-2025_04_12_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29642134 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_P29642134_23-12-2025_04_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29642187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29642188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29642189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29642190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29642191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29642192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29642193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29642194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29642195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29642196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29642197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29642198, 'pht': 3726}}" where mtr_portfolio_id = 29642134 and dashboard_run_id = 2784599 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`=29642134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642747, 0.04313064196578079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29642134_23-12-2025_04_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29642187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29642188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29642189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29642190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29642191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29642192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29642193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29642194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29642195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29642196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29642197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29642198, '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 = 29643132 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 = 29643132 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 = 29643132 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29643132 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 = 29643132 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 = 29643132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643132_23-12-2025_04_59_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29643132 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_P29643132_23-12-2025_04_59_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643144, 'pht': 3726}}" where mtr_portfolio_id = 29643132 and dashboard_run_id = 2784601 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 = 29643214 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': 4261678, 'mtr_portfolio_id': 29643214, 'created_at': datetime.datetime(2025, 12, 23, 5, 19), 'result': '0.04122215892081668', 'result_long': None, 'result_double': None}] Qualite : 0.04122215892081668 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29643214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643214_23-12-2025_05_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29643214 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_P29643214_23-12-2025_05_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643226, 'pht': 3726}}" where mtr_portfolio_id = 29643214 and dashboard_run_id = 2784601 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`=29643214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642749, 0.04122215892081668, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643214_23-12-2025_05_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643226, '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 = 29643562 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': 4261715, 'mtr_portfolio_id': 29643562, 'created_at': datetime.datetime(2025, 12, 23, 5, 28, 59), 'result': '0.040221915226335905', 'result_long': None, 'result_double': None}] Qualite : 0.040221915226335905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29643562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643562_23-12-2025_05_29_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29643562 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_P29643562_23-12-2025_05_29_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643588, 'pht': 3726}}" where mtr_portfolio_id = 29643562 and dashboard_run_id = 2784601 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`=29643562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18642750, 0.040221915226335905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643562_23-12-2025_05_29_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643588, '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 (29636316,29636749,29637002,29637369,29638070,29638385,29638771,29639188,29639703,29640097,29640520,29641030,29641457,29641822,29642134,29643132,29643214,29643562) result : ((1400619724,), (1400619761,), (1400619795,), (1400619831,), (1400620155,), (1400620158,), (1400620162,), (1400620784,), (1400620848,), (1400620936,), (1400620977,), (1400621034,), (1400621529,), (1400621566,), (1400621601,), (1400621636,), (1400621861,), (1400621863,), (1400621865,), (1400621868,), (1400621872,), (1400621875,), (1400621941,), (1400621976,), (1400622114,), (1400622141,), (1400622147,), (1400622251,), (1400622252,), (1400622253,), (1400622255,), (1400622259,), (1400622277,), (1400622278,), (1400622279,), (1400622280,), (1400622296,), (1400622298,), (1400622428,), (1400622430,), (1400622432,), (1400622437,), (1400622471,), (1400622495,), (1400622678,), (1400622679,), (1400622682,), (1400622714,), (1400622732,), (1400622737,), (1400622771,), (1400622774,), (1400623012,), (1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,), (1400623335,), (1400623337,), (1400623338,), (1400623362,), (1400623364,), (1400623365,), (1400623382,), (1400623384,), (1400623386,), (1400623388,), (1400623392,), (1400623395,), (1400623411,), (1400623413,), (1400623414,), (1400623428,), (1400623454,), (1400623455,), (1400623456,), (1400623458,), (1400623472,), (1400623474,), (1400623476,), (1400623494,), (1400623495,), (1400623496,), (1400623497,), (1400623500,), (1400623513,), (1400623514,), (1400623535,), (1400623536,), (1400623557,), (1400623559,), (1400623561,), (1400623565,), (1400623568,), (1400623570,), (1400623576,), (1400623579,), (1400623583,), (1400623584,), (1400623586,), (1400623588,), (1400623601,), (1400623604,), (1400623606,), (1400623609,), (1400623612,), (1400623620,), (1400623622,), (1400623623,), (1400623629,), (1400623632,), (1400623640,), (1400623643,), (1400623644,), (1400623650,), (1400623652,), (1400623655,), (1400623688,), (1400623686,), (1400623702,), (1400623703,), (1400623704,), (1400623706,), (1400623730,), (1400623731,), (1400623732,), (1400623734,), (1400623737,), (1400623754,), (1400623756,), (1400623758,), (1400623760,), (1400623779,), (1400623797,), (1400623799,), (1400623800,), (1400623801,), (1400623803,), (1400623804,), (1400623821,), (1400623822,), (1400623823,), (1400623825,), (1400623838,), (1400623839,), (1400623840,), (1400623842,), (1400623865,), (1400623867,), (1400623870,), (1400623871,), (1400623889,), (1400623891,), (1400623892,), (1400623893,), (1400623910,), (1400623911,), (1400623912,), (1400623929,), (1400623931,), (1400623934,), (1400623936,), (1400623955,), (1400623958,), (1400623959,), (1400623982,), (1400623986,), (1400623990,), (1400623995,), (1400623999,), (1400624341,), (1400624377,), (1400624410,), (1400624431,), (1400624434,), (1400624437,), (1400627807,), (1400627824,), (1400627825,), (1400627826,), (1400627844,), (1400627846,), (1400627848,), (1400627865,), (1400627867,), (1400627868,), (1400627869,), (1400627872,), (1400627887,), (1400627888,), (1400627889,), (1400627890,), (1400627895,), (1400627917,), (1400627918,), (1400627919,), (1400627941,), (1400627943,), (1400627945,), (1400627949,), (1400627952,), (1400627954,), (1400627974,), (1400627978,), (1400627979,), (1400627980,), (1400627983,), (1400627986,), (1400627998,), (1400627999,), (1400628021,), (1400628023,), (1400628025,), (1400628027,), (1400628043,), (1400628044,), (1400628045,), (1400628046,), (1400628073,), (1400628074,), (1400628075,), (1400628091,), (1400628097,), (1400628099,), (1400628103,), (1400628106,), (1400628129,), (1400628122,), (1400628124,), (1400628125,), (1400628126,), (1400628143,), (1400628144,), (1400628183,), (1400628184,), (1400628185,), (1400628208,), (1400628209,), (1400628210,), (1400628212,), (1400628239,), (1400628241,), (1400628263,), (1400628264,), (1400628265,), (1400628268,), (1400628271,), (1400628275,), (1400628289,), (1400628290,), (1400628291,), (1400628307,), (1400628309,), (1400628311,), (1400628312,), (1400628337,), (1400628338,), (1400628339,), (1400628340,), (1400628359,), (1400628362,), (1400628393,), (1400628396,), (1400628398,), (1400628400,), (1400628404,), (1400628418,), (1400628420,), (1400628421,), (1400628454,), (1400628457,), (1400628497,), (1400628501,), (1400628504,), (1400628509,), (1400628513,), (1400628685,), (1400628719,), (1400628755,), (1400628985,), (1400629050,), (1400629124,), (1400629186,), (1400629255,), (1400628574,), (1400628610,), (1400628644,), (1400629551,), (1400629649,), (1400629717,), (1400629789,), (1400629870,), (1400630303,), (1400630307,), (1400630310,), (1400630317,), (1400630319,), (1400630332,), (1400630453,), (1400630480,), (1400630485,), (1400630487,), (1400630634,), (1400630636,), (1400630692,), (1400630700,), (1400630759,), (1400630768,), (1400630866,), (1400630869,), (1400631220,), (1400631274,), (1400631308,), (1400631837,), (1400631840,), (1400631843,), (1400631846,), (1400631991,), (1400631994,), (1400632005,), (1400632039,), (1400632154,), (1400632155,), (1400632157,), (1400632159,), (1400632175,), (1400632177,), (1400632180,), (1400632183,), (1400632186,), (1400632189,), (1400632204,), (1400632207,), (1400632210,), (1400632212,), (1400632215,), (1400633129,), (1400633132,), (1400633134,), (1400633163,), (1400633165,), (1400633166,), (1400633168,), (1400633616,), (1400633640,), (1400633672,), (1400633695,), (1400633704,), (1400633707,), (1400633733,), (1400633756,), (1400633758,), (1400633760,), (1400633764,), (1400633797,), (1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,), (1400634222,), (1400634224,), (1400634226,), (1400634230,), (1400634252,), (1400634255,), (1400634256,), (1400634257,), (1400634259,), (1400634273,), (1400634276,), (1400634280,), (1400634284,), (1400634287,), (1400634299,), (1400634300,), (1400634326,), (1400634328,), (1400634330,), (1400634332,), (1400634336,), (1400634349,), (1400634351,), (1400634352,), (1400634417,), (1400634438,), (1400634440,), (1400634441,), (1400634461,), (1400634462,), (1400634463,), (1400634484,), (1400634486,), (1400634488,), (1400634492,), (1400634495,), (1400634498,), (1400634522,), (1400634542,), (1400634544,), (1400634545,), (1400634546,), (1400634549,), (1400634566,), (1400634567,), (1400634568,), (1400634593,), (1400634612,), (1400634616,), (1400634619,), (1400634648,), (1400634638,), (1400634642,), (1400634645,), (1400634670,), (1400634673,), (1400634675,), (1400634696,), (1400634698,), (1400634700,), (1400634703,), (1400634713,), (1400634722,), (1400634724,), (1400634727,), (1400634744,), (1400634747,), (1400634766,), (1400634767,), (1400634769,), (1400634772,), (1400634775,), (1400634796,), (1400634799,), (1400634802,), (1400634805,), (1400634809,), (1400634812,), (1400634822,), (1400634825,), (1400634827,), (1400634828,), (1400634830,), (1400634846,), (1400634848,), (1400634850,), (1400634874,), (1400634879,), (1400634883,), (1400634903,), (1400634905,), (1400634907,), (1400634909,), (1400634922,), (1400634924,), (1400634926,), (1400634929,), (1400634933,), (1400634937,), (1400634945,), (1400634953,), (1400634955,), (1400634981,), (1400634985,), (1400635001,), (1400635039,), (1400635075,), (1400635457,), (1400635488,), (1400635491,), (1400635539,), (1400635543,), (1400635547,), (1400635550,), (1400635552,), (1400635554,), (1400635566,), (1400635414,), (1400635416,), (1400635425,), (1400635559,), (1400635562,), (1400635845,), (1400635877,), (1400635912,), (1400636289,), (1400636328,), (1400636358,), (1400636388,), (1400636422,), (1400636767,), (1400636801,), (1400636833,), (1400636868,), (1400636901,), (1400636928,), (1400636930,), (1400636932,), (1400636935,), (1400636938,), (1400636940,), (1400636956,), (1400637077,), (1400637110,), (1400637460,), (1400637470,), (1400637473,), (1400637640,), (1400637641,), (1400637643,), (1400637645,), (1400637647,), (1400637672,), (1400637674,), (1400637676,), (1400637678,), (1400637681,), (1400637696,), (1400637699,), (1400637702,), (1400637707,), (1400637710,), (1400637713,), (1400637720,), (1400637721,), (1400637724,), (1400637739,), (1400637740,), (1400637742,), (1400637744,), (1400637746,), (1400637749,), (1400637759,), (1400637761,), (1400637803,), (1400637810,), (1400637812,), (1400637830,), (1400637833,), (1400637836,), (1400637837,), (1400637906,), (1400637888,), (1400637897,), (1400637900,), (1400637902,), (1400637920,), (1400637922,), (1400637924,), (1400637926,), (1400637943,), (1400637966,), (1400637967,), (1400637989,), (1400637991,), (1400637993,), (1400638014,), (1400638016,), (1400638018,), (1400638022,), (1400638026,), (1400638053,), (1400638054,), (1400638055,), (1400638057,), (1400638080,), (1400638081,), (1400638116,), (1400638118,), (1400638119,), (1400638135,), (1400638137,), (1400638139,), (1400638163,), (1400638166,), (1400638168,), (1400638171,), (1400638173,), (1400638187,), (1400638190,), (1400638192,), (1400638194,), (1400638197,), (1400638224,), (1400638226,), (1400638245,), (1400638247,), (1400638249,), (1400638251,), (1400638273,), (1400638276,), (1400638280,), (1400638320,), (1400638322,), (1400638340,), (1400638342,), (1400638312,), (1400638313,), (1400638315,), (1400638317,), (1400638358,), (1400638360,), (1400638361,), (1400638363,), (1400638382,), (1400638406,), (1400638408,), (1400638410,), (1400638463,), (1400638465,), (1400638467,), (1400638469,), (1400638473,), (1400638476,), (1400638480,), (1400638482,), (1400638488,), (1400638490,), (1400638491,), (1400638492,), (1400638524,), (1400638526,), (1400638527,), (1400638528,), (1400638544,), (1400638545,), (1400638547,), (1400638551,), (1400638555,), (1400638568,), (1400638570,), (1400638571,), (1400638574,), (1400638578,), (1400638590,), (1400638592,), (1400638593,), (1400638594,), (1400638621,), (1400638622,), (1400638623,), (1400638625,), (1400638640,), (1400638642,), (1400638644,), (1400638646,), (1400638682,), (1400638684,), (1400638685,), (1400638700,), (1400638703,), (1400638704,), (1400638706,), (1400638738,), (1400638736,), (1400638737,), (1400638753,), (1400638755,), (1400638757,), (1400638759,), (1400638762,), (1400638766,), (1400638783,), (1400638785,), (1400638786,), (1400638787,), (1400638790,), (1400638805,), (1400638806,), (1400638829,), (1400638831,), (1400638833,), (1400638835,), (1400638839,), (1400638863,), (1400638864,), (1400638865,), (1400638868,), (1400638871,), (1400638876,), (1400638886,), (1400638888,), (1400638893,), (1400638895,), (1400638896,), (1400638898,), (1400638901,), (1400638912,), (1400638914,), (1400638916,), (1400638936,), (1400638938,), (1400638939,), (1400638940,), (1400638943,), (1400638956,), (1400638958,), (1400638959,), (1400638961,), (1400638978,), (1400638980,), (1400638997,), (1400638999,), (1400639001,), (1400639004,), (1400639021,), (1400639024,), (1400639374,), (1400639407,), (1400639448,), (1400639482,), (1400639518,), (1400639554,), (1400639791,), (1400639661,), (1400639684,), (1400639719,), (1400639754,), (1400640253,), (1400640304,), (1400640341,), (1400640757,), (1400640791,), (1400640849,), (1400640913,), (1400640999,), (1400641441,), (1400641509,), (1400641575,), (1400641628,), (1400641667,), (1400642140,), (1400642176,), (1400642209,), (1400642242,), (1400642276,), (1400642447,), (1400642448,), (1400642449,), (1400642451,), (1400642455,), (1400642482,), (1400642483,), (1400642496,), (1400642532,), (1400642940,), (1400642978,), (1400642982,), (1400642984,), (1400642998,), (1400643155,), (1400643157,), (1400643158,), (1400643159,), (1400643162,), (1400643164,), (1400643195,), (1400643197,), (1400643198,), (1400643199,), (1400643222,), (1400643223,), (1400643225,), (1400643229,), (1400643233,), (1400643237,), (1400643246,), (1400644274,), (1400644490,), (1400646837,), (1400646858,), (1400646897,), (1400646898,), (1400646917,), (1400646919,), (1400646921,), (1400646950,), (1400646952,), (1400646954,), (1400646955,), (1400646970,), (1400646972,), (1400646974,), (1400646976,), (1400646980,), (1400646983,), (1400646997,), (1400646999,), (1400647000,), (1400647012,), (1400647013,), (1400647014,), (1400647016,), (1400647019,), (1400647022,), (1400647042,), (1400647047,), (1400647049,), (1400647051,), (1400647055,), (1400647065,), (1400647067,), (1400647068,), (1400647069,), (1400647103,), (1400647104,), (1400647106,), (1400647109,), (1400647112,), (1400647115,), (1400647127,), (1400647129,), (1400647133,), (1400647137,), (1400647141,), (1400647148,), (1400647154,), (1400647156,), (1400647163,), (1400647166,), (1400647168,), (1400647170,), (1400647179,), (1400647182,), (1400647185,), (1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23122025': {'nb_upload': 74, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29643562]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556] map_info['map_portfolio_photo'] : {29643562: [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556, 1400647549, 1400647547, 1400647545, 1400647538, 1400647531, 1400647530, 1400647522, 1400647520, 1400647514, 1400647512, 1400647509, 1400647506, 1400647492, 1400647489, 1400647480, 1400647468, 1400647463, 1400647460, 1400647397, 1400647393, 1400647389, 1400647387, 1400647376, 1400647373, 1400647370, 1400647368, 1400647364, 1400647359, 1400647357, 1400647356, 1400647355, 1400647352, 1400647350, 1400647341, 1400647333, 1400647331, 1400647329, 1400647328, 1400647327, 1400647316, 1400647313, 1400647309, 1400647306, 1400647305, 1400647302, 1400647279, 1400647278, 1400647277, 1400647225, 1400647197, 1400647176]} final : True mtd_id 4302 list_pids : [1400647637, 1400647635, 1400647633, 1400647630, 1400647602, 1400647592, 1400647588, 1400647584, 1400647581, 1400647579, 1400647578, 1400647577, 1400647575, 1400647574, 1400647573, 1400647571, 1400647568, 1400647567, 1400647564, 1400647562, 1400647561, 1400647558, 1400647556] Looping around the photos to save general results len do output : 1 /29643562Didn'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, '4261715') ('4302', '29643562', '1400647637', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647635', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647633', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647630', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647602', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647592', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647588', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647584', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647581', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647579', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647578', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647577', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647575', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647574', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647573', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647571', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647568', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647567', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647564', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647562', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647561', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647558', None, None, None, None, None, '4261715') ('4302', None, None, None, None, None, None, None, '4261715') ('4302', '29643562', '1400647556', None, None, None, None, None, '4261715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '29643562', 'None', None, None, None, None, '4261715'), ('4302', '29643562', '1400647637', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647635', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647633', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647630', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647602', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647592', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647588', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647584', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647581', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647579', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647578', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647577', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647575', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647574', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647573', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647571', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647568', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647567', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647564', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647562', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647561', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647558', None, None, None, None, None, '4261715'), ('4302', '29643562', '1400647556', None, None, None, None, None, '4261715')] time used for this insertion : 0.022429704666137695 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6150763034820557 time spend to save output : 0.022713422775268555 total time spend for step 5 : 1.6377897262573242 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 (4261715) 2.54user 2.55system 0:13.51elapsed 37%CPU (0avgtext+0avgdata 168420maxresident)k 32inputs+21832outputs (1major+79666minor)pagefaults 0swaps