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 : 434711 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 (2580255) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2580255) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485950 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2580255'] with mtr_portfolio_ids : ['20485950'] and first list_photo_ids : [] new path : /proc/434711/ Name: python3 Umask: 0002 State: R (running) Tgid: 434711 Ngid: 0 Pid: 434711 PPid: 434709 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 434711 NSpid: 434711 NSpgid: 433680 NSsid: 433680 VmPeak: 1106836 kB VmSize: 1106836 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98236 kB VmRSS: 98236 kB RssAnon: 59752 kB RssFile: 38484 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 36 nonvoluntary_ctxt_switches: 144 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '434711', 'Ngid': '0', 'Pid': '434711', 'PPid': '434709', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '434711', 'NSpid': '434711', 'NSpgid': '433680', 'NSsid': '433680', 'VmPeak': '1106836 kB', 'VmSize': '1106836 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98236 kB', 'VmRSS': '98236 kB', 'RssAnon': '59752 kB', 'RssFile': '38484 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '36', 'nonvoluntary_ctxt_switches': '144'} ('datou_batch_current', '434711', '1106836', '0', '1106836', '865588', '98236', b'', 'marlene', '2580255') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (20485950) 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 (2580255 ) ) 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 (20485950) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1337160527, 'portfolio_id': 20485950}, {'photo_id': 1337160523, 'portfolio_id': 20485950}, {'photo_id': 1337160520, 'portfolio_id': 20485950}, {'photo_id': 1337160497, 'portfolio_id': 20485950}, {'photo_id': 1337160490, 'portfolio_id': 20485950}, {'photo_id': 1337160485, 'portfolio_id': 20485950}, {'photo_id': 1337160484, 'portfolio_id': 20485950}, {'photo_id': 1337160443, 'portfolio_id': 20485950}, {'photo_id': 1337160439, 'portfolio_id': 20485950}, {'photo_id': 1337160434, 'portfolio_id': 20485950}, {'photo_id': 1337160431, 'portfolio_id': 20485950}, {'photo_id': 1337160427, 'portfolio_id': 20485950}, {'photo_id': 1337160424, 'portfolio_id': 20485950}, {'photo_id': 1337160387, 'portfolio_id': 20485950}, {'photo_id': 1337160385, 'portfolio_id': 20485950}, {'photo_id': 1337160383, 'portfolio_id': 20485950}, {'photo_id': 1337160382, 'portfolio_id': 20485950}, {'photo_id': 1337160340, 'portfolio_id': 20485950}, {'photo_id': 1337160339, 'portfolio_id': 20485950}, {'photo_id': 1337160337, 'portfolio_id': 20485950}, {'photo_id': 1337160334, 'portfolio_id': 20485950}, {'photo_id': 1337160332, 'portfolio_id': 20485950}, {'photo_id': 1337160304, 'portfolio_id': 20485950}, {'photo_id': 1337160302, 'portfolio_id': 20485950}, {'photo_id': 1337160299, 'portfolio_id': 20485950}, {'photo_id': 1337160296, 'portfolio_id': 20485950}, {'photo_id': 1337160289, 'portfolio_id': 20485950}, {'photo_id': 1337160251, 'portfolio_id': 20485950}, {'photo_id': 1337160243, 'portfolio_id': 20485950}, {'photo_id': 1337160239, 'portfolio_id': 20485950}, {'photo_id': 1337160204, 'portfolio_id': 20485950}, {'photo_id': 1337160197, 'portfolio_id': 20485950}, {'photo_id': 1337160155, 'portfolio_id': 20485950}, {'photo_id': 1337160148, 'portfolio_id': 20485950}, {'photo_id': 1337160140, 'portfolio_id': 20485950}, {'photo_id': 1337160128, 'portfolio_id': 20485950}, {'photo_id': 1337160124, 'portfolio_id': 20485950}, {'photo_id': 1337160066, 'portfolio_id': 20485950}, {'photo_id': 1337160062, 'portfolio_id': 20485950}, {'photo_id': 1337160060, 'portfolio_id': 20485950}, {'photo_id': 1337160056, 'portfolio_id': 20485950}, {'photo_id': 1337160050, 'portfolio_id': 20485950}, {'photo_id': 1337160048, 'portfolio_id': 20485950}, {'photo_id': 1337159995, 'portfolio_id': 20485950}, {'photo_id': 1337159993, 'portfolio_id': 20485950}, {'photo_id': 1337159992, 'portfolio_id': 20485950}, {'photo_id': 1337159960, 'portfolio_id': 20485950}, {'photo_id': 1337159951, 'portfolio_id': 20485950}, {'photo_id': 1337159945, 'portfolio_id': 20485950}, {'photo_id': 1337159943, 'portfolio_id': 20485950}, {'photo_id': 1337159941, 'portfolio_id': 20485950}, {'photo_id': 1337159939, 'portfolio_id': 20485950}, {'photo_id': 1337159761, 'portfolio_id': 20485950}, {'photo_id': 1337159758, 'portfolio_id': 20485950}, {'photo_id': 1337159664, 'portfolio_id': 20485950}, {'photo_id': 1337159622, 'portfolio_id': 20485950}, {'photo_id': 1337159602, 'portfolio_id': 20485950}, {'photo_id': 1337159428, 'portfolio_id': 20485950}] map_portfolio_id_photo_id: {20485950: [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424, 1337160387, 1337160385, 1337160383, 1337160382, 1337160340, 1337160339, 1337160337, 1337160334, 1337160332, 1337160304, 1337160302, 1337160299, 1337160296, 1337160289, 1337160251, 1337160243, 1337160239, 1337160204, 1337160197, 1337160155, 1337160148, 1337160140, 1337160128, 1337160124, 1337160066, 1337160062, 1337160060, 1337160056, 1337160050, 1337160048, 1337159995, 1337159993, 1337159992, 1337159960, 1337159951, 1337159945, 1337159943, 1337159941, 1337159939, 1337159761, 1337159758, 1337159664, 1337159622, 1337159602, 1337159428]} ##### 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.017452239990234375 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Feb 12 18:58:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20485950) 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 : 20485950 get user id for portfolio 20485950 get sub ptf for main ptf 20485950, type 3726 and hashtags ['autre_refus', 'plastique', 'Carton_gris', 'cartonnette', 'metal', 'papier', 'kraft', 'Carton_brun', 'Teint_Dans_La_Masse', 'flou', 'environnement', 'mal_croppe'] 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`=20485950 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','Carton_gris','cartonnette','metal','papier','kraft','Carton_brun','Teint_Dans_La_Masse','flou','environnement','mal_croppe')) 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`=20485950 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','Carton_gris','cartonnette','metal','papier','kraft','Carton_brun','Teint_Dans_La_Masse','flou','environnement','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 20485950, 'sub_port_id': 20485978, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156573, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'metal': {'main_port_id': 20485950, 'sub_port_id': 20485979, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156574, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'plastique': {'main_port_id': 20485950, 'sub_port_id': 20485980, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156575, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'Carton_gris': {'main_port_id': 20485950, 'sub_port_id': 20485981, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156576, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'papier': {'main_port_id': 20485950, 'sub_port_id': 20485982, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156577, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'flou': {'main_port_id': 20485950, 'sub_port_id': 20485983, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156578, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20485950, 'sub_port_id': 20485984, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156579, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'mal_croppe': {'main_port_id': 20485950, 'sub_port_id': 20485985, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156580, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'Carton_brun': {'main_port_id': 20485950, 'sub_port_id': 20485986, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156581, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'cartonnette': {'main_port_id': 20485950, 'sub_port_id': 20485987, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156582, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'environnement': {'main_port_id': 20485950, 'sub_port_id': 20485988, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156583, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}, 'kraft': {'main_port_id': 20485950, 'sub_port_id': 20485989, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156584, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20485978 , 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=20485950 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 (20485978) result : ((1337160283,), (1337160349,), (1337160350,), (1337160447,), (1337160448,), (1337160532,), (1337160533,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485979 , 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=20485950 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 (20485979) result : ((1337160298,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485980 , 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=20485950 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 (20485980) result : ((1337160295,), (1337160346,), (1337160358,), (1337160359,), (1337160360,), (1337160496,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485981 , 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=20485950 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 (20485981) result : ((1337160284,), (1337160285,), (1337160286,), (1337160287,), (1337160342,), (1337160449,), (1337160450,), (1337160451,), (1337160473,), (1337160492,), (1337160493,), (1337160534,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485982 , 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=20485950 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 (20485982) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485983 , 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=20485950 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 (20485983) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485984 , 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=20485950 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 (20485984) result : ((1337160280,), (1337160281,), (1337160282,), (1337160344,), (1337160345,), (1337160444,), (1337160445,), (1337160446,), (1337160470,), (1337160471,), (1337160472,), (1337160488,), (1337160489,), (1337160531,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485985 , 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=20485950 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 (20485985) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485986 , 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=20485950 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 (20485986) result : ((1337160294,), (1337160353,), (1337160354,), (1337160355,), (1337160477,), (1337160495,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485987 , 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=20485950 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 (20485987) result : ((1337160290,), (1337160291,), (1337160292,), (1337160293,), (1337160351,), (1337160475,), (1337160476,), (1337160536,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485988 , 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=20485950 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 (20485988) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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 20485989 , 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=20485950 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 (20485989) result : ((1337160347,), (1337160479,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20485950) result : ((1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) 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`=20485950 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','Carton_gris','cartonnette','metal','papier','kraft','Carton_brun','Teint_Dans_La_Masse','flou','environnement','mal_croppe')) 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`=20485950 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','Carton_gris','cartonnette','metal','papier','kraft','Carton_brun','Teint_Dans_La_Masse','flou','environnement','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 20485950, 'sub_port_id': 20485990, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156585, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'metal': {'main_port_id': 20485950, 'sub_port_id': 20485991, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156586, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'plastique': {'main_port_id': 20485950, 'sub_port_id': 20485992, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156587, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'Carton_gris': {'main_port_id': 20485950, 'sub_port_id': 20485993, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156588, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'papier': {'main_port_id': 20485950, 'sub_port_id': 20485994, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156589, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'flou': {'main_port_id': 20485950, 'sub_port_id': 20485995, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156590, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20485950, 'sub_port_id': 20485996, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156591, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'mal_croppe': {'main_port_id': 20485950, 'sub_port_id': 20485997, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156592, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'Carton_brun': {'main_port_id': 20485950, 'sub_port_id': 20485998, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156593, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'cartonnette': {'main_port_id': 20485950, 'sub_port_id': 20485999, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156594, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'environnement': {'main_port_id': 20485950, 'sub_port_id': 20486000, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156595, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}, 'kraft': {'main_port_id': 20485950, 'sub_port_id': 20486001, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13156596, 'last_updated_at': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 18, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 18, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20485990,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485978 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20485991,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485979 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20485992,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485980 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20485993,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485981 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20485994,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485982 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20485995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485983 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20485996,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485984 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20485997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485985 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20485998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485986 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20485999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485987 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20486000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485988 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20486001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20485989 lien utilise dans velours : https://www.fotonower.com/velours/20485990,20485991,20485992,20485993,20485994,20485995,20485996,20485997,20485998,20485999,20486000,20486001?tags=autre_refus,metal,plastique,Carton_gris,papier,flou,Teint_Dans_La_Masse,mal_croppe,Carton_brun,cartonnette,environnement,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20485950]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424] map_info['map_portfolio_photo'] : {20485950: [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424, 1337160387, 1337160385, 1337160383, 1337160382, 1337160340, 1337160339, 1337160337, 1337160334, 1337160332, 1337160304, 1337160302, 1337160299, 1337160296, 1337160289, 1337160251, 1337160243, 1337160239, 1337160204, 1337160197, 1337160155, 1337160148, 1337160140, 1337160128, 1337160124, 1337160066, 1337160062, 1337160060, 1337160056, 1337160050, 1337160048, 1337159995, 1337159993, 1337159992, 1337159960, 1337159951, 1337159945, 1337159943, 1337159941, 1337159939, 1337159761, 1337159758, 1337159664, 1337159622, 1337159602, 1337159428]} final : False mtd_id 4302 list_pids : [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424] Looping around the photos to save general results len do output : 1 /20485950. 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, '2580255') ('4302', '20485950', '1337160527', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160523', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160520', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160497', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160490', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160485', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160484', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160443', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160439', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160434', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160431', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160427', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160424', None, None, None, None, None, '2580255') 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', None, '20485950', "{'autre_refus': 20485978, 'metal': 20485979, 'plastique': 20485980, 'Carton_gris': 20485981, 'papier': 20485982, 'flou': 20485983, 'Teint_Dans_La_Masse': 20485984, 'mal_croppe': 20485985, 'Carton_brun': 20485986, 'cartonnette': 20485987, 'environnement': 20485988, 'kraft': 20485989}", None, None, None, None, '2580255'), ('4302', '20485950', '1337160527', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160523', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160520', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160497', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160490', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160485', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160484', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160443', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160439', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160434', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160431', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160427', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160424', None, None, None, None, None, '2580255')] time used for this insertion : 0.0134735107421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4481134414672852 time spend to save output : 0.013798952102661133 total time spend for step 1 : 1.4619123935699463 step2:final Wed Feb 12 18:58:31 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 (20485950) 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 20485950 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1337159428,1337159761,1337159758,1337159664,1337159622,1337159602,1337159960,1337159951,1337159945,1337159943,1337159941,1337159939,1337159995,1337159993,1337159992,1337160066,1337160062,1337160060,1337160056,1337160050,1337160048,1337160155,1337160148,1337160140,1337160128,1337160124,1337160251,1337160243,1337160239,1337160204,1337160304,1337160197,1337160302,1337160299,1337160296,1337160289,1337160340,1337160339,1337160337,1337160334,1337160332,1337160387,1337160385,1337160383,1337160382,1337160443,1337160439,1337160434,1337160431,1337160427,1337160424,1337160497,1337160490,1337160485,1337160484,1337160527,1337160523,1337160520); 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([20485950]) Inside saveOutput : final : False verbose : True original output for save of step final : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} new output for save of step final : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424] map_info['map_portfolio_photo'] : {20485950: [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424, 1337160387, 1337160385, 1337160383, 1337160382, 1337160340, 1337160339, 1337160337, 1337160334, 1337160332, 1337160304, 1337160302, 1337160299, 1337160296, 1337160289, 1337160251, 1337160243, 1337160239, 1337160204, 1337160197, 1337160155, 1337160148, 1337160140, 1337160128, 1337160124, 1337160066, 1337160062, 1337160060, 1337160056, 1337160050, 1337160048, 1337159995, 1337159993, 1337159992, 1337159960, 1337159951, 1337159945, 1337159943, 1337159941, 1337159939, 1337159761, 1337159758, 1337159664, 1337159622, 1337159602, 1337159428]} final : False mtd_id 4302 list_pids : [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424] Looping around the photos to save general results len do output : 13 /1337160527.Didn't retrieve data . /1337160523.Didn't retrieve data . /1337160520.Didn't retrieve data . /1337160497.Didn't retrieve data . /1337160490.Didn't retrieve data . /1337160485.Didn't retrieve data . /1337160484.Didn't retrieve data . /1337160443.Didn't retrieve data . /1337160439.Didn't retrieve data . /1337160434.Didn't retrieve data . /1337160431.Didn't retrieve data . /1337160427.Didn't retrieve data . /1337160424.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, '2580255') ('4302', '20485950', '1337160527', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160523', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160520', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160497', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160490', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160485', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160484', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160443', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160439', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160434', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160431', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160427', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160424', None, None, None, None, None, '2580255') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '20485950', '1337160527', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160523', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160520', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160497', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160490', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160485', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160484', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160443', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160439', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160434', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160431', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160427', '0.03884036569551031', None, None, None, None, '2580255'), ('4302', '20485950', '1337160424', '0.03884036569551031', None, None, None, None, '2580255')] time used for this insertion : 0.013643980026245117 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07109594345092773 time spend to save output : 0.014403820037841797 total time spend for step 2 : 0.08549976348876953 step3:velours_tree Wed Feb 12 18:58:31 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 : {20485950: [{'autre_refus': 20485978, 'metal': 20485979, 'plastique': 20485980, 'Carton_gris': 20485981, 'papier': 20485982, 'flou': 20485983, 'Teint_Dans_La_Masse': 20485984, 'mal_croppe': 20485985, 'Carton_brun': 20485986, 'cartonnette': 20485987, 'environnement': 20485988, 'kraft': 20485989}]} input_args_next_step : {20485950: ()} output_args : {20485950: [{'autre_refus': 20485978, 'metal': 20485979, 'plastique': 20485980, 'Carton_gris': 20485981, 'papier': 20485982, 'flou': 20485983, 'Teint_Dans_La_Masse': 20485984, 'mal_croppe': 20485985, 'Carton_brun': 20485986, 'cartonnette': 20485987, 'environnement': 20485988, 'kraft': 20485989}]} args : 20485950 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'autre_refus': 20485978, 'metal': 20485979, 'plastique': 20485980, 'Carton_gris': 20485981, 'papier': 20485982, 'flou': 20485983, 'Teint_Dans_La_Masse': 20485984, 'mal_croppe': 20485985, 'Carton_brun': 20485986, 'cartonnette': 20485987, 'environnement': 20485988, 'kraft': 20485989},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20485950) 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([20485950]) 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.3145263195037842 time spend to save output : 7.557868957519531e-05 total time spend for step 3 : 0.3146018981933594 step4:send_mail_cod Wed Feb 12 18:58:31 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 : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} input_args_next_step : {1337160527: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160527 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160523 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160520 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160497 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160490 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160485 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160484 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160443 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160439 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160434 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160431 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160427 depend.output_id : 0 input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ()} output_args : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',)} args : 1337160424 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 : {20485950: [{'autre_refus': 20485978, 'metal': 20485979, 'plastique': 20485980, 'Carton_gris': 20485981, 'papier': 20485982, 'flou': 20485983, 'Teint_Dans_La_Masse': 20485984, 'mal_croppe': 20485985, 'Carton_brun': 20485986, 'cartonnette': 20485987, 'environnement': 20485988, 'kraft': 20485989}]} input_args_next_step : {1337160527: ('0.03884036569551031',), 1337160523: ('0.03884036569551031',), 1337160520: ('0.03884036569551031',), 1337160497: ('0.03884036569551031',), 1337160490: ('0.03884036569551031',), 1337160485: ('0.03884036569551031',), 1337160484: ('0.03884036569551031',), 1337160443: ('0.03884036569551031',), 1337160439: ('0.03884036569551031',), 1337160434: ('0.03884036569551031',), 1337160431: ('0.03884036569551031',), 1337160427: ('0.03884036569551031',), 1337160424: ('0.03884036569551031',), 20485950: ()} output_args : {20485950: [{'autre_refus': 20485978, 'metal': 20485979, 'plastique': 20485980, 'Carton_gris': 20485981, 'papier': 20485982, 'flou': 20485983, 'Teint_Dans_La_Masse': 20485984, 'mal_croppe': 20485985, 'Carton_brun': 20485986, 'cartonnette': 20485987, 'environnement': 20485988, 'kraft': 20485989}]} args : 20485950 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 :14, first value : ('0.03884036569551031',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20485950) 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 ph WHERE photo_id IN (1337160527,1337160523,1337160520,1337160497,1337160490,1337160485,1337160484,1337160443,1337160439,1337160434,1337160431,1337160427,1337160424) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1337160424 begin to download photo : 1337160434 begin to download photo : 1337160484 begin to download photo : 1337160497 begin to download photo : 1337160527 download finish for photo 1337160527 download finish for photo 1337160424 begin to download photo : 1337160427 download finish for photo 1337160484 begin to download photo : 1337160485 download finish for photo 1337160497 begin to download photo : 1337160520 download finish for photo 1337160434 begin to download photo : 1337160439 download finish for photo 1337160427 begin to download photo : 1337160431 download finish for photo 1337160485 begin to download photo : 1337160490 download finish for photo 1337160520 begin to download photo : 1337160523 download finish for photo 1337160439 begin to download photo : 1337160443 download finish for photo 1337160431 download finish for photo 1337160490 download finish for photo 1337160523 download finish for photo 1337160443 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P20485950_12-02-2025_18_58_31.pdf 20485978 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485978 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337160283: '1739382673_4156357_1337159943_2149086e76bce1e741ac0c675057b236_rle_crop_3672094176_0.png', 1337160349: '1739382774_4158677_1337160056_a0c9a2959d3dcf9b9843d3c199baf6de_rle_crop_3672094851_0.png', 1337160350: '1739382774_4158677_1337160050_b0d9520b9ea0b8c30c6c539681eeea78_rle_crop_3672094872_0.png', 1337160447: '1739382913_4159956_1337160339_83c012da915723156090b1a570467b10_rle_crop_3672096120_0.png', 1337160448: '1739382913_4159956_1337160332_4eee09ea95bade926f0a201e941b048f_rle_crop_3672096319_0.png', 1337160532: '1739383033_4162410_1337160385_342e93ac771471e55ee4812ed39d3396_rle_crop_3672102197_0.png', 1337160533: '1739383033_4162410_1337160385_342e93ac771471e55ee4812ed39d3396_rle_crop_3672102203_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/5f964e55fd81b7d8e74092f6b220e54b_31584874.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/a81d161de1ddf0668fb09fa071bf5421_6984954.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/75fadab465e1a9c4853f176d48dff15f_1952158.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/d1dcce80b6a2aacb5d1aa8b22015ae57_69004704.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/b93dc1d2e76d795335fcebe512e736e0_43965708.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/68e5f9018ebc0317bcc7ae772fc73998_88978770.png change filename to text .imagette204859781739383111/ imagette204859781739383111/1739382774_4158677_1337160056_a0c9a2959d3dcf9b9843d3c199baf6de_rle_crop_3672094851_0.png.png imagette204859781739383111/1739383033_4162410_1337160385_342e93ac771471e55ee4812ed39d3396_rle_crop_3672102203_0.png.png imagette204859781739383111/1739382673_4156357_1337159943_2149086e76bce1e741ac0c675057b236_rle_crop_3672094176_0.png.png imagette204859781739383111/1739382774_4158677_1337160050_b0d9520b9ea0b8c30c6c539681eeea78_rle_crop_3672094872_0.png.png imagette204859781739383111/1739383033_4162410_1337160385_342e93ac771471e55ee4812ed39d3396_rle_crop_3672102197_0.png.png imagette204859781739383111/1739382913_4159956_1337160339_83c012da915723156090b1a570467b10_rle_crop_3672096120_0.png.png imagette204859781739383111/1739382913_4159956_1337160332_4eee09ea95bade926f0a201e941b048f_rle_crop_3672096319_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/00a2adfb896e71476f72aa62c30b330c_74226031.png imagette204859781739383111 20485979 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485979 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337160298: '1739382673_4156357_1337159939_a3ba9b00ca7308dbd8d80c5e723cc083_rle_crop_3672094220_0.png'} change filename to text .imagette204859791739383112/ imagette204859791739383112/1739382673_4156357_1337159939_a3ba9b00ca7308dbd8d80c5e723cc083_rle_crop_3672094220_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/938884c35753efb4e76e73a0130b4773_82441166.png imagette204859791739383112 20485980 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485980 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337160295: '1739382673_4156357_1337159941_112cf831d68396de5c3aff06b81a59b8_rle_crop_3672094197_0.png', 1337160346: '1739382791_4158840_1337160148_420ed09e746794b7f68411416486066d_rle_crop_3672094816_0.png', 1337160358: '1739382774_4158677_1337160060_ef3b4bcaebd3cf66c659b29f2b3d6d53_rle_crop_3672094830_0.png', 1337160359: '1739382774_4158677_1337160056_a0c9a2959d3dcf9b9843d3c199baf6de_rle_crop_3672094854_0.png', 1337160360: '1739382774_4158677_1337160050_b0d9520b9ea0b8c30c6c539681eeea78_rle_crop_3672094875_0.png', 1337160496: '1739382954_4160278_1337160289_5a552d201c10849c4112ecc8e31a3ec9_rle_crop_3672100820_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/0365f8fb4a6cfbf9aa8027d62ff962e0_36595172.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/ddfd86eb63f980dd60b29ee2493cee00_25529619.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/1dc27dd817b1f42c67c41b84261735cc_45822155.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/0452cc9bd928685bf8f817f044aaa858_9100450.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/fed5b987f39a57bd673b12039b6c440f_17673932.png change filename to text .imagette204859801739383112/ imagette204859801739383112/1739382791_4158840_1337160148_420ed09e746794b7f68411416486066d_rle_crop_3672094816_0.png.png imagette204859801739383112/1739382774_4158677_1337160050_b0d9520b9ea0b8c30c6c539681eeea78_rle_crop_3672094875_0.png.png imagette204859801739383112/1739382673_4156357_1337159941_112cf831d68396de5c3aff06b81a59b8_rle_crop_3672094197_0.png.png imagette204859801739383112/1739382774_4158677_1337160060_ef3b4bcaebd3cf66c659b29f2b3d6d53_rle_crop_3672094830_0.png.png imagette204859801739383112/1739382774_4158677_1337160056_a0c9a2959d3dcf9b9843d3c199baf6de_rle_crop_3672094854_0.png.png imagette204859801739383112/1739382954_4160278_1337160289_5a552d201c10849c4112ecc8e31a3ec9_rle_crop_3672100820_0.png.png imagette204859831739383112/ imagette204859851739383112/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/28df5c75a010347ab776cfa9eee79f21_35314507.png imagette204859801739383112 20485983 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485983 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204859831739383112 20485985 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485985 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204859851739383112 20485987 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485987 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337160290: '1739382673_4156357_1337159995_addb55effa9449e5983ed74d6779300a_rle_crop_3672094116_0.png', 1337160291: '1739382673_4156357_1337159945_33556439dd39df4ff19315b7aa318f62_rle_crop_3672094150_0.png', 1337160292: '1739382673_4156357_1337159943_2149086e76bce1e741ac0c675057b236_rle_crop_3672094183_0.png', 1337160293: '1739382673_4156357_1337159943_2149086e76bce1e741ac0c675057b236_rle_crop_3672094175_0.png', 1337160351: '1739382774_4158677_1337160050_b0d9520b9ea0b8c30c6c539681eeea78_rle_crop_3672094870_0.png', 1337160475: '1739382934_4160132_1337160243_e4edc3a42529ef3582a41c2a76768b80_rle_crop_3672096474_0.png', 1337160476: '1739382934_4160132_1337160204_7cb11a81fac3a812d4219d6a5d4df064_rle_crop_3672096503_0.png', 1337160536: '1739383033_4162410_1337160385_342e93ac771471e55ee4812ed39d3396_rle_crop_3672102208_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f504c3f883fc91448e05ad7f218c9004_97477360.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/90d47244b2b0a8b86f7721c5d33e8f4a_80960404.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/781d889f8452f4f685c15ef9424c5893_93639458.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/6aa965f149bfa6095218d19843913682_60181682.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/8a1912bdd689229ea97e4f8792a10449_45208811.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/6c097270cd20f48f29608ffb8c6a9cc0_87958271.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/41955c890dfd13f9a90fc6e4a0089bbe_92203760.png change filename to text .imagette204859871739383112/ imagette204859871739383112/1739382673_4156357_1337159943_2149086e76bce1e741ac0c675057b236_rle_crop_3672094175_0.png.png imagette204859871739383112/1739382673_4156357_1337159995_addb55effa9449e5983ed74d6779300a_rle_crop_3672094116_0.png.png imagette204859871739383112/1739382774_4158677_1337160050_b0d9520b9ea0b8c30c6c539681eeea78_rle_crop_3672094870_0.png.png imagette204859871739383112/1739383033_4162410_1337160385_342e93ac771471e55ee4812ed39d3396_rle_crop_3672102208_0.png.png imagette204859871739383112/1739382934_4160132_1337160243_e4edc3a42529ef3582a41c2a76768b80_rle_crop_3672096474_0.png.png imagette204859871739383112/1739382934_4160132_1337160204_7cb11a81fac3a812d4219d6a5d4df064_rle_crop_3672096503_0.png.png imagette204859871739383112/1739382673_4156357_1337159945_33556439dd39df4ff19315b7aa318f62_rle_crop_3672094150_0.png.png imagette204859871739383112/1739382673_4156357_1337159943_2149086e76bce1e741ac0c675057b236_rle_crop_3672094183_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/d7524030ce078bd72587dc0ad566e7c6_11931022.png imagette204859871739383112 20485989 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485989 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337160347: '1739382791_4158840_1337160128_1e1389e6811c9d014f1aeafd9ac50924_rle_crop_3672094886_0.png', 1337160479: '1739382934_4160132_1337160304_addc71d5874007dc339fbb7b5df25611_rle_crop_3672096458_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f6909559e3f2b98823f2415f9a6750c2_8220185.png change filename to text .imagette204859891739383113/ imagette204859891739383113/1739382934_4160132_1337160304_addc71d5874007dc339fbb7b5df25611_rle_crop_3672096458_0.png.png imagette204859891739383113/1739382791_4158840_1337160128_1e1389e6811c9d014f1aeafd9ac50924_rle_crop_3672094886_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f4c2a5269421709f09c24c476885a837_76176948.png imagette204859891739383113 20485981 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485981 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337160284: '1739382673_4156357_1337159995_addb55effa9449e5983ed74d6779300a_rle_crop_3672094122_0.png', 1337160285: '1739382673_4156357_1337159945_33556439dd39df4ff19315b7aa318f62_rle_crop_3672094151_0.png', 1337160286: '1739382673_4156357_1337159939_a3ba9b00ca7308dbd8d80c5e723cc083_rle_crop_3672094218_0.png', 1337160287: '1739382673_4156357_1337159939_a3ba9b00ca7308dbd8d80c5e723cc083_rle_crop_3672094216_0.png', 1337160342: '1739382791_4158840_1337160128_1e1389e6811c9d014f1aeafd9ac50924_rle_crop_3672094884_0.png', 1337160449: '1739382913_4159956_1337160337_ae270449fad6bce8931bb522f4caaa90_rle_crop_3672096253_0.png', 1337160450: '1739382913_4159956_1337160334_6adfb26d85afe2ccb56ecbd28269cedf_rle_crop_3672096266_0.png', 1337160451: '1739382913_4159956_1337160334_6adfb26d85afe2ccb56ecbd28269cedf_rle_crop_3672096268_0.png', 1337160473: '1739382934_4160132_1337160239_b32fceb4d5c713c2f30ae65fb5608f84_rle_crop_3672096489_0.png', 1337160492: '1739382954_4160278_1337160340_06b81aa4d16fbfdcd7e97f360501118d_rle_crop_3672096545_0.png', 1337160493: '1739382954_4160278_1337160296_c8bfb80aec7ca11ae698504beb43ad4a_rle_crop_3672100740_0.png', 1337160534: '1739383033_4162410_1337160385_342e93ac771471e55ee4812ed39d3396_rle_crop_3672102198_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/bfb98c1802b66da972e4dc8b9ed71ee6_10375254.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/af1680820ab729cab6d6ca732d9478bd_57203298.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/c77cfa1fed9709256930866bcf4eb125_60469461.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/873ac6455753d6153b6198c10f6cbc41_76673370.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/21ad2b55e314ac27fa0ce375cfc6c53a_40601246.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/c8d37570bd8e94c0602fc1da770e750f_75374692.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/a5b06f85b719ae8687fac241bfc31b4d_6553068.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/32c3eb2540ee6597a2cb9f3e8cb34075_3577205.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/e5ce240337e3ac69e2d7fa011fa3fa84_326349.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/9c7d24801038415e36f200943618e966_54919381.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/7e029395f1807314f5c5e18aeae66987_40437681.png change filename to text .imagette204859811739383113/ imagette204859811739383113/1739382791_4158840_1337160128_1e1389e6811c9d014f1aeafd9ac50924_rle_crop_3672094884_0.png.png imagette204859811739383113/1739382913_4159956_1337160334_6adfb26d85afe2ccb56ecbd28269cedf_rle_crop_3672096266_0.png.png imagette204859811739383113/1739383033_4162410_1337160385_342e93ac771471e55ee4812ed39d3396_rle_crop_3672102198_0.png.png imagette204859811739383113/1739382954_4160278_1337160296_c8bfb80aec7ca11ae698504beb43ad4a_rle_crop_3672100740_0.png.png imagette204859811739383113/1739382673_4156357_1337159945_33556439dd39df4ff19315b7aa318f62_rle_crop_3672094151_0.png.png imagette204859811739383113/1739382954_4160278_1337160340_06b81aa4d16fbfdcd7e97f360501118d_rle_crop_3672096545_0.png.png imagette204859811739383113/1739382673_4156357_1337159939_a3ba9b00ca7308dbd8d80c5e723cc083_rle_crop_3672094216_0.png.png imagette204859811739383113/1739382673_4156357_1337159939_a3ba9b00ca7308dbd8d80c5e723cc083_rle_crop_3672094218_0.png.png imagette204859811739383113/1739382913_4159956_1337160334_6adfb26d85afe2ccb56ecbd28269cedf_rle_crop_3672096268_0.png.png imagette204859811739383113/1739382673_4156357_1337159995_addb55effa9449e5983ed74d6779300a_rle_crop_3672094122_0.png.png imagette204859811739383113/1739382913_4159956_1337160337_ae270449fad6bce8931bb522f4caaa90_rle_crop_3672096253_0.png.png imagette204859811739383113/1739382934_4160132_1337160239_b32fceb4d5c713c2f30ae65fb5608f84_rle_crop_3672096489_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/9713b746a9962725aae340902b388fb0_39731867.png imagette204859811739383113 20485984 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485984 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337160280: '1739382673_4156357_1337159945_33556439dd39df4ff19315b7aa318f62_rle_crop_3672094153_0.png', 1337160281: '1739382673_4156357_1337159943_2149086e76bce1e741ac0c675057b236_rle_crop_3672094185_0.png', 1337160282: '1739382673_4156357_1337159941_112cf831d68396de5c3aff06b81a59b8_rle_crop_3672094200_0.png', 1337160344: '1739382774_4158677_1337160048_9385abd7d034deda670683997fd197aa_rle_crop_3672094904_0.png', 1337160345: '1739382774_4158677_1337160048_9385abd7d034deda670683997fd197aa_rle_crop_3672094902_0.png', 1337160444: '1739382913_4159956_1337160337_ae270449fad6bce8931bb522f4caaa90_rle_crop_3672096256_0.png', 1337160445: '1739382913_4159956_1337160334_6adfb26d85afe2ccb56ecbd28269cedf_rle_crop_3672096270_0.png', 1337160446: '1739382913_4159956_1337160334_6adfb26d85afe2ccb56ecbd28269cedf_rle_crop_3672096273_0.png', 1337160470: '1739382934_4160132_1337160239_b32fceb4d5c713c2f30ae65fb5608f84_rle_crop_3672096491_0.png', 1337160471: '1739382934_4160132_1337160239_b32fceb4d5c713c2f30ae65fb5608f84_rle_crop_3672096490_0.png', 1337160472: '1739382934_4160132_1337160239_b32fceb4d5c713c2f30ae65fb5608f84_rle_crop_3672096488_0.png', 1337160488: '1739382954_4160278_1337160289_5a552d201c10849c4112ecc8e31a3ec9_rle_crop_3672100814_0.png', 1337160489: '1739382954_4160278_1337160289_5a552d201c10849c4112ecc8e31a3ec9_rle_crop_3672100815_0.png', 1337160531: '1739383033_4162410_1337160385_342e93ac771471e55ee4812ed39d3396_rle_crop_3672102206_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/9454a6ab3db955e7e9f80e2632630d66_69502909.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/a0e27ef7de22893b061f6ec85deecace_86238789.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/015a354f83851101611310d9c993a14c_31747829.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/2a1fc7c027078a48b958100314d3e1ed_79891849.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/e45f59f7ef39ebe46d42474acfd1379b_54173377.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f1973c668dcc0875440917e78db130fe_60476805.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/1a2a0b2d47e8b594d3f4e587ebd5f007_66844251.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/fdcc69bb1550a43ec8c61321f2715519_3374310.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/c99c32af089b6d51d8e6cc4a6e184c16_68808924.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/48250bb383246e7e09789eb4d1935e3d_97777220.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/4d903124daea01873951e0e18797009d_53198815.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/5e9fe0e9c9d8fe1de4bc5131fabc6bb2_58015436.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f39801867d9a74835b61439172c75b39_79611848.png change filename to text .imagette204859841739383113/ imagette204859841739383113/1739382913_4159956_1337160334_6adfb26d85afe2ccb56ecbd28269cedf_rle_crop_3672096273_0.png.png imagette204859841739383113/1739382673_4156357_1337159941_112cf831d68396de5c3aff06b81a59b8_rle_crop_3672094200_0.png.png imagette204859841739383113/1739382954_4160278_1337160289_5a552d201c10849c4112ecc8e31a3ec9_rle_crop_3672100814_0.png.png imagette204859841739383113/1739383033_4162410_1337160385_342e93ac771471e55ee4812ed39d3396_rle_crop_3672102206_0.png.png imagette204859841739383113/1739382934_4160132_1337160239_b32fceb4d5c713c2f30ae65fb5608f84_rle_crop_3672096490_0.png.png imagette204859841739383113/1739382774_4158677_1337160048_9385abd7d034deda670683997fd197aa_rle_crop_3672094902_0.png.png imagette204859841739383113/1739382913_4159956_1337160337_ae270449fad6bce8931bb522f4caaa90_rle_crop_3672096256_0.png.png imagette204859841739383113/1739382673_4156357_1337159945_33556439dd39df4ff19315b7aa318f62_rle_crop_3672094153_0.png.png imagette204859841739383113/1739382774_4158677_1337160048_9385abd7d034deda670683997fd197aa_rle_crop_3672094904_0.png.png imagette204859841739383113/1739382913_4159956_1337160334_6adfb26d85afe2ccb56ecbd28269cedf_rle_crop_3672096270_0.png.png imagette204859841739383113/1739382934_4160132_1337160239_b32fceb4d5c713c2f30ae65fb5608f84_rle_crop_3672096488_0.png.png imagette204859841739383113/1739382934_4160132_1337160239_b32fceb4d5c713c2f30ae65fb5608f84_rle_crop_3672096491_0.png.png imagette204859841739383113/1739382673_4156357_1337159943_2149086e76bce1e741ac0c675057b236_rle_crop_3672094185_0.png.png imagette204859841739383113/1739382954_4160278_1337160289_5a552d201c10849c4112ecc8e31a3ec9_rle_crop_3672100815_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/d0cd50bc5af8e4f44d638cd60a7cb686_87069996.png imagette204859841739383113 20485986 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485986 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337160294: '1739382673_4156357_1337159951_5682535fcc862d493bebe741bdedc199_rle_crop_3672094141_0.png', 1337160353: '1739382774_4158677_1337160056_a0c9a2959d3dcf9b9843d3c199baf6de_rle_crop_3672094853_0.png', 1337160354: '1739382774_4158677_1337160050_b0d9520b9ea0b8c30c6c539681eeea78_rle_crop_3672094874_0.png', 1337160355: '1739382774_4158677_1337160048_9385abd7d034deda670683997fd197aa_rle_crop_3672094905_0.png', 1337160477: '1739382934_4160132_1337160239_b32fceb4d5c713c2f30ae65fb5608f84_rle_crop_3672096492_0.png', 1337160495: '1739382954_4160278_1337160296_c8bfb80aec7ca11ae698504beb43ad4a_rle_crop_3672100743_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/dc989b992338d8ad7cef370a76d2458e_42715569.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/b0001dab8825119b66bf24d9c6b0abeb_59122635.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/614d1a07cfa4c69942acd1f8d0f3336b_2238205.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/a0e8a464456c6dd85ba84196b0449412_10657393.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/b96ec49f83224230641c759b36f3cbfb_98557757.png change filename to text .imagette204859861739383114/ imagette204859861739383114/1739382934_4160132_1337160239_b32fceb4d5c713c2f30ae65fb5608f84_rle_crop_3672096492_0.png.png imagette204859861739383114/1739382774_4158677_1337160056_a0c9a2959d3dcf9b9843d3c199baf6de_rle_crop_3672094853_0.png.png imagette204859861739383114/1739382673_4156357_1337159951_5682535fcc862d493bebe741bdedc199_rle_crop_3672094141_0.png.png imagette204859861739383114/1739382774_4158677_1337160048_9385abd7d034deda670683997fd197aa_rle_crop_3672094905_0.png.png imagette204859861739383114/1739382954_4160278_1337160296_c8bfb80aec7ca11ae698504beb43ad4a_rle_crop_3672100743_0.png.png imagette204859861739383114/1739382774_4158677_1337160050_b0d9520b9ea0b8c30c6c539681eeea78_rle_crop_3672094874_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/9097153cf1581089862f682442fc126e_38050006.png imagette204859861739383114 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20485950 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20485990,20485991,20485992,20485993,20485994,20485995,20485996,20485997,20485998,20485999,20486000,20486001?tags=autre_refus,metal,plastique,Carton_gris,papier,flou,Teint_Dans_La_Masse,mal_croppe,Carton_brun,cartonnette,environnement,kraft your option no_mail is active, we will not send the real mail to your client args[1337160527] : ('0.03884036569551031',) no score found for photo 1337160527 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160523] : ('0.03884036569551031',) no score found for photo 1337160523 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160520] : ('0.03884036569551031',) no score found for photo 1337160520 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160497] : ('0.03884036569551031',) no score found for photo 1337160497 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160490] : ('0.03884036569551031',) no score found for photo 1337160490 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160485] : ('0.03884036569551031',) no score found for photo 1337160485 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160484] : ('0.03884036569551031',) no score found for photo 1337160484 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160443] : ('0.03884036569551031',) no score found for photo 1337160443 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160439] : ('0.03884036569551031',) no score found for photo 1337160439 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160434] : ('0.03884036569551031',) no score found for photo 1337160434 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160431] : ('0.03884036569551031',) no score found for photo 1337160431 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160427] : ('0.03884036569551031',) no score found for photo 1337160427 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com args[1337160424] : ('0.03884036569551031',) no score found for photo 1337160424 apple ('0.03884036569551031',) We are sending mail with results at report@fotonower.com refus_total : 0.03884036569551031 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485950 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_P20485950_12-02-2025_18_58_31.pdf results_Auto_P20485950_12-02-2025_18_58_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20485950_12-02-2025_18_58_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','20485950','results_Auto_P20485950_12-02-2025_18_58_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20485950_12-02-2025_18_58_31.pdf','pdf','','0.28','0.03884036569551031') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20485950]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424] map_info['map_portfolio_photo'] : {20485950: [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424, 1337160387, 1337160385, 1337160383, 1337160382, 1337160340, 1337160339, 1337160337, 1337160334, 1337160332, 1337160304, 1337160302, 1337160299, 1337160296, 1337160289, 1337160251, 1337160243, 1337160239, 1337160204, 1337160197, 1337160155, 1337160148, 1337160140, 1337160128, 1337160124, 1337160066, 1337160062, 1337160060, 1337160056, 1337160050, 1337160048, 1337159995, 1337159993, 1337159992, 1337159960, 1337159951, 1337159945, 1337159943, 1337159941, 1337159939, 1337159761, 1337159758, 1337159664, 1337159622, 1337159602, 1337159428]} final : False mtd_id 4302 list_pids : [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424] 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, '2580255') ('4302', '20485950', '1337160527', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160523', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160520', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160497', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160490', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160485', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160484', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160443', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160439', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160434', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160431', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160427', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160424', None, None, None, None, None, '2580255') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '20485950', '1337160527', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160523', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160520', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160497', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160490', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160485', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160484', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160443', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160439', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160434', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160431', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160427', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160424', None, None, None, None, None, '2580255')] time used for this insertion : 0.013891935348510742 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.578980207443237 time spend to save output : 0.014221668243408203 total time spend for step 4 : 4.5932018756866455 step5:split_time_score Wed Feb 12 18:58:36 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 : ['20485950'] 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 : [('20485950',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20485950) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1337160527: {'path': 'temp/1739383111_434711_1337160527_196c3364877cba032bfd9e7efc6ed582.jpg', 'extension': 'jpg'}, 1337160424: {'path': 'temp/1739383111_434711_1337160424_90b32fc02b3a0396a0a490b11a42f9b6.jpg', 'extension': 'jpg'}, 1337160427: {'path': 'temp/1739383111_434711_1337160427_c2a42aad994806b41a412dfe87c18f7d.jpg', 'extension': 'jpg'}, 1337160431: {'path': 'temp/1739383111_434711_1337160431_7f7c6fb52619c4f90b15db5507bf5e1b.jpg', 'extension': 'jpg'}, 1337160484: {'path': 'temp/1739383111_434711_1337160484_34c50f1fe20d6d2ed4fb8b4ad752e1ee.jpg', 'extension': 'jpg'}, 1337160485: {'path': 'temp/1739383111_434711_1337160485_3ef2d4cdfda687ed1b6c771756736425.jpg', 'extension': 'jpg'}, 1337160490: {'path': 'temp/1739383111_434711_1337160490_cc8fdca22838aa435d885c50874638cb.jpg', 'extension': 'jpg'}, 1337160497: {'path': 'temp/1739383111_434711_1337160497_4753ced79f023976c2c488dc3f185d11.jpg', 'extension': 'jpg'}, 1337160520: {'path': 'temp/1739383111_434711_1337160520_8e46ec6123c48aa16797d5226a93af61.jpg', 'extension': 'jpg'}, 1337160523: {'path': 'temp/1739383111_434711_1337160523_d86e64f3bdf2ee2e1bcd2b5dff6f781e.jpg', 'extension': 'jpg'}, 1337160434: {'path': 'temp/1739383111_434711_1337160434_d7cfabbeda96cfeb1b1f0e469c2a72a2.jpg', 'extension': 'jpg'}, 1337160439: {'path': 'temp/1739383111_434711_1337160439_0babc17a536bf66f97a0b2b936404d73.jpg', 'extension': 'jpg'}, 1337160443: {'path': 'temp/1739383111_434711_1337160443_10fb1571746f1d26f82b72dd258b9078.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 = 20485950; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 20485950 group by h (('18', 58),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20485950 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 (20485950) 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 (20485950) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12022025 20485950 Nombre de photos uploadées : 58 / 23040 (0%) 12022025 20485950 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 12022025 20485950 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1337159428, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/fbc451575d6006ee113aaa6a5f0d261d.jpg', 'username': None, 'uploaded_at': 1739382367, 'text': 'image_12022025_18_45_04_010145m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337159761, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f16cd110632150fc4dc1ee94e08335b6.jpg', 'username': None, 'uploaded_at': 1739382427, 'text': 'image_12022025_18_45_44_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337159758, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/0386f90264669eb45474e3fea464ee90.jpg', 'username': None, 'uploaded_at': 1739382427, 'text': 'image_12022025_18_46_03_10158.jpg'}, {'photo_id': 1337159664, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/48b9233cdcbb6ff06cfcb51c5dc81bbd.jpg', 'username': None, 'uploaded_at': 1739382427, 'text': 'image_12022025_18_46_14_10147.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027217864990234375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20485950, '2025-02-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1596586,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022264480590820312 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= 1596586 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1596586, 'dashboard_run_id': 1606224, 'mtr_portfolio_id': 20484245, 'dashboard_result_id': 8845272, '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_P20484245_12-02-2025_18_18_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484320, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1606224, 'mtr_portfolio_id': 20484770, 'dashboard_result_id': 8845273, '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_P20484770_12-02-2025_18_39_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484826, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1606224, 'mtr_portfolio_id': 20485637, 'dashboard_result_id': 8845274, '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_P20485637_12-02-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485653, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1606224, 'mtr_portfolio_id': 20485950, 'dashboard_result_id': 8845275, '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_P20485950_12-02-2025_18_57_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485989, '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 = 20484245 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': 2580126, 'mtr_portfolio_id': 20484245, 'created_at': datetime.datetime(2025, 2, 12, 18, 18, 57), 'result': '0.04570174079107659', 'result_long': None, 'result_double': None}] Qualite : 0.04570174079107659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20484245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20484245_12-02-2025_18_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20484245 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_P20484245_12-02-2025_18_18_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484320, 'pht': 3726}}" where mtr_portfolio_id = 20484245 and dashboard_run_id = 1606224 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`=20484245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8845272, 0.04570174079107659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20484245_12-02-2025_18_18_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484320, '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 = 20484770 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': 2580166, 'mtr_portfolio_id': 20484770, 'created_at': datetime.datetime(2025, 2, 12, 18, 38, 59), 'result': '0.03648876724127132', 'result_long': None, 'result_double': None}] Qualite : 0.03648876724127132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20484770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20484770_12-02-2025_18_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20484770 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_P20484770_12-02-2025_18_39_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484826, 'pht': 3726}}" where mtr_portfolio_id = 20484770 and dashboard_run_id = 1606224 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`=20484770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8845273, 0.03648876724127132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20484770_12-02-2025_18_39_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484826, '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 = 20485637 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': 2580225, 'mtr_portfolio_id': 20485637, 'created_at': datetime.datetime(2025, 2, 12, 18, 46, 58), 'result': '0.03748693555991245', 'result_long': None, 'result_double': None}] Qualite : 0.03748693555991245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20485637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20485637_12-02-2025_18_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20485637 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_P20485637_12-02-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485653, 'pht': 3726}}" where mtr_portfolio_id = 20485637 and dashboard_run_id = 1606224 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`=20485637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8845274, 0.03748693555991245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20485637_12-02-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485653, '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 = 20485950 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': 2580255, 'mtr_portfolio_id': 20485950, 'created_at': datetime.datetime(2025, 2, 12, 18, 58, 31), 'result': '0.03884036569551031', 'result_long': None, 'result_double': None}] Qualite : 0.03884036569551031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20485950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20485950_12-02-2025_18_58_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20485950 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_P20485950_12-02-2025_18_58_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485989, 'pht': 3726}}" where mtr_portfolio_id = 20485950 and dashboard_run_id = 1606224 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`=20485950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8845275, 0.03884036569551031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20485950_12-02-2025_18_58_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485989, '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 (20484245,20484770,20485637,20485950) result : ((1337153894,), (1337153898,), (1337153901,), (1337153905,), (1337153960,), (1337153964,), (1337154031,), (1337154035,), (1337154071,), (1337154249,), (1337154253,), (1337154258,), (1337154261,), (1337154266,), (1337154268,), (1337154296,), (1337154300,), (1337154305,), (1337154309,), (1337154312,), (1337154317,), (1337154355,), (1337154362,), (1337154365,), (1337154410,), (1337154414,), (1337154416,), (1337154421,), (1337154423,), (1337154455,), (1337154458,), (1337154460,), (1337154461,), (1337154465,), (1337154466,), (1337154495,), (1337154498,), (1337154501,), (1337154504,), (1337154749,), (1337154762,), (1337154789,), (1337154815,), (1337154818,), (1337155002,), (1337155006,), (1337155013,), (1337155017,), (1337155021,), (1337155024,), (1337155092,), (1337155094,), (1337155097,), (1337155100,), (1337155169,), (1337155149,), (1337155157,), (1337155158,), (1337155161,), (1337155164,), (1337155191,), (1337155194,), (1337155197,), (1337155201,), (1337155207,), (1337155254,), (1337155258,), (1337155261,), (1337155262,), (1337155670,), (1337155734,), (1337155761,), (1337155785,), (1337155801,), (1337155826,), (1337155828,), (1337155831,), (1337155836,), (1337155890,), (1337155898,), (1337155902,), (1337155907,), (1337155914,), (1337155919,), (1337156085,), (1337156138,), (1337156226,), (1337156566,), (1337156568,), (1337156571,), (1337156573,), (1337156609,), (1337156654,), (1337156668,), (1337156672,), (1337156676,), (1337156686,), (1337156692,), (1337156703,), (1337156705,), (1337156708,), (1337156711,), (1337156714,), (1337156716,), (1337156755,), (1337156764,), (1337156769,), (1337156772,), (1337156775,), (1337156778,), (1337156934,), (1337156947,), (1337157080,), (1337157139,), (1337157200,), (1337157203,), (1337157207,), (1337157224,), (1337157234,), (1337157238,), (1337157305,), (1337157308,), (1337157312,), (1337157318,), (1337157329,), (1337158238,), (1337158092,), (1337158231,), (1337158232,), (1337158234,), (1337158235,), (1337158267,), (1337158268,), (1337158347,), (1337158421,), (1337158501,), (1337158695,), (1337158705,), (1337158708,), (1337158714,), (1337158820,), (1337158827,), (1337158939,), (1337159003,), (1337159005,), (1337159009,), (1337159043,), (1337159046,), (1337159050,), (1337159054,), (1337159057,), (1337159083,), (1337159087,), (1337159092,), (1337159095,), (1337159100,), (1337159122,), (1337159142,), (1337159148,), (1337159152,), (1337159175,), (1337159179,), (1337159184,), (1337159187,), (1337159192,), (1337159366,), (1337159371,), (1337159376,), (1337159380,), (1337159384,), (1337159402,), (1337159430,), (1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12022025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20485950]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424] map_info['map_portfolio_photo'] : {20485950: [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424, 1337160387, 1337160385, 1337160383, 1337160382, 1337160340, 1337160339, 1337160337, 1337160334, 1337160332, 1337160304, 1337160302, 1337160299, 1337160296, 1337160289, 1337160251, 1337160243, 1337160239, 1337160204, 1337160197, 1337160155, 1337160148, 1337160140, 1337160128, 1337160124, 1337160066, 1337160062, 1337160060, 1337160056, 1337160050, 1337160048, 1337159995, 1337159993, 1337159992, 1337159960, 1337159951, 1337159945, 1337159943, 1337159941, 1337159939, 1337159761, 1337159758, 1337159664, 1337159622, 1337159602, 1337159428]} final : True mtd_id 4302 list_pids : [1337160527, 1337160523, 1337160520, 1337160497, 1337160490, 1337160485, 1337160484, 1337160443, 1337160439, 1337160434, 1337160431, 1337160427, 1337160424] Looping around the photos to save general results len do output : 1 /20485950Didn'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, '2580255') ('4302', '20485950', '1337160527', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160523', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160520', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160497', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160490', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160485', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160484', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160443', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160439', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160434', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160431', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160427', None, None, None, None, None, '2580255') ('4302', None, None, None, None, None, None, None, '2580255') ('4302', '20485950', '1337160424', None, None, None, None, None, '2580255') 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', None, '20485950', 'None', None, None, None, None, '2580255'), ('4302', '20485950', '1337160527', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160523', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160520', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160497', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160490', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160485', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160484', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160443', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160439', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160434', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160431', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160427', None, None, None, None, None, '2580255'), ('4302', '20485950', '1337160424', None, None, None, None, None, '2580255')] time used for this insertion : 0.015448570251464844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34569597244262695 time spend to save output : 0.015709638595581055 total time spend for step 5 : 0.361405611038208 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 (2580255) 2.44user 2.27system 0:10.40elapsed 45%CPU (0avgtext+0avgdata 159712maxresident)k 288inputs+15816outputs (1major+78976minor)pagefaults 0swaps