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 : 1804979 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 (2613298) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2613298) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809861 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2613298'] with mtr_portfolio_ids : ['20809861'] and first list_photo_ids : [] new path : /proc/1804979/ Name: python3 Umask: 0002 State: R (running) Tgid: 1804979 Ngid: 0 Pid: 1804979 PPid: 1804978 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1804979 NSpid: 1804979 NSpgid: 1801768 NSsid: 1801768 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98164 kB VmRSS: 98164 kB RssAnon: 59768 kB RssFile: 38396 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 47 nonvoluntary_ctxt_switches: 82 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1804979', 'Ngid': '0', 'Pid': '1804979', 'PPid': '1804978', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1804979', 'NSpid': '1804979', 'NSpgid': '1801768', 'NSsid': '1801768', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98164 kB', 'VmRSS': '98164 kB', 'RssAnon': '59768 kB', 'RssFile': '38396 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '47', 'nonvoluntary_ctxt_switches': '82'} ('datou_batch_current', '1804979', '1106844', '0', '1106844', '865592', '98164', b'', 'marlene', '2613298') 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 (20809861) 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 (2613298 ) ) 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 (20809861) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339563526, 'portfolio_id': 20809861}, {'photo_id': 1339563521, 'portfolio_id': 20809861}, {'photo_id': 1339563507, 'portfolio_id': 20809861}, {'photo_id': 1339563498, 'portfolio_id': 20809861}, {'photo_id': 1339563495, 'portfolio_id': 20809861}, {'photo_id': 1339563490, 'portfolio_id': 20809861}, {'photo_id': 1339563459, 'portfolio_id': 20809861}, {'photo_id': 1339563448, 'portfolio_id': 20809861}, {'photo_id': 1339563443, 'portfolio_id': 20809861}, {'photo_id': 1339563440, 'portfolio_id': 20809861}, {'photo_id': 1339563437, 'portfolio_id': 20809861}, {'photo_id': 1339563411, 'portfolio_id': 20809861}, {'photo_id': 1339563404, 'portfolio_id': 20809861}, {'photo_id': 1339563381, 'portfolio_id': 20809861}, {'photo_id': 1339563378, 'portfolio_id': 20809861}, {'photo_id': 1339563375, 'portfolio_id': 20809861}, {'photo_id': 1339563373, 'portfolio_id': 20809861}, {'photo_id': 1339563323, 'portfolio_id': 20809861}, {'photo_id': 1339563321, 'portfolio_id': 20809861}, {'photo_id': 1339563318, 'portfolio_id': 20809861}] map_portfolio_id_photo_id: {20809861: [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318]} ##### 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.014693975448608398 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 25 16:50:58 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 (20809861) 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 : 20809861 get user id for portfolio 20809861 get sub ptf for main ptf 20809861, type 3726 and hashtags ['environnement', 'papier', 'kraft', 'mal_croppe', 'Carton_brun', 'plastique', 'autre_refus', 'Teint_Dans_La_Masse', 'Carton_gris', 'flou', 'metal', 'cartonnette'] 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`=20809861 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','kraft','mal_croppe','Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','metal','cartonnette')) 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`=20809861 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','kraft','mal_croppe','Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[20809861, 20809865, 3726, 0.5, 493012381, 979], [20809861, 20809866, 3726, 0.5, 492668766, 979], [20809861, 20809867, 3726, 0.5, 493202403, 979], [20809861, 20809868, 3726, 0.5, 2107755527, 979], [20809861, 20809869, 3726, 0.5, 2107753024, 979], [20809861, 20809870, 3726, 0.5, 492725882, 979], [20809861, 20809871, 3726, 0.5, 2107752406, 979], [20809861, 20809872, 3726, 0.5, 2107752385, 979], [20809861, 20809873, 3726, 0.5, 2107753020, 979], [20809861, 20809874, 3726, 0.5, 492777938, 979], [20809861, 20809875, 3726, 0.5, 492628673, 979], [20809861, 20809876, 3726, 0.5, 702398920, 979]] 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`=20809861 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','kraft','mal_croppe','Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','metal','cartonnette')) 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`=20809861 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','kraft','mal_croppe','Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20809861, 'sub_port_id': 20809865, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447145, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'papier': {'main_port_id': 20809861, 'sub_port_id': 20809866, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447146, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'kraft': {'main_port_id': 20809861, 'sub_port_id': 20809867, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447147, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'mal_croppe': {'main_port_id': 20809861, 'sub_port_id': 20809868, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447148, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'Carton_brun': {'main_port_id': 20809861, 'sub_port_id': 20809869, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447149, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'plastique': {'main_port_id': 20809861, 'sub_port_id': 20809870, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447150, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'autre_refus': {'main_port_id': 20809861, 'sub_port_id': 20809871, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447151, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20809861, 'sub_port_id': 20809872, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447152, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'Carton_gris': {'main_port_id': 20809861, 'sub_port_id': 20809873, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447153, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'flou': {'main_port_id': 20809861, 'sub_port_id': 20809874, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447154, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'metal': {'main_port_id': 20809861, 'sub_port_id': 20809875, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447155, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}, 'cartonnette': {'main_port_id': 20809861, 'sub_port_id': 20809876, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447156, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20809865 , 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=20809861 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 (20809865) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809866 , 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=20809861 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 (20809866) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809867 , 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=20809861 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 (20809867) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809868 , 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=20809861 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 (20809868) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809869 , 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=20809861 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 (20809869) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809870 , 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=20809861 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 (20809870) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809871 , 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=20809861 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 (20809871) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809872 , 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=20809861 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 (20809872) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809873 , 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=20809861 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 (20809873) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809874 , 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=20809861 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 (20809874) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809875 , 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=20809861 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 (20809875) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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 20809876 , 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=20809861 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 (20809876) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20809861) result : ((1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) 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`=20809861 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','kraft','mal_croppe','Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','metal','cartonnette')) 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`=20809861 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','kraft','mal_croppe','Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_16_45_03_10162_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[20809861, 20809877, 4417, 0.5, 493012381, 979], [20809861, 20809878, 4417, 0.5, 492668766, 979], [20809861, 20809879, 4417, 0.5, 493202403, 979], [20809861, 20809880, 4417, 0.5, 2107755527, 979], [20809861, 20809881, 4417, 0.5, 2107753024, 979], [20809861, 20809882, 4417, 0.5, 492725882, 979], [20809861, 20809883, 4417, 0.5, 2107752406, 979], [20809861, 20809884, 4417, 0.5, 2107752385, 979], [20809861, 20809885, 4417, 0.5, 2107753020, 979], [20809861, 20809886, 4417, 0.5, 492777938, 979], [20809861, 20809887, 4417, 0.5, 492628673, 979], [20809861, 20809888, 4417, 0.5, 702398920, 979]] 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`=20809861 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','kraft','mal_croppe','Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','metal','cartonnette')) 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`=20809861 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','kraft','mal_croppe','Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 20809861, 'sub_port_id': 20809877, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447157, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'papier': {'main_port_id': 20809861, 'sub_port_id': 20809878, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447158, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'kraft': {'main_port_id': 20809861, 'sub_port_id': 20809879, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447159, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'mal_croppe': {'main_port_id': 20809861, 'sub_port_id': 20809880, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447160, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'Carton_brun': {'main_port_id': 20809861, 'sub_port_id': 20809881, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447161, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'plastique': {'main_port_id': 20809861, 'sub_port_id': 20809882, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447162, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'autre_refus': {'main_port_id': 20809861, 'sub_port_id': 20809883, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447163, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'Teint_Dans_La_Masse': {'main_port_id': 20809861, 'sub_port_id': 20809884, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447164, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'Carton_gris': {'main_port_id': 20809861, 'sub_port_id': 20809885, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447165, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'flou': {'main_port_id': 20809861, 'sub_port_id': 20809886, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447166, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'metal': {'main_port_id': 20809861, 'sub_port_id': 20809887, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447167, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}, 'cartonnette': {'main_port_id': 20809861, 'sub_port_id': 20809888, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13447168, 'last_updated_at': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 16, 51), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 16, 51)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809877,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809865 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809878,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809866 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809879,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809867 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809880,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809868 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809881,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809869 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809882,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809870 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809883,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809871 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809884,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809872 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809885,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809873 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809874 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809887,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809875 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20809888,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20809876 lien utilise dans velours : https://www.fotonower.com/velours/20809877,20809878,20809879,20809880,20809881,20809882,20809883,20809884,20809885,20809886,20809887,20809888?tags=environnement,papier,kraft,mal_croppe,Carton_brun,plastique,autre_refus,Teint_Dans_La_Masse,Carton_gris,flou,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20809861]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318] map_info['map_portfolio_photo'] : {20809861: [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318]} final : False mtd_id 4302 list_pids : [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318] Looping around the photos to save general results len do output : 1 /20809861. 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, '2613298') ('4302', '20809861', '1339563526', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563521', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563507', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563498', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563495', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563490', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563459', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563448', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563443', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563440', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563437', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563411', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563404', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563381', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563378', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563375', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563373', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563323', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563321', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563318', None, None, None, None, None, '2613298') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '20809861', "{'environnement': 20809865, 'papier': 20809866, 'kraft': 20809867, 'mal_croppe': 20809868, 'Carton_brun': 20809869, 'plastique': 20809870, 'autre_refus': 20809871, 'Teint_Dans_La_Masse': 20809872, 'Carton_gris': 20809873, 'flou': 20809874, 'metal': 20809875, 'cartonnette': 20809876}", None, None, None, None, '2613298'), ('4302', '20809861', '1339563526', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563521', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563507', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563498', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563495', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563490', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563459', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563448', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563443', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563440', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563437', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563411', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563404', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563381', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563378', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563375', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563373', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563323', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563321', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563318', None, None, None, None, None, '2613298')] time used for this insertion : 0.01671910285949707 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9435501098632812 time spend to save output : 0.017130136489868164 total time spend for step 1 : 1.9606802463531494 step2:final Tue Feb 25 16:51:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20809861) 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 20809861 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339563323,1339563321,1339563318,1339563411,1339563404,1339563381,1339563378,1339563375,1339563373,1339563459,1339563448,1339563443,1339563440,1339563437,1339563526,1339563521,1339563507,1339563498,1339563495,1339563490); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20809861]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} new output for save of step final : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318] map_info['map_portfolio_photo'] : {20809861: [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318]} final : False mtd_id 4302 list_pids : [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318] Looping around the photos to save general results len do output : 20 /1339563526.Didn't retrieve data . /1339563521.Didn't retrieve data . /1339563507.Didn't retrieve data . /1339563498.Didn't retrieve data . /1339563495.Didn't retrieve data . /1339563490.Didn't retrieve data . /1339563459.Didn't retrieve data . /1339563448.Didn't retrieve data . /1339563443.Didn't retrieve data . /1339563440.Didn't retrieve data . /1339563437.Didn't retrieve data . /1339563411.Didn't retrieve data . /1339563404.Didn't retrieve data . /1339563381.Didn't retrieve data . /1339563378.Didn't retrieve data . /1339563375.Didn't retrieve data . /1339563373.Didn't retrieve data . /1339563323.Didn't retrieve data . /1339563321.Didn't retrieve data . /1339563318.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, '2613298') ('4302', '20809861', '1339563526', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563521', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563507', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563498', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563495', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563490', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563459', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563448', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563443', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563440', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563437', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563411', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563404', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563381', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563378', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563375', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563373', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563323', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563321', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563318', None, None, None, None, None, '2613298') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 60 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', '20809861', '1339563526', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563521', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563507', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563498', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563495', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563490', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563459', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563448', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563443', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563440', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563437', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563411', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563404', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563381', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563378', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563375', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563373', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563323', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563321', '0.0', None, None, None, None, '2613298'), ('4302', '20809861', '1339563318', '0.0', None, None, None, None, '2613298')] time used for this insertion : 0.014391422271728516 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.014686107635498047 time spend to save output : 0.015338420867919922 total time spend for step 2 : 0.03002452850341797 step3:velours_tree Tue Feb 25 16:51:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20809861: [{'environnement': 20809865, 'papier': 20809866, 'kraft': 20809867, 'mal_croppe': 20809868, 'Carton_brun': 20809869, 'plastique': 20809870, 'autre_refus': 20809871, 'Teint_Dans_La_Masse': 20809872, 'Carton_gris': 20809873, 'flou': 20809874, 'metal': 20809875, 'cartonnette': 20809876}]} input_args_next_step : {20809861: ()} output_args : {20809861: [{'environnement': 20809865, 'papier': 20809866, 'kraft': 20809867, 'mal_croppe': 20809868, 'Carton_brun': 20809869, 'plastique': 20809870, 'autre_refus': 20809871, 'Teint_Dans_La_Masse': 20809872, 'Carton_gris': 20809873, 'flou': 20809874, 'metal': 20809875, 'cartonnette': 20809876}]} args : 20809861 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 : ({'environnement': 20809865, 'papier': 20809866, 'kraft': 20809867, 'mal_croppe': 20809868, 'Carton_brun': 20809869, 'plastique': 20809870, 'autre_refus': 20809871, 'Teint_Dans_La_Masse': 20809872, 'Carton_gris': 20809873, 'flou': 20809874, 'metal': 20809875, 'cartonnette': 20809876},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20809861) 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([20809861]) 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.33339595794677734 time spend to save output : 7.605552673339844e-05 total time spend for step 3 : 0.33347201347351074 step4:send_mail_cod Tue Feb 25 16:51:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} input_args_next_step : {1339563526: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563526 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563521 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563507 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563498 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563495 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563490 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563459 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563448 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563443 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563440 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563437 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563411 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563404 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563381 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563378 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563375 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563373 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563323 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563321 depend.output_id : 0 input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ()} output_args : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',)} args : 1339563318 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 : {20809861: [{'environnement': 20809865, 'papier': 20809866, 'kraft': 20809867, 'mal_croppe': 20809868, 'Carton_brun': 20809869, 'plastique': 20809870, 'autre_refus': 20809871, 'Teint_Dans_La_Masse': 20809872, 'Carton_gris': 20809873, 'flou': 20809874, 'metal': 20809875, 'cartonnette': 20809876}]} input_args_next_step : {1339563526: ('0.0',), 1339563521: ('0.0',), 1339563507: ('0.0',), 1339563498: ('0.0',), 1339563495: ('0.0',), 1339563490: ('0.0',), 1339563459: ('0.0',), 1339563448: ('0.0',), 1339563443: ('0.0',), 1339563440: ('0.0',), 1339563437: ('0.0',), 1339563411: ('0.0',), 1339563404: ('0.0',), 1339563381: ('0.0',), 1339563378: ('0.0',), 1339563375: ('0.0',), 1339563373: ('0.0',), 1339563323: ('0.0',), 1339563321: ('0.0',), 1339563318: ('0.0',), 20809861: ()} output_args : {20809861: [{'environnement': 20809865, 'papier': 20809866, 'kraft': 20809867, 'mal_croppe': 20809868, 'Carton_brun': 20809869, 'plastique': 20809870, 'autre_refus': 20809871, 'Teint_Dans_La_Masse': 20809872, 'Carton_gris': 20809873, 'flou': 20809874, 'metal': 20809875, 'cartonnette': 20809876}]} args : 20809861 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 :21, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20809861) 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 (1339563526,1339563521,1339563507,1339563498,1339563495,1339563490,1339563459,1339563448,1339563443,1339563440,1339563437,1339563411,1339563404,1339563381,1339563378,1339563375,1339563373,1339563323,1339563321,1339563318) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339563318 begin to download photo : 1339563378 begin to download photo : 1339563440 begin to download photo : 1339563495 download finish for photo 1339563318 begin to download photo : 1339563321 download finish for photo 1339563440 begin to download photo : 1339563443 download finish for photo 1339563378 begin to download photo : 1339563381 download finish for photo 1339563495 begin to download photo : 1339563498 download finish for photo 1339563381 begin to download photo : 1339563404 download finish for photo 1339563498 begin to download photo : 1339563507 download finish for photo 1339563404 begin to download photo : 1339563411 download finish for photo 1339563443 begin to download photo : 1339563448 download finish for photo 1339563321 begin to download photo : 1339563323 download finish for photo 1339563411 begin to download photo : 1339563437 download finish for photo 1339563507 begin to download photo : 1339563521 download finish for photo 1339563323 begin to download photo : 1339563373 download finish for photo 1339563448 begin to download photo : 1339563459 download finish for photo 1339563437 download finish for photo 1339563373 begin to download photo : 1339563375 download finish for photo 1339563459 begin to download photo : 1339563490 download finish for photo 1339563375 download finish for photo 1339563521 begin to download photo : 1339563526 download finish for photo 1339563490 download finish for photo 1339563526 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette208098671740498662/ imagette208098681740498662/ imagette208098701740498662/ imagette208098711740498662/ imagette208098741740498662/ imagette208098751740498662/ imagette208098761740498662/ imagette208098691740498662/ imagette208098721740498662/ imagette208098731740498662/ length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P20809861_25-02-2025_16_51_02.pdf 20809867 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=20809867 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208098671740498662 20809868 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=20809868 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208098681740498662 20809870 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=20809870 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208098701740498662 20809871 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=20809871 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208098711740498662 20809874 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=20809874 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208098741740498662 20809875 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=20809875 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208098751740498662 20809876 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=20809876 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208098761740498662 20809869 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=20809869 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208098691740498662 20809872 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=20809872 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208098721740498662 20809873 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=20809873 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208098731740498662 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20809861 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20809877,20809878,20809879,20809880,20809881,20809882,20809883,20809884,20809885,20809886,20809887,20809888?tags=environnement,papier,kraft,mal_croppe,Carton_brun,plastique,autre_refus,Teint_Dans_La_Masse,Carton_gris,flou,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1339563526] : ('0.0',) no score found for photo 1339563526 We are sending mail with results at report@fotonower.com args[1339563521] : ('0.0',) no score found for photo 1339563521 We are sending mail with results at report@fotonower.com args[1339563507] : ('0.0',) no score found for photo 1339563507 We are sending mail with results at report@fotonower.com args[1339563498] : ('0.0',) no score found for photo 1339563498 We are sending mail with results at report@fotonower.com args[1339563495] : ('0.0',) no score found for photo 1339563495 We are sending mail with results at report@fotonower.com args[1339563490] : ('0.0',) no score found for photo 1339563490 We are sending mail with results at report@fotonower.com args[1339563459] : ('0.0',) no score found for photo 1339563459 We are sending mail with results at report@fotonower.com args[1339563448] : ('0.0',) no score found for photo 1339563448 We are sending mail with results at report@fotonower.com args[1339563443] : ('0.0',) no score found for photo 1339563443 We are sending mail with results at report@fotonower.com args[1339563440] : ('0.0',) no score found for photo 1339563440 We are sending mail with results at report@fotonower.com args[1339563437] : ('0.0',) no score found for photo 1339563437 We are sending mail with results at report@fotonower.com args[1339563411] : ('0.0',) no score found for photo 1339563411 We are sending mail with results at report@fotonower.com args[1339563404] : ('0.0',) no score found for photo 1339563404 We are sending mail with results at report@fotonower.com args[1339563381] : ('0.0',) no score found for photo 1339563381 We are sending mail with results at report@fotonower.com args[1339563378] : ('0.0',) no score found for photo 1339563378 We are sending mail with results at report@fotonower.com args[1339563375] : ('0.0',) no score found for photo 1339563375 We are sending mail with results at report@fotonower.com args[1339563373] : ('0.0',) no score found for photo 1339563373 We are sending mail with results at report@fotonower.com args[1339563323] : ('0.0',) no score found for photo 1339563323 We are sending mail with results at report@fotonower.com args[1339563321] : ('0.0',) no score found for photo 1339563321 We are sending mail with results at report@fotonower.com args[1339563318] : ('0.0',) no score found for photo 1339563318 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=20809861 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_P20809861_25-02-2025_16_51_02.pdf results_Auto_P20809861_25-02-2025_16_51_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20809861_25-02-2025_16_51_02.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','20809861','results_Auto_P20809861_25-02-2025_16_51_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20809861_25-02-2025_16_51_02.pdf','pdf','','0.17','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20809861]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318] map_info['map_portfolio_photo'] : {20809861: [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318]} final : False mtd_id 4302 list_pids : [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318] 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, '2613298') ('4302', '20809861', '1339563526', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563521', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563507', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563498', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563495', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563490', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563459', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563448', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563443', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563440', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563437', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563411', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563404', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563381', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563378', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563375', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563373', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563323', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563321', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563318', None, None, None, None, None, '2613298') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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', '20809861', '1339563526', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563521', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563507', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563498', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563495', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563490', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563459', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563448', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563443', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563440', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563437', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563411', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563404', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563381', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563378', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563375', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563373', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563323', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563321', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563318', None, None, None, None, None, '2613298')] time used for this insertion : 0.016448020935058594 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.765545606613159 time spend to save output : 0.016771793365478516 total time spend for step 4 : 2.7823173999786377 step5:split_time_score Tue Feb 25 16:51:03 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 : ['20809861'] 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 : [('20809861',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20809861) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339563378: {'path': 'temp/1740498661_1804979_1339563378_bd022465db1c8ed672b2d70b88b43145.jpg', 'extension': 'jpg'}, 1339563381: {'path': 'temp/1740498661_1804979_1339563381_6c8c25d9ce9bf6eae14403e42b4526f1.jpg', 'extension': 'jpg'}, 1339563404: {'path': 'temp/1740498661_1804979_1339563404_66e582b118d4ad8a0aa10185c598e2a1.jpg', 'extension': 'jpg'}, 1339563411: {'path': 'temp/1740498661_1804979_1339563411_bd17431f478a4000e1ff116765402be2.jpg', 'extension': 'jpg'}, 1339563437: {'path': 'temp/1740498661_1804979_1339563437_208503b186332323369664f62e7aa659.jpg', 'extension': 'jpg'}, 1339563318: {'path': 'temp/1740498661_1804979_1339563318_7c1f05442cd0b66196b07cc6ed79b228.jpg', 'extension': 'jpg'}, 1339563321: {'path': 'temp/1740498661_1804979_1339563321_6b2f7c69d0c193eb03551d76257a23c3.jpg', 'extension': 'jpg'}, 1339563323: {'path': 'temp/1740498661_1804979_1339563323_c90426034f0f1f8dce46ef494b908d44.jpg', 'extension': 'jpg'}, 1339563373: {'path': 'temp/1740498661_1804979_1339563373_de20c6c2f590695eb54817da29707af5.jpg', 'extension': 'jpg'}, 1339563375: {'path': 'temp/1740498661_1804979_1339563375_633e58e2702a84bf2624c94b77d1e386.jpg', 'extension': 'jpg'}, 1339563440: {'path': 'temp/1740498661_1804979_1339563440_90c7acddca1b05bcecc73ffe82b06597.jpg', 'extension': 'jpg'}, 1339563443: {'path': 'temp/1740498661_1804979_1339563443_8fcf0cee41b8337fb338fc17056155b1.jpg', 'extension': 'jpg'}, 1339563448: {'path': 'temp/1740498661_1804979_1339563448_e51c932263b3be1686e7663e4e371b8d.jpg', 'extension': 'jpg'}, 1339563459: {'path': 'temp/1740498661_1804979_1339563459_3505deae229852525e8e61acace93923.jpg', 'extension': 'jpg'}, 1339563490: {'path': 'temp/1740498661_1804979_1339563490_06b6df6cc0e09e70facef20980eda2de.jpg', 'extension': 'jpg'}, 1339563495: {'path': 'temp/1740498661_1804979_1339563495_b7ea2f8cec0a84a29bad904aca54199e.jpg', 'extension': 'jpg'}, 1339563498: {'path': 'temp/1740498661_1804979_1339563498_dca637bc2a643887c0e85eb2fc4acb43.jpg', 'extension': 'jpg'}, 1339563507: {'path': 'temp/1740498661_1804979_1339563507_7cc89cc919238247e44c8b3983978f71.jpg', 'extension': 'jpg'}, 1339563521: {'path': 'temp/1740498661_1804979_1339563521_e1c91f32a9e01a5c515a186f0d05234d.jpg', 'extension': 'jpg'}, 1339563526: {'path': 'temp/1740498661_1804979_1339563526_52541291ed4555295642c559ed885f20.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 = 20809861; (('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 = 20809861 group by h (('16', 20),) 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=20809861 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 (20809861) 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 (20809861) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25022025 20809861 Nombre de photos uploadées : 20 / 23040 (0%) 25022025 20809861 Nombre de photos taguées (types de déchets): 0 / 20 (0%) 25022025 20809861 Nombre de photos taguées (volume) : 0 / 20 (0%) [{'photo_id': 1339563323, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c90426034f0f1f8dce46ef494b908d44.jpg', 'username': None, 'uploaded_at': 1740498394, 'text': 'image_25022025_16_45_03_10161.jpg'}, {'photo_id': 1339563321, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6b2f7c69d0c193eb03551d76257a23c3.jpg', 'username': None, 'uploaded_at': 1740498394, 'text': 'image_25022025_16_45_13_10141.jpg'}, {'photo_id': 1339563318, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7c1f05442cd0b66196b07cc6ed79b228.jpg', 'username': None, 'uploaded_at': 1740498394, 'text': 'image_25022025_16_45_43_9125.jpg'}, {'photo_id': 1339563411, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/bd17431f478a4000e1ff116765402be2.jpg', 'username': None, 'uploaded_at': 1740498454, 'text': 'image_25022025_16_45_53_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ???????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00121307373046875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20809861, '2025-02-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1621897,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02359318733215332 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= 1621897 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631195, 'mtr_portfolio_id': 20808053, 'dashboard_result_id': 9053649, '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_P20808053_25-02-2025_16_20_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20808081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808092, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631195, 'mtr_portfolio_id': 20808671, 'dashboard_result_id': 9053650, '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_P20808671_25-02-2025_16_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20808758, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631195, 'mtr_portfolio_id': 20809290, 'dashboard_result_id': 9053651, '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_P20809290_25-02-2025_16_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20809319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20809320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20809321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20809322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20809323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20809324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20809325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20809326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20809327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20809328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20809329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20809330, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631195, 'mtr_portfolio_id': 20809861, 'dashboard_result_id': 9053652, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 20808053 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': 2613190, 'mtr_portfolio_id': 20808053, 'created_at': datetime.datetime(2025, 2, 25, 16, 20, 57), 'result': '0.1035640555632312', 'result_long': None, 'result_double': None}] Qualite : 0.1035640555632312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20808053 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20808053_25-02-2025_16_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20808053 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_P20808053_25-02-2025_16_20_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20808081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808092, 'pht': 3726}}" where mtr_portfolio_id = 20808053 and dashboard_run_id = 1631195 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`=20808053 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9053649, 0.1035640555632312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20808053_25-02-2025_16_20_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20808081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808092, '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 = 20808671 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': 2613225, 'mtr_portfolio_id': 20808671, 'created_at': datetime.datetime(2025, 2, 25, 16, 34, 59), 'result': '0.09366429386904061', 'result_long': None, 'result_double': None}] Qualite : 0.09366429386904061 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20808671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20808671_25-02-2025_16_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20808671 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_P20808671_25-02-2025_16_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20808758, 'pht': 3726}}" where mtr_portfolio_id = 20808671 and dashboard_run_id = 1631195 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`=20808671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9053650, 0.09366429386904061, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20808671_25-02-2025_16_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20808758, '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 = 20809290 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': 2613259, 'mtr_portfolio_id': 20809290, 'created_at': datetime.datetime(2025, 2, 25, 16, 47), 'result': '0.07056041486300946', 'result_long': None, 'result_double': None}] Qualite : 0.07056041486300946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20809290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20809290_25-02-2025_16_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20809290 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_P20809290_25-02-2025_16_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20809319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20809320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20809321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20809322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20809323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20809324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20809325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20809326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20809327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20809328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20809329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20809330, 'pht': 3726}}" where mtr_portfolio_id = 20809290 and dashboard_run_id = 1631195 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`=20809290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9053651, 0.07056041486300946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20809290_25-02-2025_16_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20809319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20809320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20809321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20809322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20809323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20809324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20809325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20809326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20809327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20809328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20809329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20809330, '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 = 20809861 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20809861 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20809861 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20809861 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20809861 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20809861 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20809861_25-02-2025_16_51_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20809861 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_P20809861_25-02-2025_16_51_02.pdf'}" where mtr_portfolio_id = 20809861 and dashboard_run_id = 1631195 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20808053,20808671,20809290,20809861) result : ((1339558384,), (1339558387,), (1339558389,), (1339558429,), (1339558433,), (1339558436,), (1339558438,), (1339558446,), (1339558452,), (1339558484,), (1339558487,), (1339558490,), (1339558513,), (1339558516,), (1339558520,), (1339558524,), (1339558528,), (1339558530,), (1339558877,), (1339559147,), (1339559256,), (1339559260,), (1339559263,), (1339559292,), (1339559303,), (1339559311,), (1339559313,), (1339559317,), (1339559705,), (1339559708,), (1339559711,), (1339559720,), (1339559728,), (1339559733,), (1339559748,), (1339559760,), (1339559764,), (1339559768,), (1339559780,), (1339559790,), (1339559793,), (1339559797,), (1339559799,), (1339559800,), (1339559852,), (1339559855,), (1339559858,), (1339559861,), (1339559864,), (1339559866,), (1339559883,), (1339559886,), (1339559889,), (1339559911,), (1339559914,), (1339559918,), (1339559923,), (1339559937,), (1339559940,), (1339560057,), (1339560060,), (1339560086,), (1339560079,), (1339560082,), (1339560085,), (1339560119,), (1339560121,), (1339560123,), (1339560126,), (1339560174,), (1339560184,), (1339560190,), (1339560193,), (1339560195,), (1339560749,), (1339560754,), (1339560761,), (1339560884,), (1339560997,), (1339561049,), (1339561051,), (1339561084,), (1339561086,), (1339561110,), (1339561113,), (1339561115,), (1339561117,), (1339561119,), (1339561121,), (1339561140,), (1339561142,), (1339561144,), (1339561146,), (1339561148,), (1339561149,), (1339561164,), (1339561169,), (1339561173,), (1339561202,), (1339561205,), (1339561207,), (1339561275,), (1339561364,), (1339562006,), (1339562008,), (1339562010,), (1339562015,), (1339562016,), (1339562256,), (1339562291,), (1339562301,), (1339562304,), (1339562347,), (1339562350,), (1339562416,), (1339562426,), (1339562429,), (1339562432,), (1339562435,), (1339562473,), (1339562476,), (1339562480,), (1339562482,), (1339562621,), (1339562609,), (1339562612,), (1339562614,), (1339562616,), (1339562618,), (1339562663,), (1339562666,), (1339562671,), (1339562674,), (1339562713,), (1339562717,), (1339562720,), (1339562724,), (1339562728,), (1339562731,), (1339562748,), (1339562752,), (1339562756,), (1339562759,), (1339562762,), (1339562786,), (1339562825,), (1339562836,), (1339562837,), (1339562881,), (1339562909,), (1339562912,), (1339562944,), (1339562948,), (1339562956,), (1339562959,), (1339562982,), (1339562985,), (1339562987,), (1339562989,), (1339562991,), (1339563021,), (1339563026,), (1339563032,), (1339563035,), (1339563050,), (1339563053,), (1339563054,), (1339563057,), (1339563075,), (1339563078,), (1339563080,), (1339563083,), (1339563086,), (1339563105,), (1339563108,), (1339563110,), (1339563112,), (1339563115,), (1339563143,), (1339563150,), (1339563154,), (1339563158,), (1339563160,), (1339563330,), (1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25022025': {'nb_upload': 20, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20809861]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318] map_info['map_portfolio_photo'] : {20809861: [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318]} final : True mtd_id 4302 list_pids : [1339563526, 1339563521, 1339563507, 1339563498, 1339563495, 1339563490, 1339563459, 1339563448, 1339563443, 1339563440, 1339563437, 1339563411, 1339563404, 1339563381, 1339563378, 1339563375, 1339563373, 1339563323, 1339563321, 1339563318] Looping around the photos to save general results len do output : 1 /20809861Didn'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, '2613298') ('4302', '20809861', '1339563526', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563521', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563507', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563498', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563495', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563490', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563459', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563448', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563443', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563440', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563437', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563411', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563404', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563381', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563378', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563375', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563373', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563323', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563321', None, None, None, None, None, '2613298') ('4302', None, None, None, None, None, None, None, '2613298') ('4302', '20809861', '1339563318', None, None, None, None, None, '2613298') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '20809861', 'None', None, None, None, None, '2613298'), ('4302', '20809861', '1339563526', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563521', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563507', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563498', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563495', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563490', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563459', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563448', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563443', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563440', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563437', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563411', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563404', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563381', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563378', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563375', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563373', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563323', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563321', None, None, None, None, None, '2613298'), ('4302', '20809861', '1339563318', None, None, None, None, None, '2613298')] time used for this insertion : 0.014987945556640625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.30586934089660645 time spend to save output : 0.015297412872314453 total time spend for step 5 : 0.3211667537689209 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 (2613298) 2.30user 2.16system 0:08.86elapsed 50%CPU (0avgtext+0avgdata 159936maxresident)k 512inputs+11336outputs (0major+76514minor)pagefaults 0swaps