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 : 1593801 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 (4024718) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4024718) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373480 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4024718'] with mtr_portfolio_ids : ['28373480'] and first list_photo_ids : [] new path : /proc/1593801/ Name: python3 Umask: 0002 State: R (running) Tgid: 1593801 Ngid: 0 Pid: 1593801 PPid: 1593800 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1593801 NSpid: 1593801 NSpgid: 1592205 NSsid: 1592205 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99828 kB VmRSS: 99828 kB RssAnon: 59908 kB RssFile: 39920 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 41 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1593801', 'Ngid': '0', 'Pid': '1593801', 'PPid': '1593800', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1593801', 'NSpid': '1593801', 'NSpgid': '1592205', 'NSsid': '1592205', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99828 kB', 'VmRSS': '99828 kB', 'RssAnon': '59908 kB', 'RssFile': '39920 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '41', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '1593801', '1106908', '0', '1106884', '865636', '99828', b'', 'marlene', '4024718') 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 (28373480) 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 (4024718 ) ) 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 (28373480) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393674730, 'portfolio_id': 28373480}, {'photo_id': 1393674725, 'portfolio_id': 28373480}, {'photo_id': 1393674722, 'portfolio_id': 28373480}, {'photo_id': 1393674719, 'portfolio_id': 28373480}, {'photo_id': 1393674716, 'portfolio_id': 28373480}, {'photo_id': 1393674685, 'portfolio_id': 28373480}, {'photo_id': 1393674682, 'portfolio_id': 28373480}, {'photo_id': 1393674678, 'portfolio_id': 28373480}, {'photo_id': 1393674676, 'portfolio_id': 28373480}, {'photo_id': 1393674674, 'portfolio_id': 28373480}, {'photo_id': 1393674671, 'portfolio_id': 28373480}, {'photo_id': 1393674637, 'portfolio_id': 28373480}, {'photo_id': 1393674635, 'portfolio_id': 28373480}, {'photo_id': 1393674633, 'portfolio_id': 28373480}, {'photo_id': 1393674631, 'portfolio_id': 28373480}, {'photo_id': 1393674610, 'portfolio_id': 28373480}, {'photo_id': 1393674608, 'portfolio_id': 28373480}, {'photo_id': 1393674607, 'portfolio_id': 28373480}, {'photo_id': 1393674605, 'portfolio_id': 28373480}, {'photo_id': 1393674565, 'portfolio_id': 28373480}, {'photo_id': 1393674561, 'portfolio_id': 28373480}, {'photo_id': 1393674559, 'portfolio_id': 28373480}, {'photo_id': 1393674556, 'portfolio_id': 28373480}, {'photo_id': 1393674552, 'portfolio_id': 28373480}, {'photo_id': 1393674549, 'portfolio_id': 28373480}, {'photo_id': 1393674530, 'portfolio_id': 28373480}, {'photo_id': 1393674527, 'portfolio_id': 28373480}, {'photo_id': 1393674525, 'portfolio_id': 28373480}, {'photo_id': 1393674523, 'portfolio_id': 28373480}, {'photo_id': 1393674489, 'portfolio_id': 28373480}, {'photo_id': 1393674485, 'portfolio_id': 28373480}, {'photo_id': 1393674483, 'portfolio_id': 28373480}, {'photo_id': 1393674481, 'portfolio_id': 28373480}, {'photo_id': 1393674479, 'portfolio_id': 28373480}, {'photo_id': 1393674476, 'portfolio_id': 28373480}, {'photo_id': 1393674449, 'portfolio_id': 28373480}, {'photo_id': 1393674437, 'portfolio_id': 28373480}, {'photo_id': 1393674428, 'portfolio_id': 28373480}, {'photo_id': 1393674425, 'portfolio_id': 28373480}, {'photo_id': 1393674256, 'portfolio_id': 28373480}, {'photo_id': 1393674218, 'portfolio_id': 28373480}, {'photo_id': 1393674181, 'portfolio_id': 28373480}, {'photo_id': 1393674146, 'portfolio_id': 28373480}, {'photo_id': 1393674113, 'portfolio_id': 28373480}, {'photo_id': 1393673946, 'portfolio_id': 28373480}, {'photo_id': 1393673943, 'portfolio_id': 28373480}, {'photo_id': 1393673939, 'portfolio_id': 28373480}, {'photo_id': 1393673937, 'portfolio_id': 28373480}, {'photo_id': 1393673935, 'portfolio_id': 28373480}, {'photo_id': 1393673931, 'portfolio_id': 28373480}, {'photo_id': 1393673712, 'portfolio_id': 28373480}, {'photo_id': 1393673675, 'portfolio_id': 28373480}, {'photo_id': 1393673638, 'portfolio_id': 28373480}, {'photo_id': 1393673601, 'portfolio_id': 28373480}, {'photo_id': 1393673262, 'portfolio_id': 28373480}, {'photo_id': 1393673227, 'portfolio_id': 28373480}, {'photo_id': 1393673195, 'portfolio_id': 28373480}, {'photo_id': 1393673163, 'portfolio_id': 28373480}, {'photo_id': 1393673134, 'portfolio_id': 28373480}, {'photo_id': 1393673103, 'portfolio_id': 28373480}, {'photo_id': 1393673031, 'portfolio_id': 28373480}, {'photo_id': 1393673028, 'portfolio_id': 28373480}] map_portfolio_id_photo_id: {28373480: [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671, 1393674637, 1393674635, 1393674633, 1393674631, 1393674610, 1393674608, 1393674607, 1393674605, 1393674565, 1393674561, 1393674559, 1393674556, 1393674552, 1393674549, 1393674530, 1393674527, 1393674525, 1393674523, 1393674489, 1393674485, 1393674483, 1393674481, 1393674479, 1393674476, 1393674449, 1393674437, 1393674428, 1393674425, 1393674256, 1393674218, 1393674181, 1393674146, 1393674113, 1393673946, 1393673943, 1393673939, 1393673937, 1393673935, 1393673931, 1393673712, 1393673675, 1393673638, 1393673601, 1393673262, 1393673227, 1393673195, 1393673163, 1393673134, 1393673103, 1393673031, 1393673028]} ##### 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.016923189163208008 #### 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 Mon Nov 10 06:14: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28373480) 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 : 28373480 get user id for portfolio 28373480 get sub ptf for main ptf 28373480, type 3726 and hashtags ['Carton_gris', 'papier', 'cartonnette', 'mal_croppe', 'flou', 'kraft', 'Carton_brun', 'environnement', 'metal', 'Teint_Dans_La_Masse', 'autre_refus', 'plastique'] 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`=28373480 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','cartonnette','mal_croppe','flou','kraft','Carton_brun','environnement','metal','Teint_Dans_La_Masse','autre_refus','plastique')) 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`=28373480 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','cartonnette','mal_croppe','flou','kraft','Carton_brun','environnement','metal','Teint_Dans_La_Masse','autre_refus','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28373480, 'sub_port_id': 28373541, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211900, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'metal': {'main_port_id': 28373480, 'sub_port_id': 28373542, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211901, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'plastique': {'main_port_id': 28373480, 'sub_port_id': 28373543, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211902, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 28373480, 'sub_port_id': 28373544, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211903, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'cartonnette': {'main_port_id': 28373480, 'sub_port_id': 28373545, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211904, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'papier': {'main_port_id': 28373480, 'sub_port_id': 28373546, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211905, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'Carton_gris': {'main_port_id': 28373480, 'sub_port_id': 28373547, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211906, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'kraft': {'main_port_id': 28373480, 'sub_port_id': 28373548, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211907, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'flou': {'main_port_id': 28373480, 'sub_port_id': 28373549, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211908, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'mal_croppe': {'main_port_id': 28373480, 'sub_port_id': 28373550, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211909, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'Carton_brun': {'main_port_id': 28373480, 'sub_port_id': 28373551, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211910, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}, 'environnement': {'main_port_id': 28373480, 'sub_port_id': 28373552, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211911, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28373541 , 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=28373480 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 (28373541) result : ((1393674506,), (1393674507,), (1393674508,), (1393674516,), (1393674656,), (1393674664,), (1393674765,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373542 , 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=28373480 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 (28373542) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373543 , 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=28373480 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 (28373543) result : ((1393674472,), (1393674521,), (1393674665,), (1393674707,), (1393674708,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373544 , 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=28373480 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 (28373544) result : ((1393674470,), (1393674471,), (1393674500,), (1393674501,), (1393674503,), (1393674504,), (1393674505,), (1393674515,), (1393674654,), (1393674655,), (1393674663,), (1393674700,), (1393674740,), (1393674741,), (1393674742,), (1393674743,), (1393674744,), (1393674760,), (1393674761,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373545 , 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=28373480 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 (28373545) result : ((1393674511,), (1393674658,), (1393674705,), (1393674751,), (1393674768,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373546 , 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=28373480 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 (28373546) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373547 , 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=28373480 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 (28373547) result : ((1393674510,), (1393674517,), (1393674518,), (1393674657,), (1393674701,), (1393674702,), (1393674703,), (1393674704,), (1393674745,), (1393674747,), (1393674748,), (1393674749,), (1393674767,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373548 , 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=28373480 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 (28373548) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373549 , 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=28373480 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 (28373549) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373550 , 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=28373480 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 (28373550) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373551 , 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=28373480 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 (28373551) result : ((1393674513,), (1393674519,), (1393674661,), (1393674770,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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 28373552 , 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=28373480 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 (28373552) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28373480) result : ((1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) 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`=28373480 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','cartonnette','mal_croppe','flou','kraft','Carton_brun','environnement','metal','Teint_Dans_La_Masse','autre_refus','plastique')) 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`=28373480 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','cartonnette','mal_croppe','flou','kraft','Carton_brun','environnement','metal','Teint_Dans_La_Masse','autre_refus','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28373480, 'sub_port_id': 28373553, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211912, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'metal': {'main_port_id': 28373480, 'sub_port_id': 28373554, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211913, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'plastique': {'main_port_id': 28373480, 'sub_port_id': 28373555, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211914, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 28373480, 'sub_port_id': 28373556, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211915, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'cartonnette': {'main_port_id': 28373480, 'sub_port_id': 28373557, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211916, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'papier': {'main_port_id': 28373480, 'sub_port_id': 28373558, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211917, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'Carton_gris': {'main_port_id': 28373480, 'sub_port_id': 28373559, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211918, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'kraft': {'main_port_id': 28373480, 'sub_port_id': 28373560, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211919, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'flou': {'main_port_id': 28373480, 'sub_port_id': 28373561, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211920, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'mal_croppe': {'main_port_id': 28373480, 'sub_port_id': 28373562, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211921, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'Carton_brun': {'main_port_id': 28373480, 'sub_port_id': 28373563, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211922, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}, 'environnement': {'main_port_id': 28373480, 'sub_port_id': 28373564, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19211923, 'last_updated_at': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 6, 3, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28373564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28373552 lien utilise dans velours : https://marlene.fotonower.com/velours/28373553,28373554,28373555,28373556,28373557,28373558,28373559,28373560,28373561,28373562,28373563,28373564?tags=autre_refus,metal,plastique,Teint_Dans_La_Masse,cartonnette,papier,Carton_gris,kraft,flou,mal_croppe,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28373480]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671] map_info['map_portfolio_photo'] : {28373480: [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671, 1393674637, 1393674635, 1393674633, 1393674631, 1393674610, 1393674608, 1393674607, 1393674605, 1393674565, 1393674561, 1393674559, 1393674556, 1393674552, 1393674549, 1393674530, 1393674527, 1393674525, 1393674523, 1393674489, 1393674485, 1393674483, 1393674481, 1393674479, 1393674476, 1393674449, 1393674437, 1393674428, 1393674425, 1393674256, 1393674218, 1393674181, 1393674146, 1393674113, 1393673946, 1393673943, 1393673939, 1393673937, 1393673935, 1393673931, 1393673712, 1393673675, 1393673638, 1393673601, 1393673262, 1393673227, 1393673195, 1393673163, 1393673134, 1393673103, 1393673031, 1393673028]} final : False mtd_id 4302 list_pids : [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671] Looping around the photos to save general results len do output : 1 /28373480. 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, '4024718') ('4302', '28373480', '1393674730', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674725', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674722', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674719', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674716', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674685', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674682', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674678', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674676', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674674', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674671', None, None, None, None, None, '4024718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '28373480', "{'autre_refus': 28373541, 'metal': 28373542, 'plastique': 28373543, 'Teint_Dans_La_Masse': 28373544, 'cartonnette': 28373545, 'papier': 28373546, 'Carton_gris': 28373547, 'kraft': 28373548, 'flou': 28373549, 'mal_croppe': 28373550, 'Carton_brun': 28373551, 'environnement': 28373552}", None, None, None, None, '4024718'), ('4302', '28373480', '1393674730', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674725', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674722', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674719', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674716', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674685', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674682', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674678', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674676', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674674', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674671', None, None, None, None, None, '4024718')] time used for this insertion : 0.014445781707763672 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5085861682891846 time spend to save output : 0.014883279800415039 total time spend for step 1 : 1.5234694480895996 step2:final Mon Nov 10 06:15: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 ! 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 (28373480) 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 28373480 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393673031,1393673028,1393673262,1393673227,1393673195,1393673163,1393673134,1393673103,1393673712,1393673675,1393673638,1393673601,1393673946,1393673943,1393673939,1393673937,1393673935,1393673931,1393674256,1393674218,1393674181,1393674146,1393674113,1393674449,1393674437,1393674428,1393674425,1393674489,1393674485,1393674483,1393674481,1393674479,1393674476,1393674530,1393674527,1393674525,1393674523,1393674565,1393674561,1393674559,1393674556,1393674552,1393674549,1393674610,1393674608,1393674607,1393674605,1393674637,1393674635,1393674633,1393674631,1393674685,1393674682,1393674678,1393674676,1393674674,1393674671,1393674730,1393674725,1393674722,1393674719,1393674716); 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([28373480]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} new output for save of step final : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671] map_info['map_portfolio_photo'] : {28373480: [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671, 1393674637, 1393674635, 1393674633, 1393674631, 1393674610, 1393674608, 1393674607, 1393674605, 1393674565, 1393674561, 1393674559, 1393674556, 1393674552, 1393674549, 1393674530, 1393674527, 1393674525, 1393674523, 1393674489, 1393674485, 1393674483, 1393674481, 1393674479, 1393674476, 1393674449, 1393674437, 1393674428, 1393674425, 1393674256, 1393674218, 1393674181, 1393674146, 1393674113, 1393673946, 1393673943, 1393673939, 1393673937, 1393673935, 1393673931, 1393673712, 1393673675, 1393673638, 1393673601, 1393673262, 1393673227, 1393673195, 1393673163, 1393673134, 1393673103, 1393673031, 1393673028]} final : False mtd_id 4302 list_pids : [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671] Looping around the photos to save general results len do output : 11 /1393674730.Didn't retrieve data . /1393674725.Didn't retrieve data . /1393674722.Didn't retrieve data . /1393674719.Didn't retrieve data . /1393674716.Didn't retrieve data . /1393674685.Didn't retrieve data . /1393674682.Didn't retrieve data . /1393674678.Didn't retrieve data . /1393674676.Didn't retrieve data . /1393674674.Didn't retrieve data . /1393674671.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, '4024718') ('4302', '28373480', '1393674730', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674725', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674722', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674719', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674716', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674685', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674682', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674678', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674676', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674674', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674671', None, None, None, None, None, '4024718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '28373480', '1393674730', '0.0801700830446329', None, None, None, None, '4024718'), ('4302', '28373480', '1393674725', '0.0801700830446329', None, None, None, None, '4024718'), ('4302', '28373480', '1393674722', '0.0801700830446329', None, None, None, None, '4024718'), ('4302', '28373480', '1393674719', '0.0801700830446329', None, None, None, None, '4024718'), ('4302', '28373480', '1393674716', '0.0801700830446329', None, None, None, None, '4024718'), ('4302', '28373480', '1393674685', '0.0801700830446329', None, None, None, None, '4024718'), ('4302', '28373480', '1393674682', '0.0801700830446329', None, None, None, None, '4024718'), ('4302', '28373480', '1393674678', '0.0801700830446329', None, None, None, None, '4024718'), ('4302', '28373480', '1393674676', '0.0801700830446329', None, None, None, None, '4024718'), ('4302', '28373480', '1393674674', '0.0801700830446329', None, None, None, None, '4024718'), ('4302', '28373480', '1393674671', '0.0801700830446329', None, None, None, None, '4024718')] time used for this insertion : 0.01339864730834961 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0700075626373291 time spend to save output : 0.01401972770690918 total time spend for step 2 : 0.08402729034423828 step3:velours_tree Mon Nov 10 06:15: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 : {28373480: [{'autre_refus': 28373541, 'metal': 28373542, 'plastique': 28373543, 'Teint_Dans_La_Masse': 28373544, 'cartonnette': 28373545, 'papier': 28373546, 'Carton_gris': 28373547, 'kraft': 28373548, 'flou': 28373549, 'mal_croppe': 28373550, 'Carton_brun': 28373551, 'environnement': 28373552}]} input_args_next_step : {28373480: ()} output_args : {28373480: [{'autre_refus': 28373541, 'metal': 28373542, 'plastique': 28373543, 'Teint_Dans_La_Masse': 28373544, 'cartonnette': 28373545, 'papier': 28373546, 'Carton_gris': 28373547, 'kraft': 28373548, 'flou': 28373549, 'mal_croppe': 28373550, 'Carton_brun': 28373551, 'environnement': 28373552}]} args : 28373480 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 : ({'autre_refus': 28373541, 'metal': 28373542, 'plastique': 28373543, 'Teint_Dans_La_Masse': 28373544, 'cartonnette': 28373545, 'papier': 28373546, 'Carton_gris': 28373547, 'kraft': 28373548, 'flou': 28373549, 'mal_croppe': 28373550, 'Carton_brun': 28373551, 'environnement': 28373552},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28373480) 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([28373480]) 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.36215901374816895 time spend to save output : 5.2928924560546875e-05 total time spend for step 3 : 0.3622119426727295 step4:send_mail_cod Mon Nov 10 06:15:01 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 : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} input_args_next_step : {1393674730: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674730 depend.output_id : 0 input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674725 depend.output_id : 0 input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674722 depend.output_id : 0 input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674719 depend.output_id : 0 input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674716 depend.output_id : 0 input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674685 depend.output_id : 0 input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674682 depend.output_id : 0 input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674678 depend.output_id : 0 input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674676 depend.output_id : 0 input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674674 depend.output_id : 0 input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ()} output_args : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',)} args : 1393674671 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 : {28373480: [{'autre_refus': 28373541, 'metal': 28373542, 'plastique': 28373543, 'Teint_Dans_La_Masse': 28373544, 'cartonnette': 28373545, 'papier': 28373546, 'Carton_gris': 28373547, 'kraft': 28373548, 'flou': 28373549, 'mal_croppe': 28373550, 'Carton_brun': 28373551, 'environnement': 28373552}]} input_args_next_step : {1393674730: ('0.0801700830446329',), 1393674725: ('0.0801700830446329',), 1393674722: ('0.0801700830446329',), 1393674719: ('0.0801700830446329',), 1393674716: ('0.0801700830446329',), 1393674685: ('0.0801700830446329',), 1393674682: ('0.0801700830446329',), 1393674678: ('0.0801700830446329',), 1393674676: ('0.0801700830446329',), 1393674674: ('0.0801700830446329',), 1393674671: ('0.0801700830446329',), 28373480: ()} output_args : {28373480: [{'autre_refus': 28373541, 'metal': 28373542, 'plastique': 28373543, 'Teint_Dans_La_Masse': 28373544, 'cartonnette': 28373545, 'papier': 28373546, 'Carton_gris': 28373547, 'kraft': 28373548, 'flou': 28373549, 'mal_croppe': 28373550, 'Carton_brun': 28373551, 'environnement': 28373552}]} args : 28373480 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 :12, first value : ('0.0801700830446329',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28373480) 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 (1393674730,1393674725,1393674722,1393674719,1393674716,1393674685,1393674682,1393674678,1393674676,1393674674,1393674671) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393674671 begin to download photo : 1393674678 begin to download photo : 1393674716 begin to download photo : 1393674725 download finish for photo 1393674725 begin to download photo : 1393674730 download finish for photo 1393674678 begin to download photo : 1393674682 download finish for photo 1393674671 begin to download photo : 1393674674 download finish for photo 1393674716 begin to download photo : 1393674719 download finish for photo 1393674730 download finish for photo 1393674674 begin to download photo : 1393674676 download finish for photo 1393674719 begin to download photo : 1393674722 download finish for photo 1393674682 begin to download photo : 1393674685 download finish for photo 1393674676 download finish for photo 1393674722 download finish for photo 1393674685 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 : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P28373480_10-11-2025_06_15_01.pdf 28373541 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=28373541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393674506: '1762751226_913918_1393673227_700c8541dcfe18219d60f3691a0ea578_rle_crop_4029030154_0.png', 1393674507: '1762751226_913918_1393673163_5db3c92cbd97628a60a6e832b6cee542_rle_crop_4029030179_0.png', 1393674508: '1762751226_913918_1393673134_6b7c449bba110f94ff1377e5b8e6b67d_rle_crop_4029030259_0.png', 1393674516: '1762751245_916332_1393673028_19e717aad47effaaf0b52ce3cd929a84_rle_crop_4029030299_0.png', 1393674656: '1762751468_927301_1393674479_9f991a6a427d836fd636cd12b0fdf129_rle_crop_4029030865_0.png', 1393674664: '1762751486_928579_1393674527_8c524d340b56c4775f5946771902a562_rle_crop_4029030885_0.png', 1393674765: '1762751608_935991_1393674479_9f991a6a427d836fd636cd12b0fdf129_rle_crop_4029030865_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/9e5cf38758c3cada0094c55de73fc5cb_16578123.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/22b656cac9390137a0b2a5b235723d09_1434980.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/b93dd98479cdc0a9ca9b94df4f470c87_48806303.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/3e4b626fc10acecaa2ec9c322cafbee5_48871134.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/6bcc5a7705d8a0b29bbc3a49f140a708_6246744.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/246f19056836eb68b18d43c3493dd270_89780597.png change filename to text .imagette283735411762751701/ imagette283735411762751701/1762751226_913918_1393673163_5db3c92cbd97628a60a6e832b6cee542_rle_crop_4029030179_0.png.png imagette283735411762751701/1762751226_913918_1393673134_6b7c449bba110f94ff1377e5b8e6b67d_rle_crop_4029030259_0.png.png imagette283735411762751701/1762751608_935991_1393674479_9f991a6a427d836fd636cd12b0fdf129_rle_crop_4029030865_0.png.png imagette283735411762751701/1762751468_927301_1393674479_9f991a6a427d836fd636cd12b0fdf129_rle_crop_4029030865_0.png.png imagette283735411762751701/1762751486_928579_1393674527_8c524d340b56c4775f5946771902a562_rle_crop_4029030885_0.png.png imagette283735411762751701/1762751245_916332_1393673028_19e717aad47effaaf0b52ce3cd929a84_rle_crop_4029030299_0.png.png imagette283735411762751701/1762751226_913918_1393673227_700c8541dcfe18219d60f3691a0ea578_rle_crop_4029030154_0.png.png imagette283735421762751702/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/6bcc5a7705d8a0b29bbc3a49f140a708_47135769.png imagette283735411762751701 28373542 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=28373542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283735421762751702 28373543 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=28373543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393674472: '1762751187_911124_1393673638_31dd4344fb873d365f6b69b51f46c139_rle_crop_4029029963_0.png', 1393674521: '1762751245_916332_1393673028_19e717aad47effaaf0b52ce3cd929a84_rle_crop_4029030305_0.png', 1393674665: '1762751486_928579_1393674527_8c524d340b56c4775f5946771902a562_rle_crop_4029030889_0.png', 1393674707: '1762751547_933423_1393674608_279bcea86e00302af70a7236a34bba09_rle_crop_4029030992_0.png', 1393674708: '1762751547_933423_1393674605_564d9315e25963c5df4ce86ebafb9027_rle_crop_4029031038_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/478ea8f3fbf9ccb2845d54265b2c15bb_77223385.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/68ca81d0ab1272dfa801ca325dbefb12_227516.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/a8086d21dd866e360e90e1a1014b4c16_66689255.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/5b005aa16e1b113995ad09704dbd4602_62095458.png change filename to text .imagette283735431762751702/ imagette283735431762751702/1762751486_928579_1393674527_8c524d340b56c4775f5946771902a562_rle_crop_4029030889_0.png.png imagette283735431762751702/1762751547_933423_1393674608_279bcea86e00302af70a7236a34bba09_rle_crop_4029030992_0.png.png imagette283735431762751702/1762751187_911124_1393673638_31dd4344fb873d365f6b69b51f46c139_rle_crop_4029029963_0.png.png imagette283735431762751702/1762751547_933423_1393674605_564d9315e25963c5df4ce86ebafb9027_rle_crop_4029031038_0.png.png imagette283735431762751702/1762751245_916332_1393673028_19e717aad47effaaf0b52ce3cd929a84_rle_crop_4029030305_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/0d6c928bd2c3df5d66ed8ea298794405_78542554.png imagette283735431762751702 28373545 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=28373545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393674511: '1762751226_913918_1393673103_fc3cc80bde9eb75930bc2210d3bfdf66_rle_crop_4029030267_0.png', 1393674658: '1762751468_927301_1393674479_9f991a6a427d836fd636cd12b0fdf129_rle_crop_4029030864_0.png', 1393674705: '1762751547_933423_1393674605_564d9315e25963c5df4ce86ebafb9027_rle_crop_4029031042_0.png', 1393674751: '1762751586_934230_1393674559_715b66a3d9e3c104b3ae26d2d59ce09d_rle_crop_4029031285_0.png', 1393674768: '1762751608_935991_1393674479_9f991a6a427d836fd636cd12b0fdf129_rle_crop_4029030864_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/de0367221cd5abd37c3da7cf93e2a56b_62022716.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/af1c2e7fe22bf14cf8107d253ae7c2a2_14532329.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/f5abe84f5dd3d64c39b0b103f4acd804_61819715.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/40ec79487cb3c0ccc12cbf7b868bcb8b_50343019.png change filename to text .imagette283735451762751702/ imagette283735451762751702/1762751468_927301_1393674479_9f991a6a427d836fd636cd12b0fdf129_rle_crop_4029030864_0.png.png imagette283735451762751702/1762751547_933423_1393674605_564d9315e25963c5df4ce86ebafb9027_rle_crop_4029031042_0.png.png imagette283735451762751702/1762751586_934230_1393674559_715b66a3d9e3c104b3ae26d2d59ce09d_rle_crop_4029031285_0.png.png imagette283735451762751702/1762751608_935991_1393674479_9f991a6a427d836fd636cd12b0fdf129_rle_crop_4029030864_0.png.png imagette283735451762751702/1762751226_913918_1393673103_fc3cc80bde9eb75930bc2210d3bfdf66_rle_crop_4029030267_0.png.png imagette283735481762751702/ imagette283735491762751702/ imagette283735501762751702/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/af1c2e7fe22bf14cf8107d253ae7c2a2_12105444.png imagette283735451762751702 28373548 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=28373548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283735481762751702 28373549 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=28373549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283735491762751702 28373550 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=28373550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283735501762751702 28373544 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=28373544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393674655: '1762751468_927301_1393674476_d8f2ee26e1b6c467aaf481aa1ed6d44d_rle_crop_4029030878_0.png', 1393674761: '1762751608_935991_1393674476_d8f2ee26e1b6c467aaf481aa1ed6d44d_rle_crop_4029030878_0.png', 1393674760: '1762751608_935991_1393674481_ab0d758c012ec4ae7d4f1ebc9144ba73_rle_crop_4029030850_0.png', 1393674744: '1762751586_934230_1393674549_5346a8bb521081ba19bcb47ee5542583_rle_crop_4029031344_0.png', 1393674743: '1762751586_934230_1393674552_658bc38aebcb6acd1f78df6dbb4feb63_rle_crop_4029031325_0.png', 1393674742: '1762751586_934230_1393674552_658bc38aebcb6acd1f78df6dbb4feb63_rle_crop_4029031332_0.png', 1393674741: '1762751586_934230_1393674556_67e94c4e19c66b8b4f585ca5b2ea8999_rle_crop_4029031311_0.png', 1393674740: '1762751586_934230_1393674610_e52b6a09297f83083eff5bafd13093a6_rle_crop_4029031264_0.png', 1393674700: '1762751547_933423_1393674608_279bcea86e00302af70a7236a34bba09_rle_crop_4029030998_0.png', 1393674663: '1762751486_928579_1393674527_8c524d340b56c4775f5946771902a562_rle_crop_4029030894_0.png', 1393674470: '1762751187_911124_1393673601_0d3e1c05960cec6dd956e9327a935b73_rle_crop_4029029974_0.png', 1393674654: '1762751468_927301_1393674481_ab0d758c012ec4ae7d4f1ebc9144ba73_rle_crop_4029030850_0.png', 1393674515: '1762751245_916332_1393673262_13057b478e3480c89ccdbeaefb085dec_rle_crop_4029030285_0.png', 1393674505: '1762751226_913918_1393673134_6b7c449bba110f94ff1377e5b8e6b67d_rle_crop_4029030254_0.png', 1393674504: '1762751226_913918_1393673195_94774236c3cbb1f886c6546cb3311703_rle_crop_4029030173_0.png', 1393674503: '1762751226_913918_1393673195_94774236c3cbb1f886c6546cb3311703_rle_crop_4029030174_0.png', 1393674501: '1762751226_913918_1393673195_94774236c3cbb1f886c6546cb3311703_rle_crop_4029030171_0.png', 1393674500: '1762751226_913918_1393673227_700c8541dcfe18219d60f3691a0ea578_rle_crop_4029030159_0.png', 1393674471: '1762751187_911124_1393673601_0d3e1c05960cec6dd956e9327a935b73_rle_crop_4029029972_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/91a15f86da58209c915be91df9b27923_20245078.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/91a15f86da58209c915be91df9b27923_27778509.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/efde60f77e54a84dfbcd2aa275661a99_94912701.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/c952752c4001fe37d27a9ed68e5fbf02_33398653.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cd20080335fadc1a9d7a0e4c381b4b50_33081663.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/ccdbe15b4c300cd90477d6d5cb911115_92871357.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/3715e5702b54063533a897dc87dad78d_73484976.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/4be60aad2b681aa220ff2b6cea25933b_9580519.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/85f4c7c461f28eaf8e4828dbc822ef52_51141960.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/4f80155b2dc38c6f1b1d29d7c3581bab_35194613.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8cfd9d218b4855f055bd1f2afbc586b4_50053396.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/efde60f77e54a84dfbcd2aa275661a99_80748926.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/e81743deec8ad287180cfa952908ef50_41847192.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/465660ddf9900b310201ec0a174220ab_443479.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/39797cfca462fdd15e3abb046af93b5d_29558472.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/bf2bcf0498fe30d068e1f6fd8a513724_56518889.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/e437896bb13df2bfd581f6b31318ab7d_2473499.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/859812e2275563ac720b18ae6a582d2c_45119375.png change filename to text .imagette283735441762751702/ imagette283735441762751702/1762751586_934230_1393674552_658bc38aebcb6acd1f78df6dbb4feb63_rle_crop_4029031332_0.png.png imagette283735441762751702/1762751547_933423_1393674608_279bcea86e00302af70a7236a34bba09_rle_crop_4029030998_0.png.png imagette283735441762751702/1762751586_934230_1393674549_5346a8bb521081ba19bcb47ee5542583_rle_crop_4029031344_0.png.png imagette283735441762751702/1762751608_935991_1393674481_ab0d758c012ec4ae7d4f1ebc9144ba73_rle_crop_4029030850_0.png.png imagette283735441762751702/1762751226_913918_1393673195_94774236c3cbb1f886c6546cb3311703_rle_crop_4029030174_0.png.png imagette283735441762751702/1762751468_927301_1393674481_ab0d758c012ec4ae7d4f1ebc9144ba73_rle_crop_4029030850_0.png.png imagette283735441762751702/1762751226_913918_1393673195_94774236c3cbb1f886c6546cb3311703_rle_crop_4029030171_0.png.png imagette283735441762751702/1762751468_927301_1393674476_d8f2ee26e1b6c467aaf481aa1ed6d44d_rle_crop_4029030878_0.png.png imagette283735441762751702/1762751187_911124_1393673601_0d3e1c05960cec6dd956e9327a935b73_rle_crop_4029029972_0.png.png imagette283735441762751702/1762751226_913918_1393673227_700c8541dcfe18219d60f3691a0ea578_rle_crop_4029030159_0.png.png imagette283735441762751702/1762751486_928579_1393674527_8c524d340b56c4775f5946771902a562_rle_crop_4029030894_0.png.png imagette283735441762751702/1762751586_934230_1393674556_67e94c4e19c66b8b4f585ca5b2ea8999_rle_crop_4029031311_0.png.png imagette283735441762751702/1762751586_934230_1393674610_e52b6a09297f83083eff5bafd13093a6_rle_crop_4029031264_0.png.png imagette283735441762751702/1762751245_916332_1393673262_13057b478e3480c89ccdbeaefb085dec_rle_crop_4029030285_0.png.png imagette283735441762751702/1762751187_911124_1393673601_0d3e1c05960cec6dd956e9327a935b73_rle_crop_4029029974_0.png.png imagette283735441762751702/1762751226_913918_1393673195_94774236c3cbb1f886c6546cb3311703_rle_crop_4029030173_0.png.png imagette283735441762751702/1762751586_934230_1393674552_658bc38aebcb6acd1f78df6dbb4feb63_rle_crop_4029031325_0.png.png imagette283735441762751702/1762751226_913918_1393673134_6b7c449bba110f94ff1377e5b8e6b67d_rle_crop_4029030254_0.png.png imagette283735441762751702/1762751608_935991_1393674476_d8f2ee26e1b6c467aaf481aa1ed6d44d_rle_crop_4029030878_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8ad008e2aecfbd78589e99767c0817d8_79769547.png imagette283735441762751702 28373547 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=28373547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393674510: '1762751226_913918_1393673195_94774236c3cbb1f886c6546cb3311703_rle_crop_4029030168_0.png', 1393674517: '1762751245_916332_1393673262_13057b478e3480c89ccdbeaefb085dec_rle_crop_4029030281_0.png', 1393674518: '1762751245_916332_1393673028_19e717aad47effaaf0b52ce3cd929a84_rle_crop_4029030301_0.png', 1393674657: '1762751468_927301_1393674481_ab0d758c012ec4ae7d4f1ebc9144ba73_rle_crop_4029030848_0.png', 1393674701: '1762751547_933423_1393674608_279bcea86e00302af70a7236a34bba09_rle_crop_4029030997_0.png', 1393674702: '1762751547_933423_1393674607_52d3c68442784cd76e4ef1219c6a463e_rle_crop_4029031032_0.png', 1393674703: '1762751547_933423_1393674605_564d9315e25963c5df4ce86ebafb9027_rle_crop_4029031039_0.png', 1393674704: '1762751547_933423_1393674605_564d9315e25963c5df4ce86ebafb9027_rle_crop_4029031040_0.png', 1393674745: '1762751586_934230_1393674610_e52b6a09297f83083eff5bafd13093a6_rle_crop_4029031258_0.png', 1393674747: '1762751586_934230_1393674561_c53fd3f69d71eabeeb3b16ba2ff5a5ff_rle_crop_4029031269_0.png', 1393674748: '1762751586_934230_1393674561_c53fd3f69d71eabeeb3b16ba2ff5a5ff_rle_crop_4029031271_0.png', 1393674749: '1762751586_934230_1393674549_5346a8bb521081ba19bcb47ee5542583_rle_crop_4029031338_0.png', 1393674767: '1762751608_935991_1393674481_ab0d758c012ec4ae7d4f1ebc9144ba73_rle_crop_4029030848_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/53083f187239c9cac711728d7d945d76_10005184.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/e962fca294832324a8589633e3001e5b_90652929.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/7e2789659fb6e10b53119474f5ffadb3_34664262.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/2949f5345858f3b73068ba43e9fede2f_21411295.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8ca6994fe8159a5738ebe42ec9205119_84520132.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/81edb55acfa6722ec9bff2719614bee2_38674133.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/2b8cf96d30459735460154b55e7f5151_32903477.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/a5f9d645c06201afc70f3d069ba54c77_5544509.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/76501b9722aa3529ce6a36604bf814e1_98107656.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/2344b464ef17350dbddf7ea777e60788_73049112.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/120eec3b383c2f7d737efee1f5f2146f_60723893.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/5c4cbb2e0f7f85b828f682ccb33dd0f0_61957292.png change filename to text .imagette283735471762751704/ imagette283735471762751704/1762751547_933423_1393674608_279bcea86e00302af70a7236a34bba09_rle_crop_4029030997_0.png.png imagette283735471762751704/1762751226_913918_1393673195_94774236c3cbb1f886c6546cb3311703_rle_crop_4029030168_0.png.png imagette283735471762751704/1762751547_933423_1393674605_564d9315e25963c5df4ce86ebafb9027_rle_crop_4029031039_0.png.png imagette283735471762751704/1762751586_934230_1393674561_c53fd3f69d71eabeeb3b16ba2ff5a5ff_rle_crop_4029031269_0.png.png imagette283735471762751704/1762751586_934230_1393674561_c53fd3f69d71eabeeb3b16ba2ff5a5ff_rle_crop_4029031271_0.png.png imagette283735471762751704/1762751547_933423_1393674607_52d3c68442784cd76e4ef1219c6a463e_rle_crop_4029031032_0.png.png imagette283735471762751704/1762751608_935991_1393674481_ab0d758c012ec4ae7d4f1ebc9144ba73_rle_crop_4029030848_0.png.png imagette283735471762751704/1762751547_933423_1393674605_564d9315e25963c5df4ce86ebafb9027_rle_crop_4029031040_0.png.png imagette283735471762751704/1762751586_934230_1393674610_e52b6a09297f83083eff5bafd13093a6_rle_crop_4029031258_0.png.png imagette283735471762751704/1762751245_916332_1393673262_13057b478e3480c89ccdbeaefb085dec_rle_crop_4029030281_0.png.png imagette283735471762751704/1762751468_927301_1393674481_ab0d758c012ec4ae7d4f1ebc9144ba73_rle_crop_4029030848_0.png.png imagette283735471762751704/1762751245_916332_1393673028_19e717aad47effaaf0b52ce3cd929a84_rle_crop_4029030301_0.png.png imagette283735471762751704/1762751586_934230_1393674549_5346a8bb521081ba19bcb47ee5542583_rle_crop_4029031338_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/2949f5345858f3b73068ba43e9fede2f_65313201.png imagette283735471762751704 28373551 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=28373551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393674513: '1762751226_913918_1393673103_fc3cc80bde9eb75930bc2210d3bfdf66_rle_crop_4029030272_0.png', 1393674519: '1762751245_916332_1393673262_13057b478e3480c89ccdbeaefb085dec_rle_crop_4029030286_0.png', 1393674661: '1762751468_927301_1393674485_791af5e939a7cb6e9184d17486119be5_rle_crop_4029030788_0.png', 1393674770: '1762751608_935991_1393674485_791af5e939a7cb6e9184d17486119be5_rle_crop_4029030788_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/f2a25b59931f7cb9e652376ab6efa4b1_27580323.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/18189e7e034cc66a26add4d13407ef1c_92518561.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/9a418c662c5659157bc2925b4e3390ed_65773809.png change filename to text .imagette283735511762751705/ imagette283735511762751705/1762751245_916332_1393673262_13057b478e3480c89ccdbeaefb085dec_rle_crop_4029030286_0.png.png imagette283735511762751705/1762751608_935991_1393674485_791af5e939a7cb6e9184d17486119be5_rle_crop_4029030788_0.png.png imagette283735511762751705/1762751468_927301_1393674485_791af5e939a7cb6e9184d17486119be5_rle_crop_4029030788_0.png.png imagette283735511762751705/1762751226_913918_1393673103_fc3cc80bde9eb75930bc2210d3bfdf66_rle_crop_4029030272_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/9a418c662c5659157bc2925b4e3390ed_9590346.png imagette283735511762751705 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28373480 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28373553,28373554,28373555,28373556,28373557,28373558,28373559,28373560,28373561,28373562,28373563,28373564?tags=autre_refus,metal,plastique,Teint_Dans_La_Masse,cartonnette,papier,Carton_gris,kraft,flou,mal_croppe,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1393674730] : ('0.0801700830446329',) no score found for photo 1393674730 We are sending mail with results at report@fotonower.com args[1393674725] : ('0.0801700830446329',) no score found for photo 1393674725 We are sending mail with results at report@fotonower.com args[1393674722] : ('0.0801700830446329',) no score found for photo 1393674722 We are sending mail with results at report@fotonower.com args[1393674719] : ('0.0801700830446329',) no score found for photo 1393674719 We are sending mail with results at report@fotonower.com args[1393674716] : ('0.0801700830446329',) no score found for photo 1393674716 We are sending mail with results at report@fotonower.com args[1393674685] : ('0.0801700830446329',) no score found for photo 1393674685 We are sending mail with results at report@fotonower.com args[1393674682] : ('0.0801700830446329',) no score found for photo 1393674682 We are sending mail with results at report@fotonower.com args[1393674678] : ('0.0801700830446329',) no score found for photo 1393674678 We are sending mail with results at report@fotonower.com args[1393674676] : ('0.0801700830446329',) no score found for photo 1393674676 We are sending mail with results at report@fotonower.com args[1393674674] : ('0.0801700830446329',) no score found for photo 1393674674 We are sending mail with results at report@fotonower.com args[1393674671] : ('0.0801700830446329',) no score found for photo 1393674671 We are sending mail with results at report@fotonower.com refus_total : 0.0801700830446329 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=28373480 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_P28373480_10-11-2025_06_15_01.pdf results_Auto_P28373480_10-11-2025_06_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_15_01.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','28373480','results_Auto_P28373480_10-11-2025_06_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_15_01.pdf','pdf','','0.3','0.0801700830446329') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28373480]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671] map_info['map_portfolio_photo'] : {28373480: [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671, 1393674637, 1393674635, 1393674633, 1393674631, 1393674610, 1393674608, 1393674607, 1393674605, 1393674565, 1393674561, 1393674559, 1393674556, 1393674552, 1393674549, 1393674530, 1393674527, 1393674525, 1393674523, 1393674489, 1393674485, 1393674483, 1393674481, 1393674479, 1393674476, 1393674449, 1393674437, 1393674428, 1393674425, 1393674256, 1393674218, 1393674181, 1393674146, 1393674113, 1393673946, 1393673943, 1393673939, 1393673937, 1393673935, 1393673931, 1393673712, 1393673675, 1393673638, 1393673601, 1393673262, 1393673227, 1393673195, 1393673163, 1393673134, 1393673103, 1393673031, 1393673028]} final : False mtd_id 4302 list_pids : [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671] 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, '4024718') ('4302', '28373480', '1393674730', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674725', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674722', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674719', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674716', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674685', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674682', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674678', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674676', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674674', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674671', None, None, None, None, None, '4024718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '28373480', '1393674730', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674725', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674722', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674719', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674716', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674685', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674682', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674678', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674676', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674674', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674671', None, None, None, None, None, '4024718')] time used for this insertion : 0.015088081359863281 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.569352626800537 time spend to save output : 0.015305042266845703 total time spend for step 4 : 5.584657669067383 step5:split_time_score Mon Nov 10 06:15:06 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 : ['28373480'] 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 : [('28373480',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28373480) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393674725: {'path': 'temp/1762751701_1593801_1393674725_a1f2afb2a49bf9550c63761e2211948c.jpg', 'extension': 'jpg'}, 1393674730: {'path': 'temp/1762751701_1593801_1393674730_2a238b96294181ca9176421e1f250f79.jpg', 'extension': 'jpg'}, 1393674671: {'path': 'temp/1762751701_1593801_1393674671_2c7dd81b76777d2e7b6d7bd5a33879db.jpg', 'extension': 'jpg'}, 1393674674: {'path': 'temp/1762751701_1593801_1393674674_174ac8a81249ac910ffa76686bcac2e6.jpg', 'extension': 'jpg'}, 1393674676: {'path': 'temp/1762751701_1593801_1393674676_e3e9053038dfc01af1e7bd7cb73c51d8.jpg', 'extension': 'jpg'}, 1393674716: {'path': 'temp/1762751701_1593801_1393674716_394f51c3a15ab249e35e07235f658b41.jpg', 'extension': 'jpg'}, 1393674719: {'path': 'temp/1762751701_1593801_1393674719_d3fc95934580f31e4c378a9ac12b71ed.jpg', 'extension': 'jpg'}, 1393674722: {'path': 'temp/1762751701_1593801_1393674722_659ee7df847bd245548a79daeab31f10.jpg', 'extension': 'jpg'}, 1393674678: {'path': 'temp/1762751701_1593801_1393674678_c1d80e54984f14579fd6c07f3221ff33.jpg', 'extension': 'jpg'}, 1393674682: {'path': 'temp/1762751701_1593801_1393674682_e0a00c41898b88490c69a349c4571ce4.jpg', 'extension': 'jpg'}, 1393674685: {'path': 'temp/1762751701_1593801_1393674685_6c044f0ccf0a761fd171bd71d2b2cb67.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 = 28373480; (('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 = 28373480 group by h (('06', 62),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28373480 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 (28373480) 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 (28373480) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10112025 28373480 Nombre de photos uploadées : 62 / 23040 (0%) 10112025 28373480 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 10112025 28373480 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1393673031, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/a7ff2be0d01502b0715e06d9ef70d435.jpg', 'username': None, 'uploaded_at': 1762750867, 'text': 'image_10112025_06_00_14_010208m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393673028, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/19e717aad47effaaf0b52ce3cd929a84.jpg', 'username': None, 'uploaded_at': 1762750867, 'text': 'image_10112025_06_00_44_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393673262, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/13057b478e3480c89ccdbeaefb085dec.jpg', 'username': None, 'uploaded_at': 1762750927, 'text': 'image_10112025_06_00_54_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393673227, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/700c8541dcfe18219d60f3691a0ea578.jpg', 'username': None, 'uploaded_at': 1762750927, 'text': 'image_10112025_06_01_04_010156m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002753734588623047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28373480, '2025-11-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-10' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2549819,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21692323684692383 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= 2549819 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557179, 'mtr_portfolio_id': 28372304, 'dashboard_result_id': 17055574, '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_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557179, 'mtr_portfolio_id': 28372486, 'dashboard_result_id': 17055575, '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_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557179, 'mtr_portfolio_id': 28372713, 'dashboard_result_id': 17055576, '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_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557179, 'mtr_portfolio_id': 28373113, 'dashboard_result_id': 17055577, '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_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2557179, 'mtr_portfolio_id': 28373480, 'dashboard_result_id': 17055578, '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_P28373480_10-11-2025_06_12_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, '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 = 28372304 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': 4024530, 'mtr_portfolio_id': 28372304, 'created_at': datetime.datetime(2025, 11, 10, 5, 16, 29), 'result': '0.040350622235919155', 'result_long': None, 'result_double': None}] Qualite : 0.040350622235919155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372304 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372304_10-11-2025_05_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372304 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_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, 'pht': 3726}}" where mtr_portfolio_id = 28372304 and dashboard_run_id = 2557179 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`=28372304 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17055574, 0.040350622235919155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, '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 = 28372486 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': 4024551, 'mtr_portfolio_id': 28372486, 'created_at': datetime.datetime(2025, 11, 10, 5, 32, 58), 'result': '0.03267969703415672', 'result_long': None, 'result_double': None}] Qualite : 0.03267969703415672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372486_10-11-2025_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372486 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_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, 'pht': 3726}}" where mtr_portfolio_id = 28372486 and dashboard_run_id = 2557179 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`=28372486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17055575, 0.03267969703415672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, '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 = 28372713 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': 4024586, 'mtr_portfolio_id': 28372713, 'created_at': datetime.datetime(2025, 11, 10, 5, 48, 57), 'result': '0.05104206465845779', 'result_long': None, 'result_double': None}] Qualite : 0.05104206465845779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372713_10-11-2025_05_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372713 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_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, 'pht': 3726}}" where mtr_portfolio_id = 28372713 and dashboard_run_id = 2557179 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`=28372713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17055576, 0.05104206465845779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, '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 = 28373113 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': 4024643, 'mtr_portfolio_id': 28373113, 'created_at': datetime.datetime(2025, 11, 10, 6, 3), 'result': '0.038593374114432984', 'result_long': None, 'result_double': None}] Qualite : 0.038593374114432984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28373113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373113_10-11-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28373113 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_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, 'pht': 3726}}" where mtr_portfolio_id = 28373113 and dashboard_run_id = 2557179 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`=28373113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17055577, 0.038593374114432984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, '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 = 28373480 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': 4024718, 'mtr_portfolio_id': 28373480, 'created_at': datetime.datetime(2025, 11, 10, 6, 15), 'result': '0.0801700830446329', 'result_long': None, 'result_double': None}] Qualite : 0.0801700830446329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28373480 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28373480 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_P28373480_10-11-2025_06_15_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, 'pht': 3726}}" where mtr_portfolio_id = 28373480 and dashboard_run_id = 2557179 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`=28373480 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17055578, 0.0801700830446329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_15_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, '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 (28372304,28372486,28372713,28373113,28373480) result : ((1393667459,), (1393670449,), (1393670478,), (1393670523,), (1393670524,), (1393670525,), (1393670527,), (1393670543,), (1393670546,), (1393670568,), (1393670571,), (1393670573,), (1393670575,), (1393670592,), (1393670594,), (1393670596,), (1393670599,), (1393670604,), (1393670607,), (1393670673,), (1393670676,), (1393670678,), (1393670680,), (1393670707,), (1393670708,), (1393670709,), (1393670732,), (1393670757,), (1393670787,), (1393670822,), (1393670904,), (1393670906,), (1393670908,), (1393670910,), (1393670914,), (1393670917,), (1393670939,), (1393670943,), (1393670947,), (1393670951,), (1393671003,), (1393671008,), (1393671010,), (1393671012,), (1393671014,), (1393671016,), (1393671032,), (1393671033,), (1393671034,), (1393671035,), (1393671037,), (1393671064,), (1393671069,), (1393671071,), (1393671073,), (1393671076,), (1393671078,), (1393671102,), (1393671110,), (1393671113,), (1393671115,), (1393671117,), (1393671142,), (1393671145,), (1393671148,), (1393671150,), (1393671151,), (1393671153,), (1393671168,), (1393671169,), (1393671170,), (1393671171,), (1393671173,), (1393671176,), (1393671195,), (1393671199,), (1393671202,), (1393671206,), (1393671209,), (1393671264,), (1393671272,), (1393671274,), (1393671276,), (1393671278,), (1393671286,), (1393671253,), (1393671255,), (1393671257,), (1393671259,), (1393671262,), (1393671314,), (1393671315,), (1393671317,), (1393671318,), (1393671342,), (1393671343,), (1393671347,), (1393671348,), (1393671363,), (1393671366,), (1393671371,), (1393671372,), (1393671374,), (1393671375,), (1393671404,), (1393671407,), (1393671409,), (1393671412,), (1393671432,), (1393671434,), (1393671436,), (1393671438,), (1393671442,), (1393671471,), (1393671473,), (1393671475,), (1393671478,), (1393671500,), (1393671501,), (1393671504,), (1393671506,), (1393671511,), (1393671519,), (1393671561,), (1393671563,), (1393671565,), (1393671569,), (1393671587,), (1393671589,), (1393671591,), (1393671593,), (1393671596,), (1393671600,), (1393671623,), (1393671626,), (1393671628,), (1393671631,), (1393671644,), (1393671648,), (1393671652,), (1393671657,), (1393671678,), (1393671681,), (1393671685,), (1393671696,), (1393671711,), (1393671713,), (1393671732,), (1393671734,), (1393671735,), (1393671775,), (1393671776,), (1393671777,), (1393671780,), (1393671784,), (1393671787,), (1393671799,), (1393671802,), (1393671806,), (1393671809,), (1393671812,), (1393671815,), (1393671845,), (1393671836,), (1393671839,), (1393671841,), (1393671842,), (1393671843,), (1393671862,), (1393671865,), (1393671872,), (1393671888,), (1393671935,), (1393671937,), (1393671939,), (1393671942,), (1393671945,), (1393671961,), (1393671964,), (1393671966,), (1393671968,), (1393671971,), (1393671974,), (1393671995,), (1393671996,), (1393671997,), (1393671999,), (1393672020,), (1393672025,), (1393672031,), (1393672035,), (1393672038,), (1393672067,), (1393672069,), (1393672070,), (1393672074,), (1393672084,), (1393672112,), (1393672113,), (1393672115,), (1393672118,), (1393672121,), (1393672124,), (1393672134,), (1393672135,), (1393672136,), (1393672153,), (1393672156,), (1393672158,), (1393672161,), (1393672164,), (1393672165,), (1393672176,), (1393672179,), (1393672180,), (1393672181,), (1393672225,), (1393672227,), (1393672229,), (1393672232,), (1393672235,), (1393672238,), (1393672271,), (1393672273,), (1393672276,), (1393672280,), (1393672282,), (1393672284,), (1393672289,), (1393672291,), (1393672299,), (1393672309,), (1393672330,), (1393672333,), (1393672337,), (1393672339,), (1393672341,), (1393672343,), (1393672880,), (1393672904,), (1393672934,), (1393672969,), (1393673032,), (1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10112025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28373480]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671] map_info['map_portfolio_photo'] : {28373480: [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671, 1393674637, 1393674635, 1393674633, 1393674631, 1393674610, 1393674608, 1393674607, 1393674605, 1393674565, 1393674561, 1393674559, 1393674556, 1393674552, 1393674549, 1393674530, 1393674527, 1393674525, 1393674523, 1393674489, 1393674485, 1393674483, 1393674481, 1393674479, 1393674476, 1393674449, 1393674437, 1393674428, 1393674425, 1393674256, 1393674218, 1393674181, 1393674146, 1393674113, 1393673946, 1393673943, 1393673939, 1393673937, 1393673935, 1393673931, 1393673712, 1393673675, 1393673638, 1393673601, 1393673262, 1393673227, 1393673195, 1393673163, 1393673134, 1393673103, 1393673031, 1393673028]} final : True mtd_id 4302 list_pids : [1393674730, 1393674725, 1393674722, 1393674719, 1393674716, 1393674685, 1393674682, 1393674678, 1393674676, 1393674674, 1393674671] Looping around the photos to save general results len do output : 1 /28373480Didn'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, '4024718') ('4302', '28373480', '1393674730', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674725', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674722', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674719', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674716', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674685', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674682', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674678', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674676', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674674', None, None, None, None, None, '4024718') ('4302', None, None, None, None, None, None, None, '4024718') ('4302', '28373480', '1393674671', None, None, None, None, None, '4024718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '28373480', 'None', None, None, None, None, '4024718'), ('4302', '28373480', '1393674730', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674725', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674722', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674719', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674716', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674685', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674682', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674678', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674676', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674674', None, None, None, None, None, '4024718'), ('4302', '28373480', '1393674671', None, None, None, None, None, '4024718')] time used for this insertion : 0.02582240104675293 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7265932559967041 time spend to save output : 0.026047945022583008 total time spend for step 5 : 0.7526412010192871 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 (4024718) 2.25user 2.22system 0:12.25elapsed 36%CPU (0avgtext+0avgdata 164348maxresident)k 560inputs+20880outputs (1major+75564minor)pagefaults 0swaps