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 : 2360575 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 (2707940) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2707940) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899830 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2707940'] with mtr_portfolio_ids : ['21899830'] and first list_photo_ids : [] new path : /proc/2360575/ Name: python3 Umask: 0002 State: R (running) Tgid: 2360575 Ngid: 0 Pid: 2360575 PPid: 2360574 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2360575 NSpid: 2360575 NSpgid: 2357786 NSsid: 2357786 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98448 kB VmRSS: 98448 kB RssAnon: 59796 kB RssFile: 38652 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 45 nonvoluntary_ctxt_switches: 40 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2360575', 'Ngid': '0', 'Pid': '2360575', 'PPid': '2360574', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2360575', 'NSpid': '2360575', 'NSpgid': '2357786', 'NSsid': '2357786', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98448 kB', 'VmRSS': '98448 kB', 'RssAnon': '59796 kB', 'RssFile': '38652 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '45', 'nonvoluntary_ctxt_switches': '40'} ('datou_batch_current', '2360575', '1106928', '0', '1106928', '865676', '98448', b'', 'marlene', '2707940') 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 (21899830) 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 (2707940 ) ) 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 (21899830) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1348953772, 'portfolio_id': 21899830}, {'photo_id': 1348953757, 'portfolio_id': 21899830}, {'photo_id': 1348953707, 'portfolio_id': 21899830}, {'photo_id': 1348953700, 'portfolio_id': 21899830}, {'photo_id': 1348953684, 'portfolio_id': 21899830}, {'photo_id': 1348953661, 'portfolio_id': 21899830}, {'photo_id': 1348953313, 'portfolio_id': 21899830}, {'photo_id': 1348953276, 'portfolio_id': 21899830}, {'photo_id': 1348953259, 'portfolio_id': 21899830}, {'photo_id': 1348952987, 'portfolio_id': 21899830}, {'photo_id': 1348952951, 'portfolio_id': 21899830}, {'photo_id': 1348952910, 'portfolio_id': 21899830}, {'photo_id': 1348952881, 'portfolio_id': 21899830}, {'photo_id': 1348952847, 'portfolio_id': 21899830}, {'photo_id': 1348952814, 'portfolio_id': 21899830}, {'photo_id': 1348952169, 'portfolio_id': 21899830}, {'photo_id': 1348952118, 'portfolio_id': 21899830}, {'photo_id': 1348952074, 'portfolio_id': 21899830}, {'photo_id': 1348952017, 'portfolio_id': 21899830}, {'photo_id': 1348951973, 'portfolio_id': 21899830}, {'photo_id': 1348951557, 'portfolio_id': 21899830}, {'photo_id': 1348951491, 'portfolio_id': 21899830}, {'photo_id': 1348951438, 'portfolio_id': 21899830}] map_portfolio_id_photo_id: {21899830: [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661, 1348953313, 1348953276, 1348953259, 1348952987, 1348952951, 1348952910, 1348952881, 1348952847, 1348952814, 1348952169, 1348952118, 1348952074, 1348952017, 1348951973, 1348951557, 1348951491, 1348951438]} ##### 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.014270544052124023 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 31 08:06:57 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 (21899830) 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 : 21899830 get user id for portfolio 21899830 get sub ptf for main ptf 21899830, type 3726 and hashtags ['plastique', 'kraft', 'autre_refus', 'cartonnette', 'Teint_Dans_La_Masse', 'environnement', 'Carton_gris', 'metal', 'papier', 'Carton_brun', 'mal_croppe', 'flou'] 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`=21899830 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','environnement','Carton_gris','metal','papier','Carton_brun','mal_croppe','flou')) 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`=21899830 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','environnement','Carton_gris','metal','papier','Carton_brun','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21899830, 'sub_port_id': 21899858, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407946, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'Carton_brun': {'main_port_id': 21899830, 'sub_port_id': 21899859, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407947, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'environnement': {'main_port_id': 21899830, 'sub_port_id': 21899860, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407948, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'autre_refus': {'main_port_id': 21899830, 'sub_port_id': 21899861, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407949, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'flou': {'main_port_id': 21899830, 'sub_port_id': 21899862, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407950, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'cartonnette': {'main_port_id': 21899830, 'sub_port_id': 21899863, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407951, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'Carton_gris': {'main_port_id': 21899830, 'sub_port_id': 21899864, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407952, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'kraft': {'main_port_id': 21899830, 'sub_port_id': 21899865, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407953, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'metal': {'main_port_id': 21899830, 'sub_port_id': 21899866, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407954, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21899830, 'sub_port_id': 21899867, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407955, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'papier': {'main_port_id': 21899830, 'sub_port_id': 21899868, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407956, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}, 'mal_croppe': {'main_port_id': 21899830, 'sub_port_id': 21899869, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407957, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21899858 , 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=21899830 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 (21899858) result : ((1348953872,), (1348953873,), (1348953874,), (1348953875,), (1348953898,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899859 , 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=21899830 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 (21899859) result : ((1348953158,), (1348953867,), (1348953868,), (1348953869,), (1348953897,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899860 , 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=21899830 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 (21899860) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899861 , 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=21899830 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 (21899861) result : ((1348953889,), (1348953890,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899862 , 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=21899830 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 (21899862) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899863 , 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=21899830 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 (21899863) result : ((1348953859,), (1348953860,), (1348953861,), (1348953862,), (1348953863,), (1348953865,), (1348953866,), (1348953894,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899864 , 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=21899830 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 (21899864) result : ((1348953852,), (1348953853,), (1348953892,), (1348953893,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899865 , 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=21899830 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 (21899865) result : ((1348953177,), (1348953180,), (1348953183,), (1348953877,), (1348953900,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899866 , 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=21899830 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 (21899866) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899867 , 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=21899830 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 (21899867) result : ((1348953149,), (1348953848,), (1348953849,), (1348953850,), (1348953887,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899868 , 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=21899830 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 (21899868) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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 21899869 , 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=21899830 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 (21899869) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21899830) result : ((1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) 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 (1348953700) 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`=21899830 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','environnement','Carton_gris','metal','papier','Carton_brun','mal_croppe','flou')) 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`=21899830 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','environnement','Carton_gris','metal','papier','Carton_brun','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21899830, 'sub_port_id': 21899870, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407958, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'Carton_brun': {'main_port_id': 21899830, 'sub_port_id': 21899871, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407959, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'environnement': {'main_port_id': 21899830, 'sub_port_id': 21899872, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407960, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'autre_refus': {'main_port_id': 21899830, 'sub_port_id': 21899873, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407961, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'flou': {'main_port_id': 21899830, 'sub_port_id': 21899874, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407962, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'cartonnette': {'main_port_id': 21899830, 'sub_port_id': 21899875, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407963, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'Carton_gris': {'main_port_id': 21899830, 'sub_port_id': 21899876, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407964, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'kraft': {'main_port_id': 21899830, 'sub_port_id': 21899877, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407965, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'metal': {'main_port_id': 21899830, 'sub_port_id': 21899878, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407966, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21899830, 'sub_port_id': 21899879, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407967, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'papier': {'main_port_id': 21899830, 'sub_port_id': 21899880, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407968, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}, 'mal_croppe': {'main_port_id': 21899830, 'sub_port_id': 21899881, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14407969, 'last_updated_at': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 8, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899870,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899858 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899871,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899859 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899872,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899860 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899873,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899861 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899874,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899862 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899875,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899863 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899876,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899864 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899877,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899865 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899878,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899866 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899879,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899867 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899880,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899868 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21899881,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21899869 lien utilise dans velours : https://www.fotonower.com/velours/21899870,21899871,21899872,21899873,21899874,21899875,21899876,21899877,21899878,21899879,21899880,21899881?tags=plastique,Carton_brun,environnement,autre_refus,flou,cartonnette,Carton_gris,kraft,metal,Teint_Dans_La_Masse,papier,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21899830]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661] map_info['map_portfolio_photo'] : {21899830: [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661, 1348953313, 1348953276, 1348953259, 1348952987, 1348952951, 1348952910, 1348952881, 1348952847, 1348952814, 1348952169, 1348952118, 1348952074, 1348952017, 1348951973, 1348951557, 1348951491, 1348951438]} final : False mtd_id 4302 list_pids : [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661] Looping around the photos to save general results len do output : 1 /21899830. 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, '2707940') ('4302', '21899830', '1348953772', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953757', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953707', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953700', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953684', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953661', None, None, None, None, None, '2707940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '21899830', "{'plastique': 21899858, 'Carton_brun': 21899859, 'environnement': 21899860, 'autre_refus': 21899861, 'flou': 21899862, 'cartonnette': 21899863, 'Carton_gris': 21899864, 'kraft': 21899865, 'metal': 21899866, 'Teint_Dans_La_Masse': 21899867, 'papier': 21899868, 'mal_croppe': 21899869}", None, None, None, None, '2707940'), ('4302', '21899830', '1348953772', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953757', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953707', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953700', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953684', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953661', None, None, None, None, None, '2707940')] time used for this insertion : 0.012525796890258789 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4667847156524658 time spend to save output : 0.012753725051879883 total time spend for step 1 : 0.4795384407043457 step2:final Mon Mar 31 08:06: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 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 (21899830) 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 21899830 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348951557,1348951491,1348951438,1348952169,1348952118,1348952074,1348952017,1348951973,1348952987,1348952951,1348952910,1348952881,1348952847,1348952814,1348953313,1348953276,1348953259,1348953772,1348953757,1348953707,1348953700,1348953684,1348953661); 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([21899830]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ('0.06714139592554857',)} new output for save of step final : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ('0.06714139592554857',)} [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661] map_info['map_portfolio_photo'] : {21899830: [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661, 1348953313, 1348953276, 1348953259, 1348952987, 1348952951, 1348952910, 1348952881, 1348952847, 1348952814, 1348952169, 1348952118, 1348952074, 1348952017, 1348951973, 1348951557, 1348951491, 1348951438]} final : False mtd_id 4302 list_pids : [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661] Looping around the photos to save general results len do output : 6 /1348953772.Didn't retrieve data . /1348953757.Didn't retrieve data . /1348953707.Didn't retrieve data . /1348953700.Didn't retrieve data . /1348953684.Didn't retrieve data . /1348953661.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, '2707940') ('4302', '21899830', '1348953772', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953757', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953707', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953700', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953684', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953661', None, None, None, None, None, '2707940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '21899830', '1348953772', '0.06714139592554857', None, None, None, None, '2707940'), ('4302', '21899830', '1348953757', '0.06714139592554857', None, None, None, None, '2707940'), ('4302', '21899830', '1348953707', '0.06714139592554857', None, None, None, None, '2707940'), ('4302', '21899830', '1348953700', '0.06714139592554857', None, None, None, None, '2707940'), ('4302', '21899830', '1348953684', '0.06714139592554857', None, None, None, None, '2707940'), ('4302', '21899830', '1348953661', '0.06714139592554857', None, None, None, None, '2707940')] time used for this insertion : 0.013674736022949219 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06523919105529785 time spend to save output : 0.014027595520019531 total time spend for step 2 : 0.07926678657531738 step3:velours_tree Mon Mar 31 08:06: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 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 : {21899830: [{'plastique': 21899858, 'Carton_brun': 21899859, 'environnement': 21899860, 'autre_refus': 21899861, 'flou': 21899862, 'cartonnette': 21899863, 'Carton_gris': 21899864, 'kraft': 21899865, 'metal': 21899866, 'Teint_Dans_La_Masse': 21899867, 'papier': 21899868, 'mal_croppe': 21899869}]} input_args_next_step : {21899830: ()} output_args : {21899830: [{'plastique': 21899858, 'Carton_brun': 21899859, 'environnement': 21899860, 'autre_refus': 21899861, 'flou': 21899862, 'cartonnette': 21899863, 'Carton_gris': 21899864, 'kraft': 21899865, 'metal': 21899866, 'Teint_Dans_La_Masse': 21899867, 'papier': 21899868, 'mal_croppe': 21899869}]} args : 21899830 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 : ({'plastique': 21899858, 'Carton_brun': 21899859, 'environnement': 21899860, 'autre_refus': 21899861, 'flou': 21899862, 'cartonnette': 21899863, 'Carton_gris': 21899864, 'kraft': 21899865, 'metal': 21899866, 'Teint_Dans_La_Masse': 21899867, 'papier': 21899868, 'mal_croppe': 21899869},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21899830) 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([21899830]) 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.28856611251831055 time spend to save output : 4.982948303222656e-05 total time spend for step 3 : 0.2886159420013428 step4:send_mail_cod Mon Mar 31 08:06: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 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 : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ('0.06714139592554857',)} input_args_next_step : {1348953772: ()} output_args : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ('0.06714139592554857',)} args : 1348953772 depend.output_id : 0 input_args_next_step : {1348953772: ('0.06714139592554857',), 1348953757: ()} output_args : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ('0.06714139592554857',)} args : 1348953757 depend.output_id : 0 input_args_next_step : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ()} output_args : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ('0.06714139592554857',)} args : 1348953707 depend.output_id : 0 input_args_next_step : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ()} output_args : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ('0.06714139592554857',)} args : 1348953700 depend.output_id : 0 input_args_next_step : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ()} output_args : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ('0.06714139592554857',)} args : 1348953684 depend.output_id : 0 input_args_next_step : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ()} output_args : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ('0.06714139592554857',)} args : 1348953661 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 : {21899830: [{'plastique': 21899858, 'Carton_brun': 21899859, 'environnement': 21899860, 'autre_refus': 21899861, 'flou': 21899862, 'cartonnette': 21899863, 'Carton_gris': 21899864, 'kraft': 21899865, 'metal': 21899866, 'Teint_Dans_La_Masse': 21899867, 'papier': 21899868, 'mal_croppe': 21899869}]} input_args_next_step : {1348953772: ('0.06714139592554857',), 1348953757: ('0.06714139592554857',), 1348953707: ('0.06714139592554857',), 1348953700: ('0.06714139592554857',), 1348953684: ('0.06714139592554857',), 1348953661: ('0.06714139592554857',), 21899830: ()} output_args : {21899830: [{'plastique': 21899858, 'Carton_brun': 21899859, 'environnement': 21899860, 'autre_refus': 21899861, 'flou': 21899862, 'cartonnette': 21899863, 'Carton_gris': 21899864, 'kraft': 21899865, 'metal': 21899866, 'Teint_Dans_La_Masse': 21899867, 'papier': 21899868, 'mal_croppe': 21899869}]} args : 21899830 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 :7, first value : ('0.06714139592554857',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21899830) 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 (1348953772,1348953757,1348953707,1348953700,1348953684,1348953661) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348953661 begin to download photo : 1348953700 begin to download photo : 1348953757 download finish for photo 1348953661 begin to download photo : 1348953684 download finish for photo 1348953700 begin to download photo : 1348953707 download finish for photo 1348953757 begin to download photo : 1348953772 download finish for photo 1348953684 download finish for photo 1348953707 download finish for photo 1348953772 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P21899830_31-03-2025_08_06_58.pdf 21899858 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=21899858 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348953872: '1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760040_0.png', 1348953873: '1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760049_0.png', 1348953874: '1743401131_3273798_1348952951_175d73e652cd217686956073f2a4661c_rle_crop_3740760062_0.png', 1348953875: '1743401131_3273798_1348952847_69c3fb41e83ce587e76d5730f26dec1f_rle_crop_3740760103_0.png', 1348953898: '1743401150_3273996_1348952987_da0a08783d3ad6318b107ad669776492_rle_crop_3740760138_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/1a610ca833452683594705a52413d479_583287.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b81b8e2eb073eeebe3b636bef05eedbe_12408888.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/af875fb9e29de8e9c3411bb036aedc6c_34176602.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/f9afe801dcff3dc0bf3268813c032fe2_61054982.png change filename to text .imagette218998581743401218/ imagette218998581743401218/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760040_0.png.png imagette218998581743401218/1743401131_3273798_1348952847_69c3fb41e83ce587e76d5730f26dec1f_rle_crop_3740760103_0.png.png imagette218998581743401218/1743401150_3273996_1348952987_da0a08783d3ad6318b107ad669776492_rle_crop_3740760138_0.png.png imagette218998581743401218/1743401131_3273798_1348952951_175d73e652cd217686956073f2a4661c_rle_crop_3740760062_0.png.png imagette218998581743401218/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760049_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/90a69c6df6b6684198948c8ae4b497e0_14918851.png imagette218998581743401218 21899861 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=21899861 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348953889: '1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760183_0.png', 1348953890: '1743401150_3273996_1348951973_028f26b4e7d4f4fa0f02b7b43c776689_rle_crop_3740760194_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6c584def222dbbbf39d22b8e8056491a_69340137.png change filename to text .imagette218998611743401219/ imagette218998611743401219/1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760183_0.png.png imagette218998611743401219/1743401150_3273996_1348951973_028f26b4e7d4f4fa0f02b7b43c776689_rle_crop_3740760194_0.png.png imagette218998621743401219/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/42034805baf353ac073d3cf4d9df16ef_668792.png imagette218998611743401219 21899862 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=21899862 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218998621743401219 21899863 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=21899863 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348953859: '1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760048_0.png', 1348953860: '1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760039_0.png', 1348953861: '1743401131_3273798_1348952951_175d73e652cd217686956073f2a4661c_rle_crop_3740760058_0.png', 1348953862: '1743401131_3273798_1348952910_e8b57f65d93abb22d76fb96c59e66493_rle_crop_3740760075_0.png', 1348953863: '1743401131_3273798_1348952847_69c3fb41e83ce587e76d5730f26dec1f_rle_crop_3740760112_0.png', 1348953865: '1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760121_0.png', 1348953866: '1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760115_0.png', 1348953894: '1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760187_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d493638944ac73a0c995328318533d77_31045005.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/f3c1ca599ace8d486a5fa59660e36c4d_15478951.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/7d6f37615e387cdee9976376726a712f_4412229.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/bc3d975b76553d8ae99cf074cf711472_76286147.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/824ebd83e88134d5c6a00dcb17032fc5_31599311.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/266e2312431d6b75ff61acc78ae59019_8408929.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/cbb29ebb0ec3afaa05c788d2204d5636_43017076.png change filename to text .imagette218998631743401219/ imagette218998631743401219/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760121_0.png.png imagette218998631743401219/1743401131_3273798_1348952910_e8b57f65d93abb22d76fb96c59e66493_rle_crop_3740760075_0.png.png imagette218998631743401219/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760039_0.png.png imagette218998631743401219/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760048_0.png.png imagette218998631743401219/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760115_0.png.png imagette218998631743401219/1743401131_3273798_1348952847_69c3fb41e83ce587e76d5730f26dec1f_rle_crop_3740760112_0.png.png imagette218998631743401219/1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760187_0.png.png imagette218998631743401219/1743401131_3273798_1348952951_175d73e652cd217686956073f2a4661c_rle_crop_3740760058_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c46a40a3e5b42b5191e1a4bc38619989_90020687.png imagette218998631743401219 21899865 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=21899865 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348953177: '1743401005_793054_1348951557_733b1c89418b42c70e3dd431c8b4c794_bib_crop_3740757717_0.jpg', 1348953180: '1743401005_793054_1348951438_161cad6353c92bc6098483263c669a2b_rle_crop_3740757760_0.png', 1348953183: '1743401005_793054_1348951438_161cad6353c92bc6098483263c669a2b_bib_crop_3740757735_0.jpg', 1348953877: '1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760117_0.png', 1348953900: '1743401150_3273996_1348952074_efabba5a44e2061c45af150af5de1f1e_rle_crop_3740760172_0.png'} change filename to text .wget -O 1.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/a9dc1fcf4a1dc841d8c88cbdc75ae653_37838465.jpg change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/43953ed7a91f67f63eb3109a9fbc70ed_13499828.png change filename to text .wget -O 3.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/69c7839e114e0df7db93cf4e904487a0_14663904.jpg change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/ec501f33952df9b2fe2b7e239dae7237_34892189.png change filename to text .imagette218998651743401219/ imagette218998651743401219/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760117_0.png.png imagette218998651743401219/1743401005_793054_1348951557_733b1c89418b42c70e3dd431c8b4c794_bib_crop_3740757717_0.jpg.jpg imagette218998651743401219/1743401005_793054_1348951438_161cad6353c92bc6098483263c669a2b_rle_crop_3740757760_0.png.png imagette218998651743401219/1743401005_793054_1348951438_161cad6353c92bc6098483263c669a2b_bib_crop_3740757735_0.jpg.jpg imagette218998651743401219/1743401150_3273996_1348952074_efabba5a44e2061c45af150af5de1f1e_rle_crop_3740760172_0.png.png imagette218998661743401220/ imagette218998691743401220/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/db466050b86cae742acbd5233bc0efee_79850226.png imagette218998651743401219 21899866 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=21899866 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218998661743401220 21899869 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=21899869 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218998691743401220 21899859 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=21899859 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348953158: '1743401005_793054_1348951557_733b1c89418b42c70e3dd431c8b4c794_bib_crop_3740757715_0.jpg', 1348953867: '1743401131_3273798_1348952910_e8b57f65d93abb22d76fb96c59e66493_rle_crop_3740760073_0.png', 1348953868: '1743401131_3273798_1348952881_3288566301066dfd43ad899428b35910_rle_crop_3740760092_0.png', 1348953869: '1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760119_0.png', 1348953897: '1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760186_0.png'} change filename to text .wget -O 1.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/36eea4347a2a5c0549b9e78050ca0531_46562282.jpg change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/68e8afdb65ea5a0e7c3cc04d1b77d61b_87756976.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/021872b2e93eb89acf179a65fda70196_41049001.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/edf7d4cde1bd5ae41b237f281a04a612_68407780.png change filename to text .imagette218998591743401220/ imagette218998591743401220/1743401131_3273798_1348952881_3288566301066dfd43ad899428b35910_rle_crop_3740760092_0.png.png imagette218998591743401220/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760119_0.png.png imagette218998591743401220/1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760186_0.png.png imagette218998591743401220/1743401005_793054_1348951557_733b1c89418b42c70e3dd431c8b4c794_bib_crop_3740757715_0.jpg.jpg imagette218998591743401220/1743401131_3273798_1348952910_e8b57f65d93abb22d76fb96c59e66493_rle_crop_3740760073_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/60eaef5377915d48751e573d45b005cd_971473.png imagette218998591743401220 21899864 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=21899864 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348953852: '1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760045_0.png', 1348953853: '1743401131_3273798_1348952881_3288566301066dfd43ad899428b35910_rle_crop_3740760086_0.png', 1348953892: '1743401150_3273996_1348952987_da0a08783d3ad6318b107ad669776492_rle_crop_3740760137_0.png', 1348953893: '1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760189_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/50e2f56452373f7048880885aeab569b_53995812.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/0634f2d43890bd3b45cf5be4b99e7c14_15492769.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/5c420d23b1e18a3d2d13a26feac234b5_72292747.png change filename to text .imagette218998641743401220/ imagette218998641743401220/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760045_0.png.png imagette218998641743401220/1743401150_3273996_1348952987_da0a08783d3ad6318b107ad669776492_rle_crop_3740760137_0.png.png imagette218998641743401220/1743401131_3273798_1348952881_3288566301066dfd43ad899428b35910_rle_crop_3740760086_0.png.png imagette218998641743401220/1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760189_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/7a50b37b216522ae839f34351d0e5e87_65595330.png imagette218998641743401220 21899867 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=21899867 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348953149: '1743401005_793054_1348951491_63860c36cdbc1df61dcf6c795dbc711d_bib_crop_3740757724_0.jpg', 1348953848: '1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760046_0.png', 1348953849: '1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760118_0.png', 1348953850: '1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760120_0.png', 1348953887: '1743401150_3273996_1348952118_2fcf6c2ee0465e9750538b5500fc9ea3_rle_crop_3740760150_0.png'} change filename to text .wget -O 1.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/2eaee41536b0a5bb0190a210484d7faf_84515963.jpg change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/5df726fc7ca2151e8c394c19e2e93c13_40045643.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9c6a69ce79b3b78aae4a3275098df6cf_77007889.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9168cdcd6ecf95cf0ae1193181065e7a_8724115.png change filename to text .imagette218998671743401220/ imagette218998671743401220/1743401150_3273996_1348952118_2fcf6c2ee0465e9750538b5500fc9ea3_rle_crop_3740760150_0.png.png imagette218998671743401220/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760118_0.png.png imagette218998671743401220/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760046_0.png.png imagette218998671743401220/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760120_0.png.png imagette218998671743401220/1743401005_793054_1348951491_63860c36cdbc1df61dcf6c795dbc711d_bib_crop_3740757724_0.jpg.jpg wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/bad41556a636c6e6bd90f3271817cfeb_18099554.png imagette218998671743401220 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21899830 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21899870,21899871,21899872,21899873,21899874,21899875,21899876,21899877,21899878,21899879,21899880,21899881?tags=plastique,Carton_brun,environnement,autre_refus,flou,cartonnette,Carton_gris,kraft,metal,Teint_Dans_La_Masse,papier,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1348953772] : ('0.06714139592554857',) no score found for photo 1348953772 We are sending mail with results at report@fotonower.com args[1348953757] : ('0.06714139592554857',) no score found for photo 1348953757 We are sending mail with results at report@fotonower.com args[1348953707] : ('0.06714139592554857',) no score found for photo 1348953707 We are sending mail with results at report@fotonower.com args[1348953700] : ('0.06714139592554857',) no score found for photo 1348953700 We are sending mail with results at report@fotonower.com args[1348953684] : ('0.06714139592554857',) no score found for photo 1348953684 We are sending mail with results at report@fotonower.com args[1348953661] : ('0.06714139592554857',) no score found for photo 1348953661 We are sending mail with results at report@fotonower.com refus_total : 0.06714139592554857 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=21899830 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_P21899830_31-03-2025_08_06_58.pdf results_Auto_P21899830_31-03-2025_08_06_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21899830_31-03-2025_08_06_58.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','21899830','results_Auto_P21899830_31-03-2025_08_06_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21899830_31-03-2025_08_06_58.pdf','pdf','','0.18','0.06714139592554857') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21899830]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661] map_info['map_portfolio_photo'] : {21899830: [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661, 1348953313, 1348953276, 1348953259, 1348952987, 1348952951, 1348952910, 1348952881, 1348952847, 1348952814, 1348952169, 1348952118, 1348952074, 1348952017, 1348951973, 1348951557, 1348951491, 1348951438]} final : False mtd_id 4302 list_pids : [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661] 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, '2707940') ('4302', '21899830', '1348953772', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953757', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953707', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953700', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953684', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953661', None, None, None, None, None, '2707940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '21899830', '1348953772', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953757', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953707', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953700', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953684', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953661', None, None, None, None, None, '2707940')] time used for this insertion : 0.012730836868286133 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4544503688812256 time spend to save output : 0.012917280197143555 total time spend for step 4 : 3.467367649078369 step5:split_time_score Mon Mar 31 08:07: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 : ['21899830'] 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 : [('21899830',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21899830) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348953661: {'path': 'temp/1743401218_2360575_1348953661_7a551f5e4494200f926a75b8d9a31073.jpg', 'extension': 'jpg'}, 1348953684: {'path': 'temp/1743401218_2360575_1348953684_8c320cab20ed40c9aef53c59a579d823.jpg', 'extension': 'jpg'}, 1348953700: {'path': 'temp/1743401218_2360575_1348953700_4b19fd1b92723b28ad20aa1ef79b9303.jpg', 'extension': 'jpg'}, 1348953707: {'path': 'temp/1743401218_2360575_1348953707_5b304ef64d66006f5f2feff873ff73d7.jpg', 'extension': 'jpg'}, 1348953757: {'path': 'temp/1743401218_2360575_1348953757_731f54ec74a2c7350f5cf031048a0817.jpg', 'extension': 'jpg'}, 1348953772: {'path': 'temp/1743401218_2360575_1348953772_32ce496e7e2bbd1c49ee18ea59d705a1.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 = 21899830; (('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 = 21899830 group by h (('08', 23),) 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=21899830 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 (21899830) 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 (21899830) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31032025 21899830 Nombre de photos uploadées : 23 / 23040 (0%) 31032025 21899830 Nombre de photos taguées (types de déchets): 0 / 23 (0%) 31032025 21899830 Nombre de photos taguées (volume) : 0 / 23 (0%) [{'photo_id': 1348951557, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/733b1c89418b42c70e3dd431c8b4c794.jpg', 'username': None, 'uploaded_at': 1743400877, 'text': 'image_31032025_08_00_04_010143m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348951491, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/63860c36cdbc1df61dcf6c795dbc711d.jpg', 'username': None, 'uploaded_at': 1743400877, 'text': 'image_31032025_08_00_13_009134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348951438, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/161cad6353c92bc6098483263c669a2b.jpg', 'username': None, 'uploaded_at': 1743400877, 'text': 'image_31032025_08_00_23_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348952169, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/4e23c925c7f44c1e68f52aca63cb8d38.jpg', 'username': None, 'uploaded_at': 1743400927, 'text': 'image_31032025_08_00_33_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ??????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021088123321533203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21899830, '2025-03-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1702716,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02179098129272461 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= 1702716 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710487, 'mtr_portfolio_id': 21897602, 'dashboard_result_id': 9750980, '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_P21897602_31-03-2025_07_33_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21897610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21897611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21897612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21897613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21897614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21897615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21897616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21897617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21897618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21897619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21897620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21897621, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710487, 'mtr_portfolio_id': 21898451, 'dashboard_result_id': 9750981, '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_P21898451_31-03-2025_07_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21898498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21898499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21898500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21898501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21898502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21898503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21898504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21898505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21898506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21898507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21898508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21898509, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710487, 'mtr_portfolio_id': 21899135, 'dashboard_result_id': 9750982, '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_P21899135_31-03-2025_08_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21899162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21899163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21899164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21899165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21899166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21899167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21899168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21899169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21899170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21899171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21899172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21899173, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710487, 'mtr_portfolio_id': 21899830, 'dashboard_result_id': 9750983, '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_P21899830_31-03-2025_08_05_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21899858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21899859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21899860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21899861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21899862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21899863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21899864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21899865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21899866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21899867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21899868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21899869, '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 = 21897602 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': 2707783, 'mtr_portfolio_id': 21897602, 'created_at': datetime.datetime(2025, 3, 31, 7, 33, 3), 'result': '0.04626413731483952', 'result_long': None, 'result_double': None}] Qualite : 0.04626413731483952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21897602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21897602_31-03-2025_07_33_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21897602 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_P21897602_31-03-2025_07_33_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21897610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21897611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21897612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21897613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21897614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21897615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21897616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21897617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21897618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21897619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21897620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21897621, 'pht': 3726}}" where mtr_portfolio_id = 21897602 and dashboard_run_id = 1710487 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`=21897602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9750980, 0.04626413731483952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21897602_31-03-2025_07_33_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21897610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21897611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21897612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21897613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21897614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21897615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21897616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21897617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21897618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21897619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21897620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21897621, '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 = 21898451 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': 2707838, 'mtr_portfolio_id': 21898451, 'created_at': datetime.datetime(2025, 3, 31, 7, 49, 2), 'result': '0.043962513316538554', 'result_long': None, 'result_double': None}] Qualite : 0.043962513316538554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21898451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21898451_31-03-2025_07_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21898451 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_P21898451_31-03-2025_07_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21898498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21898499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21898500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21898501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21898502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21898503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21898504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21898505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21898506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21898507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21898508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21898509, 'pht': 3726}}" where mtr_portfolio_id = 21898451 and dashboard_run_id = 1710487 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`=21898451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9750981, 0.043962513316538554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21898451_31-03-2025_07_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21898498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21898499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21898500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21898501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21898502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21898503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21898504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21898505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21898506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21898507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21898508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21898509, '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 = 21899135 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': 2707876, 'mtr_portfolio_id': 21899135, 'created_at': datetime.datetime(2025, 3, 31, 8, 2, 58), 'result': '0.0500926937161679', 'result_long': None, 'result_double': None}] Qualite : 0.0500926937161679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21899135 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21899135_31-03-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21899135 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_P21899135_31-03-2025_08_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21899162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21899163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21899164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21899165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21899166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21899167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21899168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21899169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21899170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21899171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21899172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21899173, 'pht': 3726}}" where mtr_portfolio_id = 21899135 and dashboard_run_id = 1710487 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`=21899135 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9750982, 0.0500926937161679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21899135_31-03-2025_08_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21899162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21899163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21899164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21899165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21899166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21899167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21899168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21899169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21899170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21899171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21899172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21899173, '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 = 21899830 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': 2707940, 'mtr_portfolio_id': 21899830, 'created_at': datetime.datetime(2025, 3, 31, 8, 6, 58), 'result': '0.06714139592554857', 'result_long': None, 'result_double': None}] Qualite : 0.06714139592554857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21899830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21899830_31-03-2025_08_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21899830 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_P21899830_31-03-2025_08_06_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21899858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21899859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21899860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21899861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21899862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21899863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21899864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21899865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21899866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21899867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21899868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21899869, 'pht': 3726}}" where mtr_portfolio_id = 21899830 and dashboard_run_id = 1710487 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`=21899830 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9750983, 0.06714139592554857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21899830_31-03-2025_08_06_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21899858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21899859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21899860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21899861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21899862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21899863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21899864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21899865, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21899866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21899867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21899868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21899869, '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 (21897602,21898451,21899135,21899830) result : ((1348945847,), (1348945857,), (1348945867,), (1348945876,), (1348945886,), (1348945895,), (1348945910,), (1348945914,), (1348945918,), (1348945922,), (1348945931,), (1348945937,), (1348945960,), (1348945965,), (1348945969,), (1348945973,), (1348945976,), (1348945979,), (1348945991,), (1348945995,), (1348946000,), (1348946008,), (1348946016,), (1348946025,), (1348946043,), (1348946045,), (1348946049,), (1348946052,), (1348946055,), (1348946059,), (1348946078,), (1348946084,), (1348946091,), (1348946098,), (1348946104,), (1348946108,), (1348946134,), (1348946138,), (1348946146,), (1348946151,), (1348946157,), (1348946163,), (1348946192,), (1348946196,), (1348946249,), (1348946259,), (1348946271,), (1348946290,), (1348946296,), (1348946322,), (1348946350,), (1348946354,), (1348946360,), (1348946368,), (1348946467,), (1348946479,), (1348946491,), (1348946509,), (1348946735,), (1348946739,), (1348946744,), (1348946768,), (1348946773,), (1348946779,), (1348946785,), (1348946790,), (1348946798,), (1348946879,), (1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,), (1348948442,), (1348948444,), (1348948448,), (1348948453,), (1348948459,), (1348948514,), (1348948502,), (1348948505,), (1348948511,), (1348948639,), (1348948641,), (1348948645,), (1348948816,), (1348948844,), (1348948851,), (1348949048,), (1348949051,), (1348949055,), (1348949059,), (1348949062,), (1348949109,), (1348949114,), (1348949123,), (1348949124,), (1348949134,), (1348949206,), (1348949209,), (1348949212,), (1348949263,), (1348949264,), (1348949268,), (1348949276,), (1348949370,), (1348949373,), (1348949375,), (1348949378,), (1348949383,), (1348949574,), (1348949576,), (1348949602,), (1348949603,), (1348949654,), (1348949657,), (1348949660,), (1348949663,), (1348949711,), (1348949712,), (1348949714,), (1348949716,), (1348949720,), (1348950001,), (1348950039,), (1348950068,), (1348950099,), (1348950110,), (1348950309,), (1348950310,), (1348950321,), (1348950722,), (1348950762,), (1348950816,), (1348950849,), (1348950880,), (1348951229,), (1348951614,), (1348951677,), (1348951740,), (1348951853,), (1348951881,), (1348951438,), (1348951491,), (1348951557,), (1348951973,), (1348952017,), (1348952074,), (1348952118,), (1348952169,), (1348952814,), (1348952847,), (1348952881,), (1348952910,), (1348952951,), (1348952987,), (1348953259,), (1348953276,), (1348953313,), (1348953661,), (1348953684,), (1348953700,), (1348953707,), (1348953757,), (1348953772,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31032025': {'nb_upload': 23, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21899830]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661] map_info['map_portfolio_photo'] : {21899830: [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661, 1348953313, 1348953276, 1348953259, 1348952987, 1348952951, 1348952910, 1348952881, 1348952847, 1348952814, 1348952169, 1348952118, 1348952074, 1348952017, 1348951973, 1348951557, 1348951491, 1348951438]} final : True mtd_id 4302 list_pids : [1348953772, 1348953757, 1348953707, 1348953700, 1348953684, 1348953661] Looping around the photos to save general results len do output : 1 /21899830Didn'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, '2707940') ('4302', '21899830', '1348953772', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953757', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953707', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953700', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953684', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348953661', None, None, None, None, None, '2707940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '21899830', 'None', None, None, None, None, '2707940'), ('4302', '21899830', '1348953772', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953757', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953707', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953700', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953684', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348953661', None, None, None, None, None, '2707940')] time used for this insertion : 0.012331008911132812 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.32732677459716797 time spend to save output : 0.01251983642578125 total time spend for step 5 : 0.3398466110229492 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 (2707940) 1.96user 2.31system 0:06.80elapsed 62%CPU (0avgtext+0avgdata 159196maxresident)k 56inputs+9944outputs (3major+63873minor)pagefaults 0swaps