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 : 2404318 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 (2784268) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2784268) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22610994 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2784268'] with mtr_portfolio_ids : ['22610994'] and first list_photo_ids : [] new path : /proc/2404318/ Name: python3 Umask: 0002 State: R (running) Tgid: 2404318 Ngid: 0 Pid: 2404318 PPid: 2404317 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2404318 NSpid: 2404318 NSpgid: 2401956 NSsid: 2401956 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99472 kB VmRSS: 99472 kB RssAnon: 60192 kB RssFile: 39280 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 97 nonvoluntary_ctxt_switches: 162 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2404318', 'Ngid': '0', 'Pid': '2404318', 'PPid': '2404317', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2404318', 'NSpid': '2404318', 'NSpgid': '2401956', 'NSsid': '2401956', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99472 kB', 'VmRSS': '99472 kB', 'RssAnon': '60192 kB', 'RssFile': '39280 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '97', 'nonvoluntary_ctxt_switches': '162'} ('datou_batch_current', '2404318', '1107228', '0', '1107228', '865976', '99472', b'', 'marlene', '2784268') 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 (22610994) 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 (2784268 ) ) 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 (22610994) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1355387771, 'portfolio_id': 22610994}, {'photo_id': 1355387695, 'portfolio_id': 22610994}, {'photo_id': 1355387662, 'portfolio_id': 22610994}, {'photo_id': 1355386473, 'portfolio_id': 22610994}, {'photo_id': 1355386149, 'portfolio_id': 22610994}, {'photo_id': 1355385853, 'portfolio_id': 22610994}, {'photo_id': 1355385754, 'portfolio_id': 22610994}, {'photo_id': 1355385711, 'portfolio_id': 22610994}, {'photo_id': 1355385644, 'portfolio_id': 22610994}, {'photo_id': 1355384971, 'portfolio_id': 22610994}, {'photo_id': 1355384927, 'portfolio_id': 22610994}, {'photo_id': 1355384871, 'portfolio_id': 22610994}, {'photo_id': 1355384630, 'portfolio_id': 22610994}, {'photo_id': 1355384124, 'portfolio_id': 22610994}, {'photo_id': 1355384093, 'portfolio_id': 22610994}, {'photo_id': 1355384062, 'portfolio_id': 22610994}, {'photo_id': 1355384031, 'portfolio_id': 22610994}, {'photo_id': 1355383858, 'portfolio_id': 22610994}, {'photo_id': 1355383854, 'portfolio_id': 22610994}, {'photo_id': 1355383841, 'portfolio_id': 22610994}, {'photo_id': 1355383834, 'portfolio_id': 22610994}, {'photo_id': 1355383121, 'portfolio_id': 22610994}, {'photo_id': 1355383039, 'portfolio_id': 22610994}, {'photo_id': 1355381877, 'portfolio_id': 22610994}, {'photo_id': 1355381813, 'portfolio_id': 22610994}, {'photo_id': 1355381770, 'portfolio_id': 22610994}, {'photo_id': 1355381742, 'portfolio_id': 22610994}, {'photo_id': 1355381715, 'portfolio_id': 22610994}, {'photo_id': 1355381180, 'portfolio_id': 22610994}, {'photo_id': 1355381128, 'portfolio_id': 22610994}, {'photo_id': 1355381076, 'portfolio_id': 22610994}, {'photo_id': 1355381022, 'portfolio_id': 22610994}, {'photo_id': 1355380281, 'portfolio_id': 22610994}, {'photo_id': 1355380183, 'portfolio_id': 22610994}, {'photo_id': 1355380073, 'portfolio_id': 22610994}, {'photo_id': 1355379866, 'portfolio_id': 22610994}, {'photo_id': 1355379661, 'portfolio_id': 22610994}, {'photo_id': 1355379199, 'portfolio_id': 22610994}, {'photo_id': 1355379168, 'portfolio_id': 22610994}, {'photo_id': 1355379148, 'portfolio_id': 22610994}, {'photo_id': 1355379031, 'portfolio_id': 22610994}, {'photo_id': 1355379000, 'portfolio_id': 22610994}, {'photo_id': 1355378973, 'portfolio_id': 22610994}, {'photo_id': 1355378936, 'portfolio_id': 22610994}, {'photo_id': 1355378607, 'portfolio_id': 22610994}, {'photo_id': 1355378594, 'portfolio_id': 22610994}, {'photo_id': 1355378586, 'portfolio_id': 22610994}, {'photo_id': 1355378559, 'portfolio_id': 22610994}] map_portfolio_id_photo_id: {22610994: [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871, 1355384630, 1355384124, 1355384093, 1355384062, 1355384031, 1355383858, 1355383854, 1355383841, 1355383834, 1355383121, 1355383039, 1355381877, 1355381813, 1355381770, 1355381742, 1355381715, 1355381180, 1355381128, 1355381076, 1355381022, 1355380281, 1355380183, 1355380073, 1355379866, 1355379661, 1355379199, 1355379168, 1355379148, 1355379031, 1355379000, 1355378973, 1355378936, 1355378607, 1355378594, 1355378586, 1355378559]} ##### 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.016445398330688477 #### 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 2 17:12:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22610994) 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 : 22610994 get user id for portfolio 22610994 get sub ptf for main ptf 22610994, type 3726 and hashtags ['autre_refus', 'environnement', 'Carton_brun', 'mal_croppe', 'plastique', 'cartonnette', 'kraft', 'flou', 'Carton_gris', 'Teint_Dans_La_Masse', 'papier', '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`=22610994 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','Carton_brun','mal_croppe','plastique','cartonnette','kraft','flou','Carton_gris','Teint_Dans_La_Masse','papier','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`=22610994 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','Carton_brun','mal_croppe','plastique','cartonnette','kraft','flou','Carton_gris','Teint_Dans_La_Masse','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22610994, 'sub_port_id': 22611023, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039439, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'kraft': {'main_port_id': 22610994, 'sub_port_id': 22611024, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039440, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'environnement': {'main_port_id': 22610994, 'sub_port_id': 22611025, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039441, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22610994, 'sub_port_id': 22611026, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039442, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'flou': {'main_port_id': 22610994, 'sub_port_id': 22611027, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039443, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'plastique': {'main_port_id': 22610994, 'sub_port_id': 22611028, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039444, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'autre_refus': {'main_port_id': 22610994, 'sub_port_id': 22611029, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039445, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'Carton_brun': {'main_port_id': 22610994, 'sub_port_id': 22611030, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039446, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'metal': {'main_port_id': 22610994, 'sub_port_id': 22611031, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039447, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'mal_croppe': {'main_port_id': 22610994, 'sub_port_id': 22611032, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039448, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'papier': {'main_port_id': 22610994, 'sub_port_id': 22611033, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039449, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}, 'cartonnette': {'main_port_id': 22610994, 'sub_port_id': 22611034, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039450, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611023 , 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=22610994 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 (22611023) result : ((1355380827,), (1355382493,), (1355384385,), (1355384386,), (1355384486,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611024 , 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=22610994 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 (22611024) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611025 , 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=22610994 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 (22611025) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611026 , 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=22610994 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 (22611026) result : ((1355379372,), (1355384361,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611027 , 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=22610994 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 (22611027) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611028 , 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=22610994 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 (22611028) result : ((1355384513,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611029 , 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=22610994 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 (22611029) result : ((1355383612,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611030 , 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=22610994 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 (22611030) result : ((1355380846,), (1355380847,), (1355380849,), (1355380850,), (1355381546,), (1355382534,), (1355382535,), (1355382537,), (1355382538,), (1355384504,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611031 , 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=22610994 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 (22611031) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611032 , 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=22610994 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 (22611032) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611033 , 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=22610994 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 (22611033) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22611034 , 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=22610994 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 (22611034) result : ((1355380834,), (1355382502,), (1355384400,), (1355384495,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22610994) result : ((1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) 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 (1355379000) and cspi.crop_hashtag_id = chi.id; 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`=22610994 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','Carton_brun','mal_croppe','plastique','cartonnette','kraft','flou','Carton_gris','Teint_Dans_La_Masse','papier','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`=22610994 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','Carton_brun','mal_croppe','plastique','cartonnette','kraft','flou','Carton_gris','Teint_Dans_La_Masse','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22610994, 'sub_port_id': 22611035, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039451, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'kraft': {'main_port_id': 22610994, 'sub_port_id': 22611036, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039452, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'environnement': {'main_port_id': 22610994, 'sub_port_id': 22611037, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039453, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22610994, 'sub_port_id': 22611038, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039454, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'flou': {'main_port_id': 22610994, 'sub_port_id': 22611039, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039455, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'plastique': {'main_port_id': 22610994, 'sub_port_id': 22611040, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039456, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'autre_refus': {'main_port_id': 22610994, 'sub_port_id': 22611041, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039457, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'Carton_brun': {'main_port_id': 22610994, 'sub_port_id': 22611042, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039458, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'metal': {'main_port_id': 22610994, 'sub_port_id': 22611043, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039459, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'mal_croppe': {'main_port_id': 22610994, 'sub_port_id': 22611044, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039460, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'papier': {'main_port_id': 22610994, 'sub_port_id': 22611045, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039461, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}, 'cartonnette': {'main_port_id': 22610994, 'sub_port_id': 22611046, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15039462, 'last_updated_at': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 17, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 17, 5, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611035,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611023 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611036,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611024 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611037,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611025 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611038,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611026 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611039,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611027 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611040,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611028 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611041,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611029 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611042,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611030 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611043,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611031 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611044,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611032 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611045,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611033 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22611046,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22611034 lien utilise dans velours : https://www.fotonower.com/velours/22611035,22611036,22611037,22611038,22611039,22611040,22611041,22611042,22611043,22611044,22611045,22611046?tags=Carton_gris,kraft,environnement,Teint_Dans_La_Masse,flou,plastique,autre_refus,Carton_brun,metal,mal_croppe,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22610994]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871] map_info['map_portfolio_photo'] : {22610994: [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871, 1355384630, 1355384124, 1355384093, 1355384062, 1355384031, 1355383858, 1355383854, 1355383841, 1355383834, 1355383121, 1355383039, 1355381877, 1355381813, 1355381770, 1355381742, 1355381715, 1355381180, 1355381128, 1355381076, 1355381022, 1355380281, 1355380183, 1355380073, 1355379866, 1355379661, 1355379199, 1355379168, 1355379148, 1355379031, 1355379000, 1355378973, 1355378936, 1355378607, 1355378594, 1355378586, 1355378559]} final : False mtd_id 4302 list_pids : [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871] Looping around the photos to save general results len do output : 1 /22610994. 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, '2784268') ('4302', '22610994', '1355387771', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355387695', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355387662', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355386473', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355386149', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385853', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385754', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385711', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385644', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384971', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384927', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384871', None, None, None, None, None, '2784268') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22610994', "{'Carton_gris': 22611023, 'kraft': 22611024, 'environnement': 22611025, 'Teint_Dans_La_Masse': 22611026, 'flou': 22611027, 'plastique': 22611028, 'autre_refus': 22611029, 'Carton_brun': 22611030, 'metal': 22611031, 'mal_croppe': 22611032, 'papier': 22611033, 'cartonnette': 22611034}", None, None, None, None, '2784268'), ('4302', '22610994', '1355387771', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355387695', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355387662', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355386473', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355386149', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385853', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385754', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385711', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385644', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355384971', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355384927', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355384871', None, None, None, None, None, '2784268')] time used for this insertion : 0.014902830123901367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.42990994453430176 time spend to save output : 0.015248298645019531 total time spend for step 1 : 0.4451582431793213 step2:final Fri May 2 17:12:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22610994) 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 22610994 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1355378607,1355378594,1355378586,1355378559,1355379031,1355379000,1355378973,1355378936,1355379199,1355379168,1355379148,1355380281,1355380183,1355380073,1355379866,1355379661,1355381180,1355381128,1355381076,1355381022,1355381877,1355381813,1355381770,1355381742,1355381715,1355383121,1355383039,1355383858,1355383854,1355383841,1355383834,1355384124,1355384093,1355384062,1355384031,1355384971,1355384927,1355384630,1355384871,1355386473,1355386149,1355385853,1355385754,1355385711,1355385644,1355387771,1355387695,1355387662); 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([22610994]) Inside saveOutput : final : False verbose : True original output for save of step final : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} new output for save of step final : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871] map_info['map_portfolio_photo'] : {22610994: [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871, 1355384630, 1355384124, 1355384093, 1355384062, 1355384031, 1355383858, 1355383854, 1355383841, 1355383834, 1355383121, 1355383039, 1355381877, 1355381813, 1355381770, 1355381742, 1355381715, 1355381180, 1355381128, 1355381076, 1355381022, 1355380281, 1355380183, 1355380073, 1355379866, 1355379661, 1355379199, 1355379168, 1355379148, 1355379031, 1355379000, 1355378973, 1355378936, 1355378607, 1355378594, 1355378586, 1355378559]} final : False mtd_id 4302 list_pids : [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871] Looping around the photos to save general results len do output : 12 /1355387771.Didn't retrieve data . /1355387695.Didn't retrieve data . /1355387662.Didn't retrieve data . /1355386473.Didn't retrieve data . /1355386149.Didn't retrieve data . /1355385853.Didn't retrieve data . /1355385754.Didn't retrieve data . /1355385711.Didn't retrieve data . /1355385644.Didn't retrieve data . /1355384971.Didn't retrieve data . /1355384927.Didn't retrieve data . /1355384871.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, '2784268') ('4302', '22610994', '1355387771', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355387695', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355387662', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355386473', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355386149', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385853', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385754', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385711', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385644', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384971', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384927', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384871', None, None, None, None, None, '2784268') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '22610994', '1355387771', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355387695', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355387662', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355386473', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355386149', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355385853', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355385754', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355385711', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355385644', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355384971', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355384927', '0.0359613814847374', None, None, None, None, '2784268'), ('4302', '22610994', '1355384871', '0.0359613814847374', None, None, None, None, '2784268')] time used for this insertion : 0.013224124908447266 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06799888610839844 time spend to save output : 0.013835668563842773 total time spend for step 2 : 0.08183455467224121 step3:velours_tree Fri May 2 17:12:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22610994: [{'Carton_gris': 22611023, 'kraft': 22611024, 'environnement': 22611025, 'Teint_Dans_La_Masse': 22611026, 'flou': 22611027, 'plastique': 22611028, 'autre_refus': 22611029, 'Carton_brun': 22611030, 'metal': 22611031, 'mal_croppe': 22611032, 'papier': 22611033, 'cartonnette': 22611034}]} input_args_next_step : {22610994: ()} output_args : {22610994: [{'Carton_gris': 22611023, 'kraft': 22611024, 'environnement': 22611025, 'Teint_Dans_La_Masse': 22611026, 'flou': 22611027, 'plastique': 22611028, 'autre_refus': 22611029, 'Carton_brun': 22611030, 'metal': 22611031, 'mal_croppe': 22611032, 'papier': 22611033, 'cartonnette': 22611034}]} args : 22610994 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 : ({'Carton_gris': 22611023, 'kraft': 22611024, 'environnement': 22611025, 'Teint_Dans_La_Masse': 22611026, 'flou': 22611027, 'plastique': 22611028, 'autre_refus': 22611029, 'Carton_brun': 22611030, 'metal': 22611031, 'mal_croppe': 22611032, 'papier': 22611033, 'cartonnette': 22611034},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22610994) 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([22610994]) 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.3408377170562744 time spend to save output : 6.341934204101562e-05 total time spend for step 3 : 0.34090113639831543 step4:send_mail_cod Fri May 2 17:12:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} input_args_next_step : {1355387771: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355387771 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355387695 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355387662 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355386473 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355386149 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355385853 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355385754 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355385711 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355385644 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355384971 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355384927 depend.output_id : 0 input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ()} output_args : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',)} args : 1355384871 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 : {22610994: [{'Carton_gris': 22611023, 'kraft': 22611024, 'environnement': 22611025, 'Teint_Dans_La_Masse': 22611026, 'flou': 22611027, 'plastique': 22611028, 'autre_refus': 22611029, 'Carton_brun': 22611030, 'metal': 22611031, 'mal_croppe': 22611032, 'papier': 22611033, 'cartonnette': 22611034}]} input_args_next_step : {1355387771: ('0.0359613814847374',), 1355387695: ('0.0359613814847374',), 1355387662: ('0.0359613814847374',), 1355386473: ('0.0359613814847374',), 1355386149: ('0.0359613814847374',), 1355385853: ('0.0359613814847374',), 1355385754: ('0.0359613814847374',), 1355385711: ('0.0359613814847374',), 1355385644: ('0.0359613814847374',), 1355384971: ('0.0359613814847374',), 1355384927: ('0.0359613814847374',), 1355384871: ('0.0359613814847374',), 22610994: ()} output_args : {22610994: [{'Carton_gris': 22611023, 'kraft': 22611024, 'environnement': 22611025, 'Teint_Dans_La_Masse': 22611026, 'flou': 22611027, 'plastique': 22611028, 'autre_refus': 22611029, 'Carton_brun': 22611030, 'metal': 22611031, 'mal_croppe': 22611032, 'papier': 22611033, 'cartonnette': 22611034}]} args : 22610994 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 :13, first value : ('0.0359613814847374',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22610994) 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 (1355387771,1355387695,1355387662,1355386473,1355386149,1355385853,1355385754,1355385711,1355385644,1355384971,1355384927,1355384871) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1355384871 begin to download photo : 1355385644 begin to download photo : 1355385853 begin to download photo : 1355387662 download finish for photo 1355385853 begin to download photo : 1355386149 download finish for photo 1355385644 begin to download photo : 1355385711 download finish for photo 1355384871 begin to download photo : 1355384927 download finish for photo 1355387662 begin to download photo : 1355387695 download finish for photo 1355386149 begin to download photo : 1355386473 download finish for photo 1355384927 begin to download photo : 1355384971 download finish for photo 1355385711 begin to download photo : 1355385754 download finish for photo 1355387695 begin to download photo : 1355387771 download finish for photo 1355384971 download finish for photo 1355385754 download finish for photo 1355386473 download finish for photo 1355387771 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette226110241746198780/ imagette226110271746198780/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P22610994_02-05-2025_17_13_00.pdf 22611024 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=22611024 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226110241746198780 22611027 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=22611027 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226110271746198780 22611028 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=22611028 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355384513: '1746198551_2764118_1355381715_a0a5c65806fde8604627c24c76efef04_rle_crop_3780285432_0.png'} change filename to text .imagette226110281746198780/ imagette226110281746198780/1746198551_2764118_1355381715_a0a5c65806fde8604627c24c76efef04_rle_crop_3780285432_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/2149fa75fa291c9ea7307ffd5b9aebdd_80082960.png imagette226110281746198780 22611029 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=22611029 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355383612: '1746198433_2762722_1355379661_6c34f2b9095f0ab9a0a752c818e23636_rle_crop_3780282382_0.png'} change filename to text .imagette226110291746198780/ imagette226110291746198780/1746198433_2762722_1355379661_6c34f2b9095f0ab9a0a752c818e23636_rle_crop_3780282382_0.png.png imagette226110311746198780/ imagette226110321746198780/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/31cba0613600d62a14e2cd00c37e8a1d_59991250.png imagette226110291746198780 22611031 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=22611031 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226110311746198780 22611032 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=22611032 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226110321746198780 22611034 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=22611034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355380834: '1746198252_2760932_1355378607_5ae70b7426818f01ed46c1ec7a263fa8_rle_crop_3780268110_0.png', 1355382502: '1746198372_2762160_1355378607_5ae70b7426818f01ed46c1ec7a263fa8_rle_crop_3780268110_0.png', 1355384400: '1746198542_2763955_1355381076_44f3a7f18fdeb0363df5007035a5b723_rle_crop_3780284238_0.png', 1355384495: '1746198551_2764118_1355381813_1702f9d8fdadba296d0c896fcd5bdebb_rle_crop_3780285343_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/0cbab357cfa525886e9b6cbce7a2f5d3_44967837.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/0cbab357cfa525886e9b6cbce7a2f5d3_5858862.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/5000b0c22f2f1d73f96f8b7db5014948_35307800.png change filename to text .imagette226110341746198780/ imagette226110341746198780/1746198542_2763955_1355381076_44f3a7f18fdeb0363df5007035a5b723_rle_crop_3780284238_0.png.png imagette226110341746198780/1746198252_2760932_1355378607_5ae70b7426818f01ed46c1ec7a263fa8_rle_crop_3780268110_0.png.png imagette226110341746198780/1746198551_2764118_1355381813_1702f9d8fdadba296d0c896fcd5bdebb_rle_crop_3780285343_0.png.png imagette226110341746198780/1746198372_2762160_1355378607_5ae70b7426818f01ed46c1ec7a263fa8_rle_crop_3780268110_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/7da66e061ed17467ee856796b59d6ca2_26219656.png imagette226110341746198780 22611023 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=22611023 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355380827: '1746198252_2760932_1355379031_f301d0b34491d295f5b88638d911c10b_rle_crop_3780268092_0.png', 1355382493: '1746198372_2762160_1355379031_f301d0b34491d295f5b88638d911c10b_rle_crop_3780268092_0.png', 1355384385: '1746198542_2763955_1355381877_c4e670ef00cb9929a7e2ed99ff10d9fe_rle_crop_3780285176_0.png', 1355384386: '1746198542_2763955_1355381022_82e32ddeab1adc1092e8b3de5cc03246_rle_crop_3780284257_0.png', 1355384486: '1746198551_2764118_1355381813_1702f9d8fdadba296d0c896fcd5bdebb_rle_crop_3780285350_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/e6513b20fa21217bd7d51d152cd18da0_88612761.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/e6513b20fa21217bd7d51d152cd18da0_90158649.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/90f2f163189ebee00908dfecbf7388d7_24498392.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/46e8bd04a8e9bfcf04275cfaa7bc17fc_94706297.png change filename to text .imagette226110231746198780/ imagette226110231746198780/1746198542_2763955_1355381877_c4e670ef00cb9929a7e2ed99ff10d9fe_rle_crop_3780285176_0.png.png imagette226110231746198780/1746198372_2762160_1355379031_f301d0b34491d295f5b88638d911c10b_rle_crop_3780268092_0.png.png imagette226110231746198780/1746198551_2764118_1355381813_1702f9d8fdadba296d0c896fcd5bdebb_rle_crop_3780285350_0.png.png imagette226110231746198780/1746198542_2763955_1355381022_82e32ddeab1adc1092e8b3de5cc03246_rle_crop_3780284257_0.png.png imagette226110231746198780/1746198252_2760932_1355379031_f301d0b34491d295f5b88638d911c10b_rle_crop_3780268092_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/c11f9d136f18d55cb1e95c9465168187_11315752.png imagette226110231746198780 22611026 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=22611026 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355379372: '1746198192_2760328_1355378936_c6524a058f9b36e9d5fe2f389a22d503_rle_crop_3780264164_0.png', 1355384361: '1746198542_2763955_1355381128_6846dfe6a4e107c59f3f8292921b882c_rle_crop_3780284227_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/db14baf2821a21d3229206777df949d1_32187006.png change filename to text .imagette226110261746198780/ imagette226110261746198780/1746198542_2763955_1355381128_6846dfe6a4e107c59f3f8292921b882c_rle_crop_3780284227_0.png.png imagette226110261746198780/1746198192_2760328_1355378936_c6524a058f9b36e9d5fe2f389a22d503_rle_crop_3780264164_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/52009bf1132de6ae54fd2c72c5dd8f7f_12680673.png imagette226110261746198780 22611030 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=22611030 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355380846: '1746198252_2760932_1355379031_f301d0b34491d295f5b88638d911c10b_rle_crop_3780268093_0.png', 1355380847: '1746198252_2760932_1355378594_2590b561ee07325af9444e155d28933b_rle_crop_3780268125_0.png', 1355380849: '1746198252_2760932_1355378586_da87ad841ba41b79cf4be6c518640793_rle_crop_3780268140_0.png', 1355380850: '1746198252_2760932_1355378559_740461dcd459a503332d3ddcc6c1ba9a_rle_crop_3780268148_0.png', 1355381546: '1746198325_715208_1355379148_20b8f97c06f9c6092a75976c0af1a256_rle_crop_3780276855_0.png', 1355382534: '1746198372_2762160_1355379031_f301d0b34491d295f5b88638d911c10b_rle_crop_3780268093_0.png', 1355382535: '1746198372_2762160_1355378594_2590b561ee07325af9444e155d28933b_rle_crop_3780268125_0.png', 1355382537: '1746198372_2762160_1355378586_da87ad841ba41b79cf4be6c518640793_rle_crop_3780268140_0.png', 1355382538: '1746198372_2762160_1355378559_740461dcd459a503332d3ddcc6c1ba9a_rle_crop_3780268148_0.png', 1355384504: '1746198551_2764118_1355383121_8b73ac3722f0fd933fc63b58870782c8_rle_crop_3780285331_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/5007776634702eee62f373bd2d0cb021_78017851.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/0c56d351209550930224e565835a623b_22506499.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/0efcc52c23750a60da6a0dc28c87a4ef_1863807.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/1a9c45046ca5dc66518bed344ba7caa4_42602129.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/3af72f0ab3e90e250c76846e9f932734_2263207.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/5007776634702eee62f373bd2d0cb021_6354493.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/0c56d351209550930224e565835a623b_26729096.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/0efcc52c23750a60da6a0dc28c87a4ef_68489371.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/1a9c45046ca5dc66518bed344ba7caa4_21314723.png change filename to text .imagette226110301746198781/ imagette226110301746198781/1746198372_2762160_1355378559_740461dcd459a503332d3ddcc6c1ba9a_rle_crop_3780268148_0.png.png imagette226110301746198781/1746198372_2762160_1355378594_2590b561ee07325af9444e155d28933b_rle_crop_3780268125_0.png.png imagette226110301746198781/1746198372_2762160_1355378586_da87ad841ba41b79cf4be6c518640793_rle_crop_3780268140_0.png.png imagette226110301746198781/1746198551_2764118_1355383121_8b73ac3722f0fd933fc63b58870782c8_rle_crop_3780285331_0.png.png imagette226110301746198781/1746198325_715208_1355379148_20b8f97c06f9c6092a75976c0af1a256_rle_crop_3780276855_0.png.png imagette226110301746198781/1746198252_2760932_1355378594_2590b561ee07325af9444e155d28933b_rle_crop_3780268125_0.png.png imagette226110301746198781/1746198252_2760932_1355378559_740461dcd459a503332d3ddcc6c1ba9a_rle_crop_3780268148_0.png.png imagette226110301746198781/1746198372_2762160_1355379031_f301d0b34491d295f5b88638d911c10b_rle_crop_3780268093_0.png.png imagette226110301746198781/1746198252_2760932_1355378586_da87ad841ba41b79cf4be6c518640793_rle_crop_3780268140_0.png.png imagette226110301746198781/1746198252_2760932_1355379031_f301d0b34491d295f5b88638d911c10b_rle_crop_3780268093_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/787f132f5b4192b9d0299a8ce002f08e_44213423.png imagette226110301746198781 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22610994 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22611035,22611036,22611037,22611038,22611039,22611040,22611041,22611042,22611043,22611044,22611045,22611046?tags=Carton_gris,kraft,environnement,Teint_Dans_La_Masse,flou,plastique,autre_refus,Carton_brun,metal,mal_croppe,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1355387771] : ('0.0359613814847374',) no score found for photo 1355387771 We are sending mail with results at report@fotonower.com args[1355387695] : ('0.0359613814847374',) no score found for photo 1355387695 We are sending mail with results at report@fotonower.com args[1355387662] : ('0.0359613814847374',) no score found for photo 1355387662 We are sending mail with results at report@fotonower.com args[1355386473] : ('0.0359613814847374',) no score found for photo 1355386473 We are sending mail with results at report@fotonower.com args[1355386149] : ('0.0359613814847374',) no score found for photo 1355386149 We are sending mail with results at report@fotonower.com args[1355385853] : ('0.0359613814847374',) no score found for photo 1355385853 We are sending mail with results at report@fotonower.com args[1355385754] : ('0.0359613814847374',) no score found for photo 1355385754 We are sending mail with results at report@fotonower.com args[1355385711] : ('0.0359613814847374',) no score found for photo 1355385711 We are sending mail with results at report@fotonower.com args[1355385644] : ('0.0359613814847374',) no score found for photo 1355385644 We are sending mail with results at report@fotonower.com args[1355384971] : ('0.0359613814847374',) no score found for photo 1355384971 We are sending mail with results at report@fotonower.com args[1355384927] : ('0.0359613814847374',) no score found for photo 1355384927 We are sending mail with results at report@fotonower.com args[1355384871] : ('0.0359613814847374',) no score found for photo 1355384871 We are sending mail with results at report@fotonower.com refus_total : 0.0359613814847374 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=22610994 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_P22610994_02-05-2025_17_13_00.pdf results_Auto_P22610994_02-05-2025_17_13_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22610994_02-05-2025_17_13_00.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','22610994','results_Auto_P22610994_02-05-2025_17_13_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22610994_02-05-2025_17_13_00.pdf','pdf','','0.16','0.0359613814847374') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22610994]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871] map_info['map_portfolio_photo'] : {22610994: [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871, 1355384630, 1355384124, 1355384093, 1355384062, 1355384031, 1355383858, 1355383854, 1355383841, 1355383834, 1355383121, 1355383039, 1355381877, 1355381813, 1355381770, 1355381742, 1355381715, 1355381180, 1355381128, 1355381076, 1355381022, 1355380281, 1355380183, 1355380073, 1355379866, 1355379661, 1355379199, 1355379168, 1355379148, 1355379031, 1355379000, 1355378973, 1355378936, 1355378607, 1355378594, 1355378586, 1355378559]} final : False mtd_id 4302 list_pids : [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871] 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, '2784268') ('4302', '22610994', '1355387771', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355387695', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355387662', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355386473', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355386149', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385853', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385754', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385711', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385644', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384971', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384927', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384871', None, None, None, None, None, '2784268') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22610994', '1355387771', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355387695', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355387662', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355386473', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355386149', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385853', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385754', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385711', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385644', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355384971', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355384927', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355384871', None, None, None, None, None, '2784268')] time used for this insertion : 0.013747453689575195 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9749975204467773 time spend to save output : 0.013998031616210938 total time spend for step 4 : 2.9889955520629883 step5:split_time_score Fri May 2 17:13:02 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 : ['22610994'] 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 : [('22610994',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22610994) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1355384871: {'path': 'temp/1746198779_2404318_1355384871_2cb5b9e532eeaa6da678de724bfc6021.jpg', 'extension': 'jpg'}, 1355384927: {'path': 'temp/1746198779_2404318_1355384927_35bcab00b63745576c449d3758a2c4ff.jpg', 'extension': 'jpg'}, 1355384971: {'path': 'temp/1746198779_2404318_1355384971_b4cc40e08896f6e74dbb57bc453aba9a.jpg', 'extension': 'jpg'}, 1355385644: {'path': 'temp/1746198779_2404318_1355385644_97c00158f10f6822d526038bc8e48861.jpg', 'extension': 'jpg'}, 1355385711: {'path': 'temp/1746198779_2404318_1355385711_4966c76e62dda7fa5da33ede17d171dd.jpg', 'extension': 'jpg'}, 1355385754: {'path': 'temp/1746198779_2404318_1355385754_72e5c15a63c4d0b8e162e8c2d048a093.jpg', 'extension': 'jpg'}, 1355385853: {'path': 'temp/1746198779_2404318_1355385853_035bfa284bdef7bd306a3eb2f11c60dd.jpg', 'extension': 'jpg'}, 1355386149: {'path': 'temp/1746198779_2404318_1355386149_04f69e46d1e7de16cc0e879eb4103f48.jpg', 'extension': 'jpg'}, 1355386473: {'path': 'temp/1746198779_2404318_1355386473_c3039cffa0eb0e85bbe95e2a7a0b68e2.jpg', 'extension': 'jpg'}, 1355387662: {'path': 'temp/1746198779_2404318_1355387662_f924b60e769685f8d9e7c9411b928079.jpg', 'extension': 'jpg'}, 1355387695: {'path': 'temp/1746198779_2404318_1355387695_8bc408f2a0cbe8c14717f0c01dee8711.jpg', 'extension': 'jpg'}, 1355387771: {'path': 'temp/1746198779_2404318_1355387771_b739704cfaca38a44c22e189162d0e04.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 = 22610994; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22610994 group by h (('17', 48),) 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=22610994 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 (22610994) 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 (22610994) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02052025 22610994 Nombre de photos uploadées : 48 / 23040 (0%) 02052025 22610994 Nombre de photos taguées (types de déchets): 0 / 48 (0%) 02052025 22610994 Nombre de photos taguées (volume) : 0 / 48 (0%) [{'photo_id': 1355378607, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/5ae70b7426818f01ed46c1ec7a263fa8.jpg', 'username': None, 'uploaded_at': 1746198068, 'text': 'image_02052025_17_00_14_010282m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355378594, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/2590b561ee07325af9444e155d28933b.jpg', 'username': None, 'uploaded_at': 1746198068, 'text': 'image_02052025_17_00_24_010142m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1355378586, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/da87ad841ba41b79cf4be6c518640793.jpg', 'username': None, 'uploaded_at': 1746198068, 'text': 'image_02052025_17_00_34_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355378559, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/740461dcd459a503332d3ddcc6c1ba9a.jpg', 'username': None, 'uploaded_at': 1746198068, 'text': 'image_02052025_17_00_44_010144m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0020508766174316406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22610994, '2025-05-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1765550,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02171468734741211 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= 1765550 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1765550, 'dashboard_run_id': 1775743, 'mtr_portfolio_id': 22609408, 'dashboard_result_id': 10247263, '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_P22609408_02-05-2025_16_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22609409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22609410, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22609411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22609412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22609413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22609414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22609415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22609416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22609417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22609418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22609419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22609420, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1775743, 'mtr_portfolio_id': 22609715, 'dashboard_result_id': 10247264, '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_P22609715_02-05-2025_16_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22609804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22609805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22609806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22609807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22609808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22609809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22609810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22609811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22609812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22609813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22609814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22609815, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1775743, 'mtr_portfolio_id': 22610437, 'dashboard_result_id': 10247265, '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_P22610437_02-05-2025_17_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22610456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22610457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22610458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22610459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22610460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22610461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22610462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22610463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22610464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22610465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22610466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22610467, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1775743, 'mtr_portfolio_id': 22610994, 'dashboard_result_id': 10247266, '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_P22610994_02-05-2025_17_10_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22611023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22611024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22611025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22611026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22611027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22611028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22611029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22611030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22611031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22611032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22611033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22611034, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22609408 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': 2784081, 'mtr_portfolio_id': 22609408, 'created_at': datetime.datetime(2025, 5, 2, 16, 32, 58), 'result': '0.036062353526804675', 'result_long': None, 'result_double': None}] Qualite : 0.036062353526804675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22609408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22609408_02-05-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22609408 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_P22609408_02-05-2025_16_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22609409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22609410, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22609411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22609412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22609413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22609414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22609415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22609416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22609417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22609418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22609419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22609420, 'pht': 3726}}" where mtr_portfolio_id = 22609408 and dashboard_run_id = 1775752 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`=22609408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10247263, 0.036062353526804675, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22609408_02-05-2025_16_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22609409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22609410, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22609411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22609412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22609413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22609414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22609415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22609416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22609417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22609418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22609419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22609420, '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 = 22609715 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': 2784137, 'mtr_portfolio_id': 22609715, 'created_at': datetime.datetime(2025, 5, 2, 16, 50, 58), 'result': '0.039319208231918854', 'result_long': None, 'result_double': None}] Qualite : 0.039319208231918854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22609715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22609715_02-05-2025_16_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22609715 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_P22609715_02-05-2025_16_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22609804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22609805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22609806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22609807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22609808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22609809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22609810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22609811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22609812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22609813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22609814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22609815, 'pht': 3726}}" where mtr_portfolio_id = 22609715 and dashboard_run_id = 1775752 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`=22609715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10247264, 0.039319208231918854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22609715_02-05-2025_16_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22609804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22609805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22609806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22609807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22609808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22609809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22609810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22609811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22609812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22609813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22609814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22609815, '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 = 22610437 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': 2784202, 'mtr_portfolio_id': 22610437, 'created_at': datetime.datetime(2025, 5, 2, 17, 4, 58), 'result': '0.06179093901455749', 'result_long': None, 'result_double': None}] Qualite : 0.06179093901455749 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22610437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22610437_02-05-2025_17_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22610437 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_P22610437_02-05-2025_17_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22610456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22610457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22610458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22610459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22610460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22610461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22610462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22610463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22610464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22610465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22610466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22610467, 'pht': 3726}}" where mtr_portfolio_id = 22610437 and dashboard_run_id = 1775752 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`=22610437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10247265, 0.06179093901455749, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22610437_02-05-2025_17_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22610456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22610457, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22610458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22610459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22610460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22610461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22610462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22610463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22610464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22610465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22610466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22610467, '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 = 22610994 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': 2784268, 'mtr_portfolio_id': 22610994, 'created_at': datetime.datetime(2025, 5, 2, 17, 12, 59), 'result': '0.0359613814847374', 'result_long': None, 'result_double': None}] Qualite : 0.0359613814847374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22610994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22610994_02-05-2025_17_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22610994 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_P22610994_02-05-2025_17_13_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22611023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22611024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22611025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22611026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22611027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22611028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22611029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22611030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22611031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22611032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22611033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22611034, 'pht': 3726}}" where mtr_portfolio_id = 22610994 and dashboard_run_id = 1775752 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`=22610994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10247266, 0.0359613814847374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22610994_02-05-2025_17_13_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22611023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22611024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22611025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22611026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22611027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22611028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22611029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22611030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22611031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22611032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22611033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22611034, '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 (22609408,22609715,22610437,22610994) result : ((1355360999,), (1355362623,), (1355363465,), (1355363516,), (1355363615,), (1355363666,), (1355363721,), (1355364226,), (1355364271,), (1355364308,), (1355364338,), (1355364365,), (1355364411,), (1355364858,), (1355364862,), (1355364866,), (1355365106,), (1355365133,), (1355365161,), (1355365533,), (1355365593,), (1355365624,), (1355365654,), (1355365686,), (1355365707,), (1355365970,), (1355366007,), (1355366056,), (1355366100,), (1355366129,), (1355366218,), (1355366264,), (1355366500,), (1355366534,), (1355366562,), (1355366617,), (1355366671,), (1355366675,), (1355366679,), (1355366717,), (1355366721,), (1355366724,), (1355366786,), (1355366791,), (1355366796,), (1355366802,), (1355366901,), (1355366872,), (1355366876,), (1355366880,), (1355366885,), (1355366895,), (1355366924,), (1355366929,), (1355366964,), (1355366972,), (1355366977,), (1355366981,), (1355367168,), (1355367171,), (1355367193,), (1355367196,), (1355367219,), (1355367229,), (1355367250,), (1355367281,), (1355367312,), (1355367462,), (1355367470,), (1355367487,), (1355367489,), (1355367503,), (1355367532,), (1355367561,), (1355368688,), (1355372054,), (1355372047,), (1355372424,), (1355372471,), (1355372507,), (1355373148,), (1355373175,), (1355373205,), (1355373244,), (1355373570,), (1355373601,), (1355373637,), (1355373783,), (1355374027,), (1355374038,), (1355374042,), (1355374047,), (1355374084,), (1355374089,), (1355374142,), (1355374748,), (1355374762,), (1355374766,), (1355374773,), (1355374776,), (1355375195,), (1355375223,), (1355375256,), (1355375304,), (1355375334,), (1355375365,), (1355376008,), (1355376090,), (1355376167,), (1355376270,), (1355376399,), (1355376491,), (1355378026,), (1355378082,), (1355378642,), (1355378559,), (1355378586,), (1355378594,), (1355378607,), (1355378936,), (1355378973,), (1355379000,), (1355379031,), (1355379148,), (1355379168,), (1355379199,), (1355379661,), (1355379866,), (1355380073,), (1355380183,), (1355380281,), (1355381022,), (1355381076,), (1355381128,), (1355381180,), (1355381715,), (1355381742,), (1355381770,), (1355381813,), (1355381877,), (1355383039,), (1355383121,), (1355383834,), (1355383841,), (1355383854,), (1355383858,), (1355384031,), (1355384062,), (1355384093,), (1355384124,), (1355384630,), (1355384871,), (1355384927,), (1355384971,), (1355385644,), (1355385711,), (1355385754,), (1355385853,), (1355386149,), (1355386473,), (1355387662,), (1355387695,), (1355387771,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02052025': {'nb_upload': 48, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22610994]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871] map_info['map_portfolio_photo'] : {22610994: [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871, 1355384630, 1355384124, 1355384093, 1355384062, 1355384031, 1355383858, 1355383854, 1355383841, 1355383834, 1355383121, 1355383039, 1355381877, 1355381813, 1355381770, 1355381742, 1355381715, 1355381180, 1355381128, 1355381076, 1355381022, 1355380281, 1355380183, 1355380073, 1355379866, 1355379661, 1355379199, 1355379168, 1355379148, 1355379031, 1355379000, 1355378973, 1355378936, 1355378607, 1355378594, 1355378586, 1355378559]} final : True mtd_id 4302 list_pids : [1355387771, 1355387695, 1355387662, 1355386473, 1355386149, 1355385853, 1355385754, 1355385711, 1355385644, 1355384971, 1355384927, 1355384871] Looping around the photos to save general results len do output : 1 /22610994Didn'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, '2784268') ('4302', '22610994', '1355387771', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355387695', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355387662', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355386473', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355386149', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385853', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385754', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385711', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355385644', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384971', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384927', None, None, None, None, None, '2784268') ('4302', None, None, None, None, None, None, None, '2784268') ('4302', '22610994', '1355384871', None, None, None, None, None, '2784268') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22610994', 'None', None, None, None, None, '2784268'), ('4302', '22610994', '1355387771', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355387695', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355387662', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355386473', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355386149', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385853', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385754', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385711', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355385644', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355384971', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355384927', None, None, None, None, None, '2784268'), ('4302', '22610994', '1355384871', None, None, None, None, None, '2784268')] time used for this insertion : 0.013807296752929688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3449521064758301 time spend to save output : 0.014096736907958984 total time spend for step 5 : 0.35904884338378906 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 (2784268) 2.25user 2.77system 0:07.34elapsed 68%CPU (0avgtext+0avgdata 160692maxresident)k 6416inputs+11592outputs (84major+64696minor)pagefaults 0swaps