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 : 1419669 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 (2813711) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2813711) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22838999 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2813711'] with mtr_portfolio_ids : ['22838999'] and first list_photo_ids : [] new path : /proc/1419669/ Name: python3 Umask: 0002 State: R (running) Tgid: 1419669 Ngid: 0 Pid: 1419669 PPid: 1419668 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1419669 NSpid: 1419669 NSpgid: 1418676 NSsid: 1418676 VmPeak: 1107224 kB VmSize: 1107224 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98152 kB VmRSS: 98152 kB RssAnon: 60176 kB RssFile: 37976 kB RssShmem: 0 kB VmData: 865972 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 548 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 136 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1419669', 'Ngid': '0', 'Pid': '1419669', 'PPid': '1419668', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1419669', 'NSpid': '1419669', 'NSpgid': '1418676', 'NSsid': '1418676', 'VmPeak': '1107224 kB', 'VmSize': '1107224 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98152 kB', 'VmRSS': '98152 kB', 'RssAnon': '60176 kB', 'RssFile': '37976 kB', 'RssShmem': '0 kB', 'VmData': '865972 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '548 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '136'} ('datou_batch_current', '1419669', '1107224', '0', '1107224', '865972', '98152', b'', 'marlene', '2813711') 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 (22838999) 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 (2813711 ) ) 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 (22838999) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357258688, 'portfolio_id': 22838999}, {'photo_id': 1357258683, 'portfolio_id': 22838999}, {'photo_id': 1357258680, 'portfolio_id': 22838999}, {'photo_id': 1357258677, 'portfolio_id': 22838999}, {'photo_id': 1357258669, 'portfolio_id': 22838999}, {'photo_id': 1357258618, 'portfolio_id': 22838999}, {'photo_id': 1357258606, 'portfolio_id': 22838999}, {'photo_id': 1357258578, 'portfolio_id': 22838999}, {'photo_id': 1357258549, 'portfolio_id': 22838999}, {'photo_id': 1357258537, 'portfolio_id': 22838999}, {'photo_id': 1357258357, 'portfolio_id': 22838999}, {'photo_id': 1357258327, 'portfolio_id': 22838999}, {'photo_id': 1357258299, 'portfolio_id': 22838999}, {'photo_id': 1357258010, 'portfolio_id': 22838999}, {'photo_id': 1357258005, 'portfolio_id': 22838999}, {'photo_id': 1357258001, 'portfolio_id': 22838999}] map_portfolio_id_photo_id: {22838999: [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001]} ##### 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.014070272445678711 #### 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 Fri May 9 19:05:27 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 (22838999) 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 : 22838999 get user id for portfolio 22838999 get sub ptf for main ptf 22838999, type 3726 and hashtags ['cartonnette', 'papier', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'plastique', 'Teint_Dans_La_Masse', 'environnement', 'kraft', 'autre_refus', 'flou', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22838999 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','kraft','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22838999 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','kraft','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09052025_19_00_14_10205_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_3726_metal_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)[[22838999, 22839062, 3726, 0.5, 702398920, 979], [22838999, 22839063, 3726, 0.5, 492668766, 979], [22838999, 22839064, 3726, 0.5, 2107755527, 979], [22838999, 22839065, 3726, 0.5, 2107753024, 979], [22838999, 22839066, 3726, 0.5, 2107753020, 979], [22838999, 22839067, 3726, 0.5, 492725882, 979], [22838999, 22839068, 3726, 0.5, 2107752385, 979], [22838999, 22839069, 3726, 0.5, 493012381, 979], [22838999, 22839070, 3726, 0.5, 493202403, 979], [22838999, 22839071, 3726, 0.5, 2107752406, 979], [22838999, 22839072, 3726, 0.5, 492777938, 979], [22838999, 22839073, 3726, 0.5, 492628673, 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`=22838999 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','kraft','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22838999 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','kraft','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22838999, 'sub_port_id': 22839062, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241063, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'papier': {'main_port_id': 22838999, 'sub_port_id': 22839063, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241064, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'mal_croppe': {'main_port_id': 22838999, 'sub_port_id': 22839064, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241065, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'Carton_brun': {'main_port_id': 22838999, 'sub_port_id': 22839065, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241066, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'Carton_gris': {'main_port_id': 22838999, 'sub_port_id': 22839066, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241067, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'plastique': {'main_port_id': 22838999, 'sub_port_id': 22839067, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241068, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22838999, 'sub_port_id': 22839068, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241069, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'environnement': {'main_port_id': 22838999, 'sub_port_id': 22839069, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241070, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'kraft': {'main_port_id': 22838999, 'sub_port_id': 22839070, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241071, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'autre_refus': {'main_port_id': 22838999, 'sub_port_id': 22839071, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241072, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'flou': {'main_port_id': 22838999, 'sub_port_id': 22839072, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241073, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}, 'metal': {'main_port_id': 22838999, 'sub_port_id': 22839073, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241074, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22839062 , 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=22838999 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 (22839062) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839063 , 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=22838999 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 (22839063) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839064 , 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=22838999 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 (22839064) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839065 , 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=22838999 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 (22839065) result : ((1357258818,), (1357258819,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839066 , 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=22838999 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 (22839066) result : ((1357258814,), (1357258815,), (1357258816,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839067 , 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=22838999 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 (22839067) result : ((1357258825,), (1357258826,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839068 , 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=22838999 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 (22839068) result : ((1357258811,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839069 , 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=22838999 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 (22839069) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839070 , 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=22838999 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 (22839070) result : ((1357258834,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839071 , 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=22838999 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 (22839071) result : ((1357258812,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839072 , 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=22838999 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 (22839072) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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 22839073 , 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=22838999 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 (22839073) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22838999) result : ((1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) 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`=22838999 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','kraft','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22838999 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','kraft','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09052025_19_00_14_10205_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_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__09052025_19_00_14_10205_4417_metal_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)[[22838999, 22839074, 4417, 0.5, 702398920, 979], [22838999, 22839075, 4417, 0.5, 492668766, 979], [22838999, 22839076, 4417, 0.5, 2107755527, 979], [22838999, 22839077, 4417, 0.5, 2107753024, 979], [22838999, 22839078, 4417, 0.5, 2107753020, 979], [22838999, 22839079, 4417, 0.5, 492725882, 979], [22838999, 22839080, 4417, 0.5, 2107752385, 979], [22838999, 22839081, 4417, 0.5, 493012381, 979], [22838999, 22839082, 4417, 0.5, 493202403, 979], [22838999, 22839083, 4417, 0.5, 2107752406, 979], [22838999, 22839084, 4417, 0.5, 492777938, 979], [22838999, 22839085, 4417, 0.5, 492628673, 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`=22838999 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','kraft','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22838999 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','mal_croppe','Carton_brun','Carton_gris','plastique','Teint_Dans_La_Masse','environnement','kraft','autre_refus','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22838999, 'sub_port_id': 22839074, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241075, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'papier': {'main_port_id': 22838999, 'sub_port_id': 22839075, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241076, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'mal_croppe': {'main_port_id': 22838999, 'sub_port_id': 22839076, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241077, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'Carton_brun': {'main_port_id': 22838999, 'sub_port_id': 22839077, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241078, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'Carton_gris': {'main_port_id': 22838999, 'sub_port_id': 22839078, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241079, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'plastique': {'main_port_id': 22838999, 'sub_port_id': 22839079, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241080, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22838999, 'sub_port_id': 22839080, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241081, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'environnement': {'main_port_id': 22838999, 'sub_port_id': 22839081, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241082, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'kraft': {'main_port_id': 22838999, 'sub_port_id': 22839082, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241083, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'autre_refus': {'main_port_id': 22838999, 'sub_port_id': 22839083, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241084, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'flou': {'main_port_id': 22838999, 'sub_port_id': 22839084, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241085, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}, 'metal': {'main_port_id': 22838999, 'sub_port_id': 22839085, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15241086, 'last_updated_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 19, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 19, 5, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22839085,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22839073 lien utilise dans velours : https://www.fotonower.com/velours/22839074,22839075,22839076,22839077,22839078,22839079,22839080,22839081,22839082,22839083,22839084,22839085?tags=cartonnette,papier,mal_croppe,Carton_brun,Carton_gris,plastique,Teint_Dans_La_Masse,environnement,kraft,autre_refus,flou,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22838999]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001] map_info['map_portfolio_photo'] : {22838999: [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001]} final : False mtd_id 4302 list_pids : [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001] Looping around the photos to save general results len do output : 1 /22838999. 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, '2813711') ('4302', '22838999', '1357258688', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258683', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258680', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258677', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258669', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258618', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258606', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258578', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258549', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258537', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258357', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258327', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258299', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258010', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258005', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258001', None, None, None, None, None, '2813711') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '22838999', "{'cartonnette': 22839062, 'papier': 22839063, 'mal_croppe': 22839064, 'Carton_brun': 22839065, 'Carton_gris': 22839066, 'plastique': 22839067, 'Teint_Dans_La_Masse': 22839068, 'environnement': 22839069, 'kraft': 22839070, 'autre_refus': 22839071, 'flou': 22839072, 'metal': 22839073}", None, None, None, None, '2813711'), ('4302', '22838999', '1357258688', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258683', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258680', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258677', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258669', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258618', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258606', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258578', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258549', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258537', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258357', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258327', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258299', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258010', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258005', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258001', None, None, None, None, None, '2813711')] time used for this insertion : 0.014916181564331055 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0520529747009277 time spend to save output : 0.015223264694213867 total time spend for step 1 : 2.0672762393951416 step2:final Fri May 9 19:05:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22838999) 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 22838999 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357258010,1357258005,1357258001,1357258357,1357258327,1357258299,1357258618,1357258606,1357258578,1357258549,1357258537,1357258688,1357258683,1357258680,1357258677,1357258669); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22838999]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} new output for save of step final : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001] map_info['map_portfolio_photo'] : {22838999: [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001]} final : False mtd_id 4302 list_pids : [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001] Looping around the photos to save general results len do output : 16 /1357258688.Didn't retrieve data . /1357258683.Didn't retrieve data . /1357258680.Didn't retrieve data . /1357258677.Didn't retrieve data . /1357258669.Didn't retrieve data . /1357258618.Didn't retrieve data . /1357258606.Didn't retrieve data . /1357258578.Didn't retrieve data . /1357258549.Didn't retrieve data . /1357258537.Didn't retrieve data . /1357258357.Didn't retrieve data . /1357258327.Didn't retrieve data . /1357258299.Didn't retrieve data . /1357258010.Didn't retrieve data . /1357258005.Didn't retrieve data . /1357258001.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, '2813711') ('4302', '22838999', '1357258688', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258683', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258680', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258677', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258669', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258618', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258606', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258578', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258549', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258537', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258357', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258327', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258299', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258010', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258005', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258001', None, None, None, None, None, '2813711') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '22838999', '1357258688', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258683', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258680', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258677', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258669', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258618', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258606', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258578', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258549', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258537', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258357', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258327', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258299', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258010', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258005', '0.041048096923141056', None, None, None, None, '2813711'), ('4302', '22838999', '1357258001', '0.041048096923141056', None, None, None, None, '2813711')] time used for this insertion : 0.013514041900634766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.02887892723083496 time spend to save output : 0.01421666145324707 total time spend for step 2 : 0.04309558868408203 step3:velours_tree Fri May 9 19:05:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22838999: [{'cartonnette': 22839062, 'papier': 22839063, 'mal_croppe': 22839064, 'Carton_brun': 22839065, 'Carton_gris': 22839066, 'plastique': 22839067, 'Teint_Dans_La_Masse': 22839068, 'environnement': 22839069, 'kraft': 22839070, 'autre_refus': 22839071, 'flou': 22839072, 'metal': 22839073}]} input_args_next_step : {22838999: ()} output_args : {22838999: [{'cartonnette': 22839062, 'papier': 22839063, 'mal_croppe': 22839064, 'Carton_brun': 22839065, 'Carton_gris': 22839066, 'plastique': 22839067, 'Teint_Dans_La_Masse': 22839068, 'environnement': 22839069, 'kraft': 22839070, 'autre_refus': 22839071, 'flou': 22839072, 'metal': 22839073}]} args : 22838999 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 : ({'cartonnette': 22839062, 'papier': 22839063, 'mal_croppe': 22839064, 'Carton_brun': 22839065, 'Carton_gris': 22839066, 'plastique': 22839067, 'Teint_Dans_La_Masse': 22839068, 'environnement': 22839069, 'kraft': 22839070, 'autre_refus': 22839071, 'flou': 22839072, 'metal': 22839073},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22838999) 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([22838999]) 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.3006575107574463 time spend to save output : 4.363059997558594e-05 total time spend for step 3 : 0.3007011413574219 step4:send_mail_cod Fri May 9 19:05:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} input_args_next_step : {1357258688: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258688 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258683 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258680 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258677 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258669 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258618 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258606 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258578 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258549 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258537 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258357 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258327 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258299 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258010 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258005 depend.output_id : 0 input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ()} output_args : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',)} args : 1357258001 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 : {22838999: [{'cartonnette': 22839062, 'papier': 22839063, 'mal_croppe': 22839064, 'Carton_brun': 22839065, 'Carton_gris': 22839066, 'plastique': 22839067, 'Teint_Dans_La_Masse': 22839068, 'environnement': 22839069, 'kraft': 22839070, 'autre_refus': 22839071, 'flou': 22839072, 'metal': 22839073}]} input_args_next_step : {1357258688: ('0.041048096923141056',), 1357258683: ('0.041048096923141056',), 1357258680: ('0.041048096923141056',), 1357258677: ('0.041048096923141056',), 1357258669: ('0.041048096923141056',), 1357258618: ('0.041048096923141056',), 1357258606: ('0.041048096923141056',), 1357258578: ('0.041048096923141056',), 1357258549: ('0.041048096923141056',), 1357258537: ('0.041048096923141056',), 1357258357: ('0.041048096923141056',), 1357258327: ('0.041048096923141056',), 1357258299: ('0.041048096923141056',), 1357258010: ('0.041048096923141056',), 1357258005: ('0.041048096923141056',), 1357258001: ('0.041048096923141056',), 22838999: ()} output_args : {22838999: [{'cartonnette': 22839062, 'papier': 22839063, 'mal_croppe': 22839064, 'Carton_brun': 22839065, 'Carton_gris': 22839066, 'plastique': 22839067, 'Teint_Dans_La_Masse': 22839068, 'environnement': 22839069, 'kraft': 22839070, 'autre_refus': 22839071, 'flou': 22839072, 'metal': 22839073}]} args : 22838999 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 :17, first value : ('0.041048096923141056',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22838999) 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 (1357258688,1357258683,1357258680,1357258677,1357258669,1357258618,1357258606,1357258578,1357258549,1357258537,1357258357,1357258327,1357258299,1357258010,1357258005,1357258001) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357258001 begin to download photo : 1357258327 begin to download photo : 1357258578 begin to download photo : 1357258677 download finish for photo 1357258677 begin to download photo : 1357258680 download finish for photo 1357258578 begin to download photo : 1357258606 download finish for photo 1357258001 begin to download photo : 1357258005 download finish for photo 1357258327 begin to download photo : 1357258357 download finish for photo 1357258606 begin to download photo : 1357258618 download finish for photo 1357258680 begin to download photo : 1357258683 download finish for photo 1357258005 begin to download photo : 1357258010 download finish for photo 1357258357 begin to download photo : 1357258537 download finish for photo 1357258618 begin to download photo : 1357258669 download finish for photo 1357258683 begin to download photo : 1357258688 download finish for photo 1357258010 begin to download photo : 1357258299 download finish for photo 1357258537 begin to download photo : 1357258549 download finish for photo 1357258669 download finish for photo 1357258299 download finish for photo 1357258688 download finish for photo 1357258549 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette228390621746810330/ imagette228390641746810330/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P22838999_09-05-2025_19_05_30.pdf 22839062 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=22839062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228390621746810330 22839064 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=22839064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228390641746810330 22839067 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=22839067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357258825: '1746810254_325633_1357258357_477604c19ea36e7a1f63a21eac86173c_rle_crop_3791814248_0.png', 1357258826: '1746810254_325633_1357258001_833534e2c7157e275648291117b244da_rle_crop_3791814311_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/95a73949ab74066c072fa55e82844bd6_83712646.png change filename to text .imagette228390671746810330/ imagette228390671746810330/1746810254_325633_1357258001_833534e2c7157e275648291117b244da_rle_crop_3791814311_0.png.png imagette228390671746810330/1746810254_325633_1357258357_477604c19ea36e7a1f63a21eac86173c_rle_crop_3791814248_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5886161f3ba081ae6066b706f0a656e0_78281593.png imagette228390671746810330 22839070 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=22839070 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357258834: '1746810254_325633_1357258357_477604c19ea36e7a1f63a21eac86173c_rle_crop_3791814246_0.png'} change filename to text .imagette228390701746810330/ imagette228390701746810330/1746810254_325633_1357258357_477604c19ea36e7a1f63a21eac86173c_rle_crop_3791814246_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/2591a41fd95aeb6683b9a68579346161_15865796.png imagette228390701746810330 22839071 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=22839071 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357258812: '1746810254_325633_1357258357_477604c19ea36e7a1f63a21eac86173c_rle_crop_3791814257_0.png'} change filename to text .imagette228390711746810330/ imagette228390711746810330/1746810254_325633_1357258357_477604c19ea36e7a1f63a21eac86173c_rle_crop_3791814257_0.png.png imagette228390721746810330/ imagette228390731746810330/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c979ef192017ab37ab6910f83c978200_65284011.png imagette228390711746810330 22839072 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=22839072 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228390721746810330 22839073 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=22839073 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228390731746810330 22839065 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=22839065 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357258818: '1746810254_325633_1357258005_005f75af98437bb79e19dca5a6944f9e_rle_crop_3791814284_0.png', 1357258819: '1746810254_325633_1357258001_833534e2c7157e275648291117b244da_rle_crop_3791814309_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/33e715545f1f82a961f9666573506136_70966058.png change filename to text .imagette228390651746810330/ imagette228390651746810330/1746810254_325633_1357258001_833534e2c7157e275648291117b244da_rle_crop_3791814309_0.png.png imagette228390651746810330/1746810254_325633_1357258005_005f75af98437bb79e19dca5a6944f9e_rle_crop_3791814284_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f2441ac3e8cc99a9d9b5535514e79658_49753547.png imagette228390651746810330 22839066 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=22839066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357258814: '1746810254_325633_1357258357_477604c19ea36e7a1f63a21eac86173c_rle_crop_3791814252_0.png', 1357258815: '1746810254_325633_1357258010_1f4095dba9804dcece4401034b956cd3_rle_crop_3791814267_0.png', 1357258816: '1746810254_325633_1357258001_833534e2c7157e275648291117b244da_rle_crop_3791814304_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/441d9f7bf21ed87189ed3423eedf1adf_86282943.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/6272af13f49e48110d8dd74582dafdf9_78791242.png change filename to text .imagette228390661746810331/ imagette228390661746810331/1746810254_325633_1357258001_833534e2c7157e275648291117b244da_rle_crop_3791814304_0.png.png imagette228390661746810331/1746810254_325633_1357258357_477604c19ea36e7a1f63a21eac86173c_rle_crop_3791814252_0.png.png imagette228390661746810331/1746810254_325633_1357258010_1f4095dba9804dcece4401034b956cd3_rle_crop_3791814267_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c8c41fd4c84136966f7bcc0135b286d7_63174271.png imagette228390661746810331 22839068 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=22839068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357258811: '1746810254_325633_1357258005_005f75af98437bb79e19dca5a6944f9e_rle_crop_3791814283_0.png'} change filename to text .imagette228390681746810331/ imagette228390681746810331/1746810254_325633_1357258005_005f75af98437bb79e19dca5a6944f9e_rle_crop_3791814283_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/2a511f2fae04022ede3a724e6ab50cc2_8100440.png imagette228390681746810331 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22838999 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22839074,22839075,22839076,22839077,22839078,22839079,22839080,22839081,22839082,22839083,22839084,22839085?tags=cartonnette,papier,mal_croppe,Carton_brun,Carton_gris,plastique,Teint_Dans_La_Masse,environnement,kraft,autre_refus,flou,metal your option no_mail is active, we will not send the real mail to your client args[1357258688] : ('0.041048096923141056',) no score found for photo 1357258688 We are sending mail with results at report@fotonower.com args[1357258683] : ('0.041048096923141056',) no score found for photo 1357258683 We are sending mail with results at report@fotonower.com args[1357258680] : ('0.041048096923141056',) no score found for photo 1357258680 We are sending mail with results at report@fotonower.com args[1357258677] : ('0.041048096923141056',) no score found for photo 1357258677 We are sending mail with results at report@fotonower.com args[1357258669] : ('0.041048096923141056',) no score found for photo 1357258669 We are sending mail with results at report@fotonower.com args[1357258618] : ('0.041048096923141056',) no score found for photo 1357258618 We are sending mail with results at report@fotonower.com args[1357258606] : ('0.041048096923141056',) no score found for photo 1357258606 We are sending mail with results at report@fotonower.com args[1357258578] : ('0.041048096923141056',) no score found for photo 1357258578 We are sending mail with results at report@fotonower.com args[1357258549] : ('0.041048096923141056',) no score found for photo 1357258549 We are sending mail with results at report@fotonower.com args[1357258537] : ('0.041048096923141056',) no score found for photo 1357258537 We are sending mail with results at report@fotonower.com args[1357258357] : ('0.041048096923141056',) no score found for photo 1357258357 We are sending mail with results at report@fotonower.com args[1357258327] : ('0.041048096923141056',) no score found for photo 1357258327 We are sending mail with results at report@fotonower.com args[1357258299] : ('0.041048096923141056',) no score found for photo 1357258299 We are sending mail with results at report@fotonower.com args[1357258010] : ('0.041048096923141056',) no score found for photo 1357258010 We are sending mail with results at report@fotonower.com args[1357258005] : ('0.041048096923141056',) no score found for photo 1357258005 We are sending mail with results at report@fotonower.com args[1357258001] : ('0.041048096923141056',) no score found for photo 1357258001 We are sending mail with results at report@fotonower.com refus_total : 0.041048096923141056 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=22838999 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_P22838999_09-05-2025_19_05_30.pdf results_Auto_P22838999_09-05-2025_19_05_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22838999_09-05-2025_19_05_30.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','22838999','results_Auto_P22838999_09-05-2025_19_05_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22838999_09-05-2025_19_05_30.pdf','pdf','','0.16','0.041048096923141056') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22838999]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001] map_info['map_portfolio_photo'] : {22838999: [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001]} final : False mtd_id 4302 list_pids : [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001] 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, '2813711') ('4302', '22838999', '1357258688', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258683', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258680', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258677', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258669', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258618', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258606', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258578', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258549', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258537', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258357', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258327', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258299', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258010', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258005', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258001', None, None, None, None, None, '2813711') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '22838999', '1357258688', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258683', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258680', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258677', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258669', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258618', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258606', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258578', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258549', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258537', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258357', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258327', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258299', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258010', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258005', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258001', None, None, None, None, None, '2813711')] time used for this insertion : 0.014313936233520508 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4185051918029785 time spend to save output : 0.014609336853027344 total time spend for step 4 : 2.433114528656006 step5:split_time_score Fri May 9 19:05:32 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 : ['22838999'] 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 : [('22838999',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22838999) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357258578: {'path': 'temp/1746810330_1419669_1357258578_e793fbc7f3d72f6c10f7ec38593f99df.jpg', 'extension': 'jpg'}, 1357258606: {'path': 'temp/1746810330_1419669_1357258606_c763cb6683fd0f1f70d7433f3ce5c9ac.jpg', 'extension': 'jpg'}, 1357258618: {'path': 'temp/1746810330_1419669_1357258618_7b09216ae465cecbc08248675c0357f9.jpg', 'extension': 'jpg'}, 1357258669: {'path': 'temp/1746810330_1419669_1357258669_ec589fd3b9049205255065d9d43f0a37.jpg', 'extension': 'jpg'}, 1357258001: {'path': 'temp/1746810330_1419669_1357258001_833534e2c7157e275648291117b244da.jpg', 'extension': 'jpg'}, 1357258005: {'path': 'temp/1746810330_1419669_1357258005_005f75af98437bb79e19dca5a6944f9e.jpg', 'extension': 'jpg'}, 1357258010: {'path': 'temp/1746810330_1419669_1357258010_1f4095dba9804dcece4401034b956cd3.jpg', 'extension': 'jpg'}, 1357258299: {'path': 'temp/1746810330_1419669_1357258299_d7770c36921c617a9278240384fe8eae.jpg', 'extension': 'jpg'}, 1357258677: {'path': 'temp/1746810330_1419669_1357258677_423e33b88e6acb4020cf1441606a97fd.jpg', 'extension': 'jpg'}, 1357258680: {'path': 'temp/1746810330_1419669_1357258680_72fc503a7133cea8de477a978eef486c.jpg', 'extension': 'jpg'}, 1357258683: {'path': 'temp/1746810330_1419669_1357258683_d7f62e979f4840b1d608b1dff784d059.jpg', 'extension': 'jpg'}, 1357258688: {'path': 'temp/1746810330_1419669_1357258688_ee3c1840a57e001018b4b8b20200027e.jpg', 'extension': 'jpg'}, 1357258327: {'path': 'temp/1746810330_1419669_1357258327_ba8720549e64fc7973f0ce584b743ce0.jpg', 'extension': 'jpg'}, 1357258357: {'path': 'temp/1746810330_1419669_1357258357_477604c19ea36e7a1f63a21eac86173c.jpg', 'extension': 'jpg'}, 1357258537: {'path': 'temp/1746810330_1419669_1357258537_14c64ad51d8316fa9eac8523963e08cf.jpg', 'extension': 'jpg'}, 1357258549: {'path': 'temp/1746810330_1419669_1357258549_3ae1a8bc7da7952b2885575b6789f7e5.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 = 22838999; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22838999 group by h (('19', 16),) 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=22838999 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 (22838999) 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 (22838999) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09052025 22838999 Nombre de photos uploadées : 16 / 23040 (0%) 09052025 22838999 Nombre de photos taguées (types de déchets): 0 / 16 (0%) 09052025 22838999 Nombre de photos taguées (volume) : 0 / 16 (0%) [{'photo_id': 1357258010, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1f4095dba9804dcece4401034b956cd3.jpg', 'username': None, 'uploaded_at': 1746810068, 'text': 'image_09052025_19_00_14_10204.jpg'}, {'photo_id': 1357258005, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/005f75af98437bb79e19dca5a6944f9e.jpg', 'username': None, 'uploaded_at': 1746810068, 'text': 'image_09052025_19_00_24_10140.jpg'}, {'photo_id': 1357258001, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/833534e2c7157e275648291117b244da.jpg', 'username': None, 'uploaded_at': 1746810068, 'text': 'image_09052025_19_00_44_10138.jpg'}, {'photo_id': 1357258357, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/477604c19ea36e7a1f63a21eac86173c.jpg', 'username': None, 'uploaded_at': 1746810128, 'text': 'image_09052025_19_00_54_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005791187286376953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 22838999, '2025-05-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1789424,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023253202438354492 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= 1789424 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1789424, 'dashboard_run_id': 1800104, 'mtr_portfolio_id': 22836557, 'dashboard_result_id': 10452225, '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_P22836557_09-05-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22836601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22836602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22836603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22836604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22836605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22836606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22836607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22836608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22836609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22836610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22836611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22836612, 'pht': 3726}}"}, {'dashboat_entry_day': 1789424, 'dashboard_run_id': 1800104, 'mtr_portfolio_id': 22837268, 'dashboard_result_id': 10452226, '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_P22837268_09-05-2025_18_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22837269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22837270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22837271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22837272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22837273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22837274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22837275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22837276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22837277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22837278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22837279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22837280, 'pht': 3726}}"}, {'dashboat_entry_day': 1789424, 'dashboard_run_id': 1800104, 'mtr_portfolio_id': 22838029, 'dashboard_result_id': 10452227, '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_P22838029_09-05-2025_19_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22838059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22838060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22838061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22838062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22838063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22838064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22838065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22838066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22838067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22838068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22838069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22838070, 'pht': 3726}}"}, {'dashboat_entry_day': 1789424, 'dashboard_run_id': 1800104, 'mtr_portfolio_id': 22838999, 'dashboard_result_id': 10452228, '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 = 22836557 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': 2813457, 'mtr_portfolio_id': 22836557, 'created_at': datetime.datetime(2025, 5, 9, 18, 32, 59), 'result': '0.05259773532747991', 'result_long': None, 'result_double': None}] Qualite : 0.05259773532747991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22836557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22836557_09-05-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22836557 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_P22836557_09-05-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22836601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22836602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22836603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22836604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22836605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22836606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22836607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22836608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22836609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22836610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22836611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22836612, 'pht': 3726}}" where mtr_portfolio_id = 22836557 and dashboard_run_id = 1800104 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`=22836557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10452225, 0.05259773532747991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22836557_09-05-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22836601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22836602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22836603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22836604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22836605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22836606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22836607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22836608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22836609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22836610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22836611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22836612, '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 = 22837268 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': 2813552, 'mtr_portfolio_id': 22837268, 'created_at': datetime.datetime(2025, 5, 9, 18, 48, 58), 'result': '0.04369401902261158', 'result_long': None, 'result_double': None}] Qualite : 0.04369401902261158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22837268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22837268_09-05-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22837268 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_P22837268_09-05-2025_18_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22837269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22837270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22837271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22837272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22837273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22837274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22837275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22837276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22837277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22837278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22837279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22837280, 'pht': 3726}}" where mtr_portfolio_id = 22837268 and dashboard_run_id = 1800104 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`=22837268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10452226, 0.04369401902261158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22837268_09-05-2025_18_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22837269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22837270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22837271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22837272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22837273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22837274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22837275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22837276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22837277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22837278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22837279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22837280, '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 = 22838029 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': 2813625, 'mtr_portfolio_id': 22838029, 'created_at': datetime.datetime(2025, 5, 9, 19, 4, 58), 'result': '0.059210897655934694', 'result_long': None, 'result_double': None}] Qualite : 0.059210897655934694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22838029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22838029_09-05-2025_19_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22838029 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_P22838029_09-05-2025_19_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22838059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22838060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22838061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22838062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22838063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22838064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22838065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22838066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22838067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22838068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22838069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22838070, 'pht': 3726}}" where mtr_portfolio_id = 22838029 and dashboard_run_id = 1800104 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`=22838029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10452227, 0.059210897655934694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22838029_09-05-2025_19_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22838059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22838060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22838061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22838062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22838063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22838064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22838065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22838066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22838067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22838068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22838069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22838070, '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 = 22838999 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': 2813711, 'mtr_portfolio_id': 22838999, 'created_at': datetime.datetime(2025, 5, 9, 19, 5, 29), 'result': '0.041048096923141056', 'result_long': None, 'result_double': None}] Qualite : 0.041048096923141056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22838999 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22838999_09-05-2025_19_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22838999 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_P22838999_09-05-2025_19_05_30.pdf'}" where mtr_portfolio_id = 22838999 and dashboard_run_id = 1800104 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`=22838999 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10452228, 0.041048096923141056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22838999_09-05-2025_19_05_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22839062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22839063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22839064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22839065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22839066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22839067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22839068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22839069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22839070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22839071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22839072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22839073, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22836557,22837268,22838029,22838999) result : ((1357245984,), (1357245989,), (1357246124,), (1357246149,), (1357246183,), (1357246212,), (1357246242,), (1357246269,), (1357246377,), (1357246393,), (1357246401,), (1357246415,), (1357246418,), (1357246447,), (1357246663,), (1357246693,), (1357246700,), (1357246702,), (1357246890,), (1357246897,), (1357246901,), (1357246904,), (1357246908,), (1357246913,), (1357246976,), (1357246981,), (1357246985,), (1357246989,), (1357247031,), (1357247035,), (1357247038,), (1357247040,), (1357247044,), (1357247048,), (1357247093,), (1357247096,), (1357247098,), (1357247148,), (1357247150,), (1357247153,), (1357247157,), (1357247160,), (1357247162,), (1357247190,), (1357247192,), (1357247272,), (1357247276,), (1357247283,), (1357247291,), (1357247300,), (1357247313,), (1357247400,), (1357247406,), (1357247410,), (1357247431,), (1357247439,), (1357247900,), (1357247916,), (1357247941,), (1357247968,), (1357248048,), (1357248061,), (1357248064,), (1357248067,), (1357248070,), (1357248073,), (1357248200,), (1357248205,), (1357248211,), (1357248216,), (1357248222,), (1357248228,), (1357248290,), (1357248279,), (1357248282,), (1357248286,), (1357248338,), (1357248342,), (1357248344,), (1357248347,), (1357248349,), (1357248353,), (1357248383,), (1357248387,), (1357248397,), (1357248402,), (1357248412,), (1357248414,), (1357248505,), (1357248507,), (1357248509,), (1357248596,), (1357248598,), (1357248600,), (1357248603,), (1357249017,), (1357249051,), (1357249062,), (1357249065,), (1357249383,), (1357249439,), (1357249465,), (1357249489,), (1357249502,), (1357249774,), (1357249777,), (1357249779,), (1357249796,), (1357249821,), (1357249846,), (1357249891,), (1357249893,), (1357249912,), (1357250422,), (1357250594,), (1357250620,), (1357250654,), (1357250662,), (1357250668,), (1357250779,), (1357250807,), (1357250828,), (1357250831,), (1357251195,), (1357251238,), (1357251283,), (1357251304,), (1357251307,), (1357251581,), (1357251617,), (1357251669,), (1357251701,), (1357251711,), (1357251714,), (1357251818,), (1357251843,), (1357251864,), (1357251867,), (1357252116,), (1357252144,), (1357252182,), (1357252209,), (1357252241,), (1357252307,), (1357252294,), (1357252296,), (1357252298,), (1357252301,), (1357252306,), (1357252369,), (1357252399,), (1357252541,), (1357252756,), (1357252896,), (1357252912,), (1357252940,), (1357252947,), (1357252975,), (1357253253,), (1357253259,), (1357253261,), (1357253265,), (1357253314,), (1357253315,), (1357253317,), (1357253319,), (1357253320,), (1357253813,), (1357253843,), (1357253884,), (1357253967,), (1357254039,), (1357254554,), (1357254668,), (1357254745,), (1357254814,), (1357254933,), (1357254934,), (1357254936,), (1357254938,), (1357254940,), (1357255263,), (1357255313,), (1357255367,), (1357255420,), (1357255525,), (1357255584,), (1357255868,), (1357255892,), (1357257438,), (1357257945,), (1357258019,), (1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09052025': {'nb_upload': 16, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22838999]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001] map_info['map_portfolio_photo'] : {22838999: [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001]} final : True mtd_id 4302 list_pids : [1357258688, 1357258683, 1357258680, 1357258677, 1357258669, 1357258618, 1357258606, 1357258578, 1357258549, 1357258537, 1357258357, 1357258327, 1357258299, 1357258010, 1357258005, 1357258001] Looping around the photos to save general results len do output : 1 /22838999Didn'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, '2813711') ('4302', '22838999', '1357258688', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258683', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258680', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258677', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258669', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258618', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258606', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258578', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258549', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258537', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258357', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258327', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258299', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258010', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258005', None, None, None, None, None, '2813711') ('4302', None, None, None, None, None, None, None, '2813711') ('4302', '22838999', '1357258001', None, None, None, None, None, '2813711') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '22838999', 'None', None, None, None, None, '2813711'), ('4302', '22838999', '1357258688', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258683', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258680', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258677', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258669', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258618', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258606', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258578', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258549', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258537', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258357', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258327', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258299', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258010', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258005', None, None, None, None, None, '2813711'), ('4302', '22838999', '1357258001', None, None, None, None, None, '2813711')] time used for this insertion : 0.014671564102172852 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34779882431030273 time spend to save output : 0.014914512634277344 total time spend for step 5 : 0.3627133369445801 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 (2813711) 2.38user 2.11system 0:07.49elapsed 59%CPU (0avgtext+0avgdata 160432maxresident)k 200inputs+10864outputs (5major+79446minor)pagefaults 0swaps