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 : 1449044 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 (4142651) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4142651) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035264 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4142651'] with mtr_portfolio_ids : ['29035264'] and first list_photo_ids : [] new path : /proc/1449044/ Name: python3 Umask: 0002 State: R (running) Tgid: 1449044 Ngid: 0 Pid: 1449044 PPid: 1449043 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1449044 NSpid: 1449044 NSpgid: 1447798 NSsid: 1447798 VmPeak: 1113408 kB VmSize: 1113384 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105100 kB VmRSS: 105100 kB RssAnon: 66368 kB RssFile: 38732 kB RssShmem: 0 kB VmData: 872112 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 576 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: 40 nonvoluntary_ctxt_switches: 128 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1449044', 'Ngid': '0', 'Pid': '1449044', 'PPid': '1449043', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1449044', 'NSpid': '1449044', 'NSpgid': '1447798', 'NSsid': '1447798', 'VmPeak': '1113408 kB', 'VmSize': '1113384 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105100 kB', 'VmRSS': '105100 kB', 'RssAnon': '66368 kB', 'RssFile': '38732 kB', 'RssShmem': '0 kB', 'VmData': '872112 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '576 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': '40', 'nonvoluntary_ctxt_switches': '128'} ('datou_batch_current', '1449044', '1113408', '0', '1113384', '872112', '105100', b'', 'marlene', '4142651') 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 (29035264) 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 (4142651 ) ) 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 (29035264) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397158863, 'portfolio_id': 29035264}, {'photo_id': 1397158856, 'portfolio_id': 29035264}, {'photo_id': 1397158846, 'portfolio_id': 29035264}, {'photo_id': 1397158751, 'portfolio_id': 29035264}, {'photo_id': 1397158727, 'portfolio_id': 29035264}, {'photo_id': 1397158726, 'portfolio_id': 29035264}, {'photo_id': 1397158721, 'portfolio_id': 29035264}, {'photo_id': 1397158697, 'portfolio_id': 29035264}, {'photo_id': 1397158543, 'portfolio_id': 29035264}, {'photo_id': 1397158541, 'portfolio_id': 29035264}, {'photo_id': 1397158539, 'portfolio_id': 29035264}, {'photo_id': 1397158537, 'portfolio_id': 29035264}, {'photo_id': 1397158514, 'portfolio_id': 29035264}, {'photo_id': 1397158480, 'portfolio_id': 29035264}, {'photo_id': 1397158078, 'portfolio_id': 29035264}, {'photo_id': 1397158045, 'portfolio_id': 29035264}, {'photo_id': 1397158013, 'portfolio_id': 29035264}, {'photo_id': 1397157980, 'portfolio_id': 29035264}, {'photo_id': 1397157922, 'portfolio_id': 29035264}, {'photo_id': 1397157920, 'portfolio_id': 29035264}, {'photo_id': 1397157918, 'portfolio_id': 29035264}, {'photo_id': 1397157916, 'portfolio_id': 29035264}, {'photo_id': 1397157914, 'portfolio_id': 29035264}, {'photo_id': 1397157912, 'portfolio_id': 29035264}, {'photo_id': 1397157887, 'portfolio_id': 29035264}, {'photo_id': 1397157886, 'portfolio_id': 29035264}, {'photo_id': 1397157874, 'portfolio_id': 29035264}, {'photo_id': 1397157872, 'portfolio_id': 29035264}, {'photo_id': 1397157870, 'portfolio_id': 29035264}, {'photo_id': 1397157868, 'portfolio_id': 29035264}] map_portfolio_id_photo_id: {29035264: [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480, 1397158078, 1397158045, 1397158013, 1397157980, 1397157922, 1397157920, 1397157918, 1397157916, 1397157914, 1397157912, 1397157887, 1397157886, 1397157874, 1397157872, 1397157870, 1397157868]} ##### 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.016108989715576172 #### 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 Dec 1 05:22:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29035264) 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 : 29035264 get user id for portfolio 29035264 get sub ptf for main ptf 29035264, type 3726 and hashtags ['autre_refus', 'Carton_gris', 'cartonnette', 'plastique', 'papier', 'Carton_brun', 'Teint_Dans_La_Masse', 'mal_croppe', 'flou', 'environnement', 'kraft', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29035264 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','plastique','papier','Carton_brun','Teint_Dans_La_Masse','mal_croppe','flou','environnement','kraft','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29035264 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','plastique','papier','Carton_brun','Teint_Dans_La_Masse','mal_croppe','flou','environnement','kraft','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29035264, 'sub_port_id': 29035267, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732404, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'Carton_gris': {'main_port_id': 29035264, 'sub_port_id': 29035268, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732405, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'autre_refus': {'main_port_id': 29035264, 'sub_port_id': 29035269, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732406, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29035264, 'sub_port_id': 29035270, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732407, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'cartonnette': {'main_port_id': 29035264, 'sub_port_id': 29035271, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732408, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'environnement': {'main_port_id': 29035264, 'sub_port_id': 29035272, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732409, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'kraft': {'main_port_id': 29035264, 'sub_port_id': 29035273, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732410, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'flou': {'main_port_id': 29035264, 'sub_port_id': 29035274, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732411, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'Carton_brun': {'main_port_id': 29035264, 'sub_port_id': 29035275, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732412, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'papier': {'main_port_id': 29035264, 'sub_port_id': 29035276, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732413, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'plastique': {'main_port_id': 29035264, 'sub_port_id': 29035277, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732414, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}, 'mal_croppe': {'main_port_id': 29035264, 'sub_port_id': 29035278, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732415, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29035267 , 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=29035264 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 (29035267) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035268 , 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=29035264 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 (29035268) result : ((1397158423,), (1397158425,), (1397158848,), (1397158849,), (1397158850,), (1397158851,), (1397158852,), (1397158853,), (1397158862,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035269 , 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=29035264 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 (29035269) result : ((1397158413,), (1397158843,), (1397158844,), (1397158845,), (1397158861,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035270 , 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=29035264 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 (29035270) result : ((1397158400,), (1397158402,), (1397158842,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035271 , 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=29035264 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 (29035271) result : ((1397158854,), (1397158864,), (1397158865,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035272 , 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=29035264 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 (29035272) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035273 , 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=29035264 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 (29035273) result : ((1397158860,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035274 , 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=29035264 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 (29035274) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035275 , 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=29035264 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 (29035275) result : ((1397158434,), (1397158855,), (1397158867,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035276 , 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=29035264 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 (29035276) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035277 , 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=29035264 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 (29035277) result : ((1397158444,), (1397158857,), (1397158858,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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 29035278 , 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=29035264 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 (29035278) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29035264) result : ((1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) 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`=29035264 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','plastique','papier','Carton_brun','Teint_Dans_La_Masse','mal_croppe','flou','environnement','kraft','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29035264 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_gris','cartonnette','plastique','papier','Carton_brun','Teint_Dans_La_Masse','mal_croppe','flou','environnement','kraft','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29035264, 'sub_port_id': 29035279, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732416, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'Carton_gris': {'main_port_id': 29035264, 'sub_port_id': 29035280, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732417, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'autre_refus': {'main_port_id': 29035264, 'sub_port_id': 29035281, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732418, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 29035264, 'sub_port_id': 29035282, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732419, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'cartonnette': {'main_port_id': 29035264, 'sub_port_id': 29035283, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732420, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'environnement': {'main_port_id': 29035264, 'sub_port_id': 29035284, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732421, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'kraft': {'main_port_id': 29035264, 'sub_port_id': 29035285, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732422, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'flou': {'main_port_id': 29035264, 'sub_port_id': 29035286, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732423, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'Carton_brun': {'main_port_id': 29035264, 'sub_port_id': 29035287, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732424, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'papier': {'main_port_id': 29035264, 'sub_port_id': 29035288, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732425, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'plastique': {'main_port_id': 29035264, 'sub_port_id': 29035289, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732426, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}, 'mal_croppe': {'main_port_id': 29035264, 'sub_port_id': 29035290, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19732427, 'last_updated_at': datetime.datetime(2025, 12, 1, 5, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 5, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 5, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035279,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035267 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035280,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035268 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035271 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035272 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035273 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035274 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29035290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29035278 lien utilise dans velours : https://marlene.fotonower.com/velours/29035279,29035280,29035281,29035282,29035283,29035284,29035285,29035286,29035287,29035288,29035289,29035290?tags=metal,Carton_gris,autre_refus,Teint_Dans_La_Masse,cartonnette,environnement,kraft,flou,Carton_brun,papier,plastique,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29035264]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480] map_info['map_portfolio_photo'] : {29035264: [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480, 1397158078, 1397158045, 1397158013, 1397157980, 1397157922, 1397157920, 1397157918, 1397157916, 1397157914, 1397157912, 1397157887, 1397157886, 1397157874, 1397157872, 1397157870, 1397157868]} final : False mtd_id 4302 list_pids : [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480] Looping around the photos to save general results len do output : 1 /29035264. 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, '4142651') ('4302', '29035264', '1397158863', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158856', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158846', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158751', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158727', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158726', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158721', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158697', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158543', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158541', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158539', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158537', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158514', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158480', None, None, None, None, None, '4142651') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29035264', "{'metal': 29035267, 'Carton_gris': 29035268, 'autre_refus': 29035269, 'Teint_Dans_La_Masse': 29035270, 'cartonnette': 29035271, 'environnement': 29035272, 'kraft': 29035273, 'flou': 29035274, 'Carton_brun': 29035275, 'papier': 29035276, 'plastique': 29035277, 'mal_croppe': 29035278}", None, None, None, None, '4142651'), ('4302', '29035264', '1397158863', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158856', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158846', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158751', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158727', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158726', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158721', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158697', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158543', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158541', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158539', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158537', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158514', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158480', None, None, None, None, None, '4142651')] time used for this insertion : 0.01871657371520996 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8441100120544434 time spend to save output : 0.019031763076782227 total time spend for step 1 : 1.8631417751312256 step2:final Mon Dec 1 05:22:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (29035264) 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 29035264 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397157874,1397157872,1397157870,1397157868,1397157887,1397157886,1397157922,1397157920,1397157918,1397157916,1397157914,1397157912,1397158078,1397158045,1397158013,1397157980,1397158543,1397158541,1397158539,1397158537,1397158514,1397158480,1397158751,1397158727,1397158726,1397158721,1397158697,1397158863,1397158856,1397158846); 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([29035264]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} new output for save of step final : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480] map_info['map_portfolio_photo'] : {29035264: [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480, 1397158078, 1397158045, 1397158013, 1397157980, 1397157922, 1397157920, 1397157918, 1397157916, 1397157914, 1397157912, 1397157887, 1397157886, 1397157874, 1397157872, 1397157870, 1397157868]} final : False mtd_id 4302 list_pids : [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480] Looping around the photos to save general results len do output : 14 /1397158863.Didn't retrieve data . /1397158856.Didn't retrieve data . /1397158846.Didn't retrieve data . /1397158751.Didn't retrieve data . /1397158727.Didn't retrieve data . /1397158726.Didn't retrieve data . /1397158721.Didn't retrieve data . /1397158697.Didn't retrieve data . /1397158543.Didn't retrieve data . /1397158541.Didn't retrieve data . /1397158539.Didn't retrieve data . /1397158537.Didn't retrieve data . /1397158514.Didn't retrieve data . /1397158480.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, '4142651') ('4302', '29035264', '1397158863', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158856', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158846', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158751', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158727', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158726', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158721', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158697', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158543', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158541', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158539', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158537', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158514', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158480', None, None, None, None, None, '4142651') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '29035264', '1397158863', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158856', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158846', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158751', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158727', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158726', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158721', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158697', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158543', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158541', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158539', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158537', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158514', '0.05397905387998724', None, None, None, None, '4142651'), ('4302', '29035264', '1397158480', '0.05397905387998724', None, None, None, None, '4142651')] time used for this insertion : 0.01577591896057129 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.11625385284423828 time spend to save output : 0.01643085479736328 total time spend for step 2 : 0.13268470764160156 step3:velours_tree Mon Dec 1 05:22:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29035264: [{'metal': 29035267, 'Carton_gris': 29035268, 'autre_refus': 29035269, 'Teint_Dans_La_Masse': 29035270, 'cartonnette': 29035271, 'environnement': 29035272, 'kraft': 29035273, 'flou': 29035274, 'Carton_brun': 29035275, 'papier': 29035276, 'plastique': 29035277, 'mal_croppe': 29035278}]} input_args_next_step : {29035264: ()} output_args : {29035264: [{'metal': 29035267, 'Carton_gris': 29035268, 'autre_refus': 29035269, 'Teint_Dans_La_Masse': 29035270, 'cartonnette': 29035271, 'environnement': 29035272, 'kraft': 29035273, 'flou': 29035274, 'Carton_brun': 29035275, 'papier': 29035276, 'plastique': 29035277, 'mal_croppe': 29035278}]} args : 29035264 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 : ({'metal': 29035267, 'Carton_gris': 29035268, 'autre_refus': 29035269, 'Teint_Dans_La_Masse': 29035270, 'cartonnette': 29035271, 'environnement': 29035272, 'kraft': 29035273, 'flou': 29035274, 'Carton_brun': 29035275, 'papier': 29035276, 'plastique': 29035277, 'mal_croppe': 29035278},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29035264) 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([29035264]) 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.2889857292175293 time spend to save output : 4.863739013671875e-05 total time spend for step 3 : 0.289034366607666 step4:send_mail_cod Mon Dec 1 05:22:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} input_args_next_step : {1397158863: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158863 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158856 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158846 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158751 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158727 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158726 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158721 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158697 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158543 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158541 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158539 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158537 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158514 depend.output_id : 0 input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ()} output_args : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',)} args : 1397158480 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 : {29035264: [{'metal': 29035267, 'Carton_gris': 29035268, 'autre_refus': 29035269, 'Teint_Dans_La_Masse': 29035270, 'cartonnette': 29035271, 'environnement': 29035272, 'kraft': 29035273, 'flou': 29035274, 'Carton_brun': 29035275, 'papier': 29035276, 'plastique': 29035277, 'mal_croppe': 29035278}]} input_args_next_step : {1397158863: ('0.05397905387998724',), 1397158856: ('0.05397905387998724',), 1397158846: ('0.05397905387998724',), 1397158751: ('0.05397905387998724',), 1397158727: ('0.05397905387998724',), 1397158726: ('0.05397905387998724',), 1397158721: ('0.05397905387998724',), 1397158697: ('0.05397905387998724',), 1397158543: ('0.05397905387998724',), 1397158541: ('0.05397905387998724',), 1397158539: ('0.05397905387998724',), 1397158537: ('0.05397905387998724',), 1397158514: ('0.05397905387998724',), 1397158480: ('0.05397905387998724',), 29035264: ()} output_args : {29035264: [{'metal': 29035267, 'Carton_gris': 29035268, 'autre_refus': 29035269, 'Teint_Dans_La_Masse': 29035270, 'cartonnette': 29035271, 'environnement': 29035272, 'kraft': 29035273, 'flou': 29035274, 'Carton_brun': 29035275, 'papier': 29035276, 'plastique': 29035277, 'mal_croppe': 29035278}]} args : 29035264 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 :15, first value : ('0.05397905387998724',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29035264) 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 (1397158863,1397158856,1397158846,1397158751,1397158727,1397158726,1397158721,1397158697,1397158543,1397158541,1397158539,1397158537,1397158514,1397158480) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397158480 begin to download photo : 1397158539 begin to download photo : 1397158697 begin to download photo : 1397158727 begin to download photo : 1397158856 download finish for photo 1397158697 begin to download photo : 1397158721 download finish for photo 1397158539 begin to download photo : 1397158541 download finish for photo 1397158480 begin to download photo : 1397158514 download finish for photo 1397158727 begin to download photo : 1397158751 download finish for photo 1397158856 begin to download photo : 1397158863 download finish for photo 1397158721 begin to download photo : 1397158726 download finish for photo 1397158514 begin to download photo : 1397158537 download finish for photo 1397158751 begin to download photo : 1397158846 download finish for photo 1397158863 download finish for photo 1397158726 download finish for photo 1397158846 download finish for photo 1397158537 download finish for photo 1397158541 begin to download photo : 1397158543 download finish for photo 1397158543 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette290352671764562951/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29035264_01-12-2025_05_22_31.pdf 29035267 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=29035267 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290352671764562951 29035269 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=29035269 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397158413: '1764562747_2021582_1397157870_9fd0d1d1b5757a4e0acd3249427b160d_rle_crop_4053292457_0.png', 1397158843: '1764562887_2026161_1397157920_c49d3557bf2e200a2300aa827389fe48_rle_crop_4053293008_0.png', 1397158844: '1764562887_2026161_1397157920_c49d3557bf2e200a2300aa827389fe48_rle_crop_4053293000_0.png', 1397158845: '1764562887_2026161_1397157916_eb694adce6f284dc8ee2fb4f66091ada_rle_crop_4053293130_0.png', 1397158861: '1764562868_2025362_1397158045_2296b40af77e598154a79a973c272db5_rle_crop_4053293166_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/261f63ed7fc7c6826d7ac0fc0ea9776b_68815521.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/63d153319f05f76bec1254d4d31cb66f_33254357.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/62712f3dd376dcd160e031ed3e4107ac_72368488.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/2c3d66d453b5a7a7e5434f1a428f6729_56497857.png change filename to text .imagette290352691764562951/ imagette290352691764562951/1764562887_2026161_1397157920_c49d3557bf2e200a2300aa827389fe48_rle_crop_4053293000_0.png.png imagette290352691764562951/1764562868_2025362_1397158045_2296b40af77e598154a79a973c272db5_rle_crop_4053293166_0.png.png imagette290352691764562951/1764562747_2021582_1397157870_9fd0d1d1b5757a4e0acd3249427b160d_rle_crop_4053292457_0.png.png imagette290352691764562951/1764562887_2026161_1397157916_eb694adce6f284dc8ee2fb4f66091ada_rle_crop_4053293130_0.png.png imagette290352691764562951/1764562887_2026161_1397157920_c49d3557bf2e200a2300aa827389fe48_rle_crop_4053293008_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/c6715968d2cd642f1a34b6605321b4fb_72212465.png imagette290352691764562951 29035271 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=29035271 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397158854: '1764562887_2026161_1397157912_4c6838c079053edccb0411f3fdbbf09a_rle_crop_4053293153_0.png', 1397158864: '1764562868_2025362_1397158045_2296b40af77e598154a79a973c272db5_rle_crop_4053293168_0.png', 1397158865: '1764562868_2025362_1397158013_4c9eb4ed182a3acf6a04e0da0828511a_rle_crop_4053293186_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/11a6ddef182b12d08c5dd5c7bf121b66_15020168.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/413a0c1b3297bae1f69758b63b2358b3_19915605.png change filename to text .imagette290352711764562952/ imagette290352711764562952/1764562887_2026161_1397157912_4c6838c079053edccb0411f3fdbbf09a_rle_crop_4053293153_0.png.png imagette290352711764562952/1764562868_2025362_1397158045_2296b40af77e598154a79a973c272db5_rle_crop_4053293168_0.png.png imagette290352711764562952/1764562868_2025362_1397158013_4c9eb4ed182a3acf6a04e0da0828511a_rle_crop_4053293186_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/a311ef9b132f597ec4c9d3af5bfd125b_75131893.png imagette290352711764562952 29035273 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=29035273 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397158860: '1764562887_2026161_1397157918_d081eb49372c6d65ef8be5dbafa120f4_rle_crop_4053293114_0.png'} change filename to text .imagette290352731764562952/ imagette290352731764562952/1764562887_2026161_1397157918_d081eb49372c6d65ef8be5dbafa120f4_rle_crop_4053293114_0.png.png imagette290352741764562952/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/e99c89684eff85d674eafc428857fdba_32051138.png imagette290352731764562952 29035274 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=29035274 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290352741764562952 29035277 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=29035277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397158444: '1764562747_2021582_1397157872_dce84c29930981dfd07e731235cc8ee8_rle_crop_4053292443_0.png', 1397158857: '1764562887_2026161_1397158078_07a6a5255c5488a4cd3c38e7636a708c_rle_crop_4053292978_0.png', 1397158858: '1764562887_2026161_1397157914_c2d18d3fe759c85e183da6e621dcd54f_rle_crop_4053293144_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/029f92d45f07be0ddf1d83042ea676d4_33874007.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/b619d7ef57c934e15396fd1a72b40779_51576314.png change filename to text .imagette290352771764562952/ imagette290352771764562952/1764562887_2026161_1397158078_07a6a5255c5488a4cd3c38e7636a708c_rle_crop_4053292978_0.png.png imagette290352771764562952/1764562747_2021582_1397157872_dce84c29930981dfd07e731235cc8ee8_rle_crop_4053292443_0.png.png imagette290352771764562952/1764562887_2026161_1397157914_c2d18d3fe759c85e183da6e621dcd54f_rle_crop_4053293144_0.png.png imagette290352781764562952/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/c685300f53493d2ff76a33832ca8479a_27437660.png imagette290352771764562952 29035278 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=29035278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290352781764562952 29035268 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=29035268 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397158423: '1764562747_2021582_1397157872_dce84c29930981dfd07e731235cc8ee8_rle_crop_4053292437_0.png', 1397158425: '1764562747_2021582_1397157868_d9f3681664d9b0b079f0325e2d19267f_rle_crop_4053292468_0.png', 1397158848: '1764562887_2026161_1397158078_07a6a5255c5488a4cd3c38e7636a708c_rle_crop_4053292976_0.png', 1397158849: '1764562887_2026161_1397158078_07a6a5255c5488a4cd3c38e7636a708c_rle_crop_4053292981_0.png', 1397158850: '1764562887_2026161_1397157920_c49d3557bf2e200a2300aa827389fe48_rle_crop_4053293001_0.png', 1397158851: '1764562887_2026161_1397157920_c49d3557bf2e200a2300aa827389fe48_rle_crop_4053292993_0.png', 1397158852: '1764562887_2026161_1397157918_d081eb49372c6d65ef8be5dbafa120f4_rle_crop_4053293117_0.png', 1397158853: '1764562887_2026161_1397157916_eb694adce6f284dc8ee2fb4f66091ada_rle_crop_4053293133_0.png', 1397158862: '1764562868_2025362_1397158013_4c9eb4ed182a3acf6a04e0da0828511a_rle_crop_4053293183_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/94da40f4857337e69a3d2827d58c32e8_79906123.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/77c45e217f58aafb75dabd33b8ff27be_99035762.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/ad49620e224dcf54001333ac8d1d48c3_47305708.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/a433bb2d03b534cf6045fe6e5e7cf5eb_96053437.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/6571305665acb567dda5902ca5c11074_23702723.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/d024d03af5d32d4f3955067ece5a2605_63437070.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/2c79ddf63f55c545ee9bc87dbdc77b80_81466329.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/784ea57988416c937b74a1f083396ddb_28105267.png change filename to text .imagette290352681764562952/ imagette290352681764562952/1764562747_2021582_1397157868_d9f3681664d9b0b079f0325e2d19267f_rle_crop_4053292468_0.png.png imagette290352681764562952/1764562887_2026161_1397158078_07a6a5255c5488a4cd3c38e7636a708c_rle_crop_4053292976_0.png.png imagette290352681764562952/1764562887_2026161_1397157918_d081eb49372c6d65ef8be5dbafa120f4_rle_crop_4053293117_0.png.png imagette290352681764562952/1764562887_2026161_1397157920_c49d3557bf2e200a2300aa827389fe48_rle_crop_4053293001_0.png.png imagette290352681764562952/1764562887_2026161_1397158078_07a6a5255c5488a4cd3c38e7636a708c_rle_crop_4053292981_0.png.png imagette290352681764562952/1764562868_2025362_1397158013_4c9eb4ed182a3acf6a04e0da0828511a_rle_crop_4053293183_0.png.png imagette290352681764562952/1764562887_2026161_1397157916_eb694adce6f284dc8ee2fb4f66091ada_rle_crop_4053293133_0.png.png imagette290352681764562952/1764562887_2026161_1397157920_c49d3557bf2e200a2300aa827389fe48_rle_crop_4053292993_0.png.png imagette290352681764562952/1764562747_2021582_1397157872_dce84c29930981dfd07e731235cc8ee8_rle_crop_4053292437_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/a26b756a2ccfbd2224effa21ef94e0d7_11340728.png imagette290352681764562952 29035270 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=29035270 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397158400: '1764562747_2021582_1397157868_d9f3681664d9b0b079f0325e2d19267f_rle_crop_4053292471_0.png', 1397158402: '1764562747_2021582_1397157868_d9f3681664d9b0b079f0325e2d19267f_rle_crop_4053292472_0.png', 1397158842: '1764562887_2026161_1397157920_c49d3557bf2e200a2300aa827389fe48_rle_crop_4053292998_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/c458d746230b8eb010313db8ca2d8f80_26307618.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/4d94399d570fbbcd54cf67de3d66a336_2581127.png change filename to text .imagette290352701764562953/ imagette290352701764562953/1764562747_2021582_1397157868_d9f3681664d9b0b079f0325e2d19267f_rle_crop_4053292472_0.png.png imagette290352701764562953/1764562887_2026161_1397157920_c49d3557bf2e200a2300aa827389fe48_rle_crop_4053292998_0.png.png imagette290352701764562953/1764562747_2021582_1397157868_d9f3681664d9b0b079f0325e2d19267f_rle_crop_4053292471_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/e2e9b99bbda0a5cb3185fa13c021565b_31548012.png imagette290352701764562953 29035275 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=29035275 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397158434: '1764562747_2021582_1397157868_d9f3681664d9b0b079f0325e2d19267f_rle_crop_4053292473_0.png', 1397158855: '1764562887_2026161_1397157912_4c6838c079053edccb0411f3fdbbf09a_rle_crop_4053293159_0.png', 1397158867: '1764562868_2025362_1397158045_2296b40af77e598154a79a973c272db5_rle_crop_4053293169_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/52dc083f04f9b2116a70146e52b36fc6_97246154.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/04d33ae3345607ac29f369d6fdb4386f_22378723.png change filename to text .imagette290352751764562953/ imagette290352751764562953/1764562887_2026161_1397157912_4c6838c079053edccb0411f3fdbbf09a_rle_crop_4053293159_0.png.png imagette290352751764562953/1764562747_2021582_1397157868_d9f3681664d9b0b079f0325e2d19267f_rle_crop_4053292473_0.png.png imagette290352751764562953/1764562868_2025362_1397158045_2296b40af77e598154a79a973c272db5_rle_crop_4053293169_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/88933e3f1d32eae85bfe9366d3cd57c6_32253563.png imagette290352751764562953 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29035264 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29035279,29035280,29035281,29035282,29035283,29035284,29035285,29035286,29035287,29035288,29035289,29035290?tags=metal,Carton_gris,autre_refus,Teint_Dans_La_Masse,cartonnette,environnement,kraft,flou,Carton_brun,papier,plastique,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1397158863] : ('0.05397905387998724',) no score found for photo 1397158863 We are sending mail with results at report@fotonower.com args[1397158856] : ('0.05397905387998724',) no score found for photo 1397158856 We are sending mail with results at report@fotonower.com args[1397158846] : ('0.05397905387998724',) no score found for photo 1397158846 We are sending mail with results at report@fotonower.com args[1397158751] : ('0.05397905387998724',) no score found for photo 1397158751 We are sending mail with results at report@fotonower.com args[1397158727] : ('0.05397905387998724',) no score found for photo 1397158727 We are sending mail with results at report@fotonower.com args[1397158726] : ('0.05397905387998724',) no score found for photo 1397158726 We are sending mail with results at report@fotonower.com args[1397158721] : ('0.05397905387998724',) no score found for photo 1397158721 We are sending mail with results at report@fotonower.com args[1397158697] : ('0.05397905387998724',) no score found for photo 1397158697 We are sending mail with results at report@fotonower.com args[1397158543] : ('0.05397905387998724',) no score found for photo 1397158543 We are sending mail with results at report@fotonower.com args[1397158541] : ('0.05397905387998724',) no score found for photo 1397158541 We are sending mail with results at report@fotonower.com args[1397158539] : ('0.05397905387998724',) no score found for photo 1397158539 We are sending mail with results at report@fotonower.com args[1397158537] : ('0.05397905387998724',) no score found for photo 1397158537 We are sending mail with results at report@fotonower.com args[1397158514] : ('0.05397905387998724',) no score found for photo 1397158514 We are sending mail with results at report@fotonower.com args[1397158480] : ('0.05397905387998724',) no score found for photo 1397158480 We are sending mail with results at report@fotonower.com refus_total : 0.05397905387998724 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=29035264 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_P29035264_01-12-2025_05_22_31.pdf results_Auto_P29035264_01-12-2025_05_22_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_22_31.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','29035264','results_Auto_P29035264_01-12-2025_05_22_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_22_31.pdf','pdf','','0.21','0.05397905387998724') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29035264]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480] map_info['map_portfolio_photo'] : {29035264: [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480, 1397158078, 1397158045, 1397158013, 1397157980, 1397157922, 1397157920, 1397157918, 1397157916, 1397157914, 1397157912, 1397157887, 1397157886, 1397157874, 1397157872, 1397157870, 1397157868]} final : False mtd_id 4302 list_pids : [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480] 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, '4142651') ('4302', '29035264', '1397158863', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158856', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158846', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158751', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158727', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158726', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158721', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158697', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158543', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158541', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158539', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158537', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158514', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158480', None, None, None, None, None, '4142651') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29035264', '1397158863', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158856', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158846', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158751', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158727', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158726', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158721', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158697', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158543', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158541', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158539', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158537', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158514', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158480', None, None, None, None, None, '4142651')] time used for this insertion : 0.01697087287902832 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.321946859359741 time spend to save output : 0.01725172996520996 total time spend for step 4 : 4.339198589324951 step5:split_time_score Mon Dec 1 05:22:35 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29035264'] 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 : [('29035264',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29035264) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397158856: {'path': 'temp/1764562950_1449044_1397158856_17f07cb1df190b9d08da68d0402f58af.jpg', 'extension': 'jpg'}, 1397158863: {'path': 'temp/1764562950_1449044_1397158863_f7dc86f324cf1e0f34f045ef4673b16f.jpg', 'extension': 'jpg'}, 1397158697: {'path': 'temp/1764562950_1449044_1397158697_1f4cc03fb73a4517d7129faeaf7e492c.jpg', 'extension': 'jpg'}, 1397158721: {'path': 'temp/1764562950_1449044_1397158721_1e5cfa38fcd91930fc184d94241dc99a.jpg', 'extension': 'jpg'}, 1397158726: {'path': 'temp/1764562950_1449044_1397158726_d19edbac46afc8b921f006edae6c5bcf.jpg', 'extension': 'jpg'}, 1397158727: {'path': 'temp/1764562950_1449044_1397158727_2af345abfd47f2473729f556c4c8043d.jpg', 'extension': 'jpg'}, 1397158751: {'path': 'temp/1764562950_1449044_1397158751_549992388e56d40b32e5a112d63ec0e1.jpg', 'extension': 'jpg'}, 1397158846: {'path': 'temp/1764562950_1449044_1397158846_c4ac3cfceb27c5e62f617c3f343793c4.jpg', 'extension': 'jpg'}, 1397158480: {'path': 'temp/1764562950_1449044_1397158480_874650cd8395e857e83456e6771ad6e6.jpg', 'extension': 'jpg'}, 1397158514: {'path': 'temp/1764562950_1449044_1397158514_d821487b88a120af94b2b8dbbfe842ff.jpg', 'extension': 'jpg'}, 1397158537: {'path': 'temp/1764562950_1449044_1397158537_b90d50682e3356e9a0ee057e6318a47c.jpg', 'extension': 'jpg'}, 1397158539: {'path': 'temp/1764562950_1449044_1397158539_5cb7ee81e8ade2fded40a23dd58b9e5b.jpg', 'extension': 'jpg'}, 1397158541: {'path': 'temp/1764562950_1449044_1397158541_41d2aa688c38db333bd0029832b186ab.jpg', 'extension': 'jpg'}, 1397158543: {'path': 'temp/1764562950_1449044_1397158543_3e4bc315e3f34ce3822d313bfa113763.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 = 29035264; (('arc_en_ciel_jrm_live',),) 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 = 29035264 group by h (('05', 30),) 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=29035264 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 (29035264) 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 (29035264) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01122025 29035264 Nombre de photos uploadées : 30 / 23040 (0%) 01122025 29035264 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 01122025 29035264 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1397157874, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/afdb691ccad1d8e7288711944cbc3475.jpg', 'username': None, 'uploaded_at': 1764562573, 'text': 'image_01122025_05_15_04_10151.jpg'}, {'photo_id': 1397157872, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/dce84c29930981dfd07e731235cc8ee8.jpg', 'username': None, 'uploaded_at': 1764562573, 'text': 'image_01122025_05_15_14_10138.jpg'}, {'photo_id': 1397157870, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/9fd0d1d1b5757a4e0acd3249427b160d.jpg', 'username': None, 'uploaded_at': 1764562573, 'text': 'image_01122025_05_15_24_10138.jpg'}, {'photo_id': 1397157868, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/d9f3681664d9b0b079f0325e2d19267f.jpg', 'username': None, 'uploaded_at': 1764562573, 'text': 'image_01122025_05_15_43_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016241073608398438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 29035264, '2025-12-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-12-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2670855,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2488565444946289 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= 2670855 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2670855, 'dashboard_run_id': 2677809, 'mtr_portfolio_id': 29035031, 'dashboard_result_id': 17889968, '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_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}"}, {'dashboat_entry_day': 2670855, 'dashboard_run_id': 2677809, 'mtr_portfolio_id': 29035264, 'dashboard_result_id': 17889969, '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_P29035264_01-12-2025_05_20_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, '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 = 29035031 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': 4142623, 'mtr_portfolio_id': 29035031, 'created_at': datetime.datetime(2025, 12, 1, 5, 18, 59), 'result': '0.052209996136521615', 'result_long': None, 'result_double': None}] Qualite : 0.052209996136521615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035031 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_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}" where mtr_portfolio_id = 29035031 and dashboard_run_id = 2677809 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`=29035031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17889968, 0.052209996136521615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, '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 = 29035264 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': 4142651, 'mtr_portfolio_id': 29035264, 'created_at': datetime.datetime(2025, 12, 1, 5, 22, 30), 'result': '0.05397905387998724', 'result_long': None, 'result_double': None}] Qualite : 0.05397905387998724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035264 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_P29035264_01-12-2025_05_22_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, 'pht': 3726}}" where mtr_portfolio_id = 29035264 and dashboard_run_id = 2677809 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`=29035264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17889969, 0.05397905387998724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_22_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, '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 (29035031,29035264) result : ((1397157552,), (1397157615,), (1397157616,), (1397157617,), (1397157618,), (1397157669,), (1397157670,), (1397157688,), (1397157689,), (1397157691,), (1397157693,), (1397157705,), (1397157707,), (1397157709,), (1397157711,), (1397157713,), (1397157739,), (1397157741,), (1397157743,), (1397157754,), (1397157756,), (1397157759,), (1397157762,), (1397157765,), (1397157767,), (1397157774,), (1397157775,), (1397157777,), (1397157780,), (1397157788,), (1397157796,), (1397157798,), (1397157818,), (1397157820,), (1397157821,), (1397157822,), (1397157823,), (1397157824,), (1397157833,), (1397157835,), (1397157836,), (1397157837,), (1397157839,), (1397157876,), (1397157878,), (1397157882,), (1397157883,), (1397157884,), (1397157885,), (1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01122025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29035264]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480] map_info['map_portfolio_photo'] : {29035264: [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480, 1397158078, 1397158045, 1397158013, 1397157980, 1397157922, 1397157920, 1397157918, 1397157916, 1397157914, 1397157912, 1397157887, 1397157886, 1397157874, 1397157872, 1397157870, 1397157868]} final : True mtd_id 4302 list_pids : [1397158863, 1397158856, 1397158846, 1397158751, 1397158727, 1397158726, 1397158721, 1397158697, 1397158543, 1397158541, 1397158539, 1397158537, 1397158514, 1397158480] Looping around the photos to save general results len do output : 1 /29035264Didn'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, '4142651') ('4302', '29035264', '1397158863', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158856', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158846', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158751', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158727', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158726', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158721', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158697', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158543', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158541', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158539', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158537', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158514', None, None, None, None, None, '4142651') ('4302', None, None, None, None, None, None, None, '4142651') ('4302', '29035264', '1397158480', None, None, None, None, None, '4142651') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29035264', 'None', None, None, None, None, '4142651'), ('4302', '29035264', '1397158863', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158856', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158846', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158751', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158727', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158726', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158721', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158697', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158543', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158541', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158539', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158537', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158514', None, None, None, None, None, '4142651'), ('4302', '29035264', '1397158480', None, None, None, None, None, '4142651')] time used for this insertion : 0.01974773406982422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5638394355773926 time spend to save output : 0.019997835159301758 total time spend for step 5 : 0.5838372707366943 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 (4142651) 2.31user 2.34system 0:10.87elapsed 42%CPU (0avgtext+0avgdata 167616maxresident)k 1352inputs+12880outputs (5major+81796minor)pagefaults 0swaps