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 : 2382049 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/2382049/ Name: python3 Umask: 0002 State: R (running) Tgid: 2382049 Ngid: 0 Pid: 2382049 PPid: 2382047 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2382049 NSpid: 2382049 NSpgid: 2379248 NSsid: 2379248 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98424 kB VmRSS: 98424 kB RssAnon: 59756 kB RssFile: 38668 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2382049', 'Ngid': '0', 'Pid': '2382049', 'PPid': '2382047', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2382049', 'NSpid': '2382049', 'NSpgid': '2379248', 'NSsid': '2379248', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98424 kB', 'VmRSS': '98424 kB', 'RssAnon': '59756 kB', 'RssFile': '38668 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '2382049', '1106936', '0', '1106936', '865684', '98424', 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': 1348954754, 'portfolio_id': 21899830}, {'photo_id': 1348954750, 'portfolio_id': 21899830}, {'photo_id': 1348954744, 'portfolio_id': 21899830}, {'photo_id': 1348954681, 'portfolio_id': 21899830}, {'photo_id': 1348954676, 'portfolio_id': 21899830}, {'photo_id': 1348954672, 'portfolio_id': 21899830}, {'photo_id': 1348954610, 'portfolio_id': 21899830}, {'photo_id': 1348954595, 'portfolio_id': 21899830}, {'photo_id': 1348954586, 'portfolio_id': 21899830}, {'photo_id': 1348954580, 'portfolio_id': 21899830}, {'photo_id': 1348954571, 'portfolio_id': 21899830}, {'photo_id': 1348954567, 'portfolio_id': 21899830}, {'photo_id': 1348954478, 'portfolio_id': 21899830}, {'photo_id': 1348954474, 'portfolio_id': 21899830}, {'photo_id': 1348954469, 'portfolio_id': 21899830}, {'photo_id': 1348954463, 'portfolio_id': 21899830}, {'photo_id': 1348954459, 'portfolio_id': 21899830}, {'photo_id': 1348954456, 'portfolio_id': 21899830}, {'photo_id': 1348954363, 'portfolio_id': 21899830}, {'photo_id': 1348954352, 'portfolio_id': 21899830}, {'photo_id': 1348954333, 'portfolio_id': 21899830}, {'photo_id': 1348954326, 'portfolio_id': 21899830}, {'photo_id': 1348954314, 'portfolio_id': 21899830}, {'photo_id': 1348954081, 'portfolio_id': 21899830}, {'photo_id': 1348954054, 'portfolio_id': 21899830}, {'photo_id': 1348954030, 'portfolio_id': 21899830}, {'photo_id': 1348954017, 'portfolio_id': 21899830}, {'photo_id': 1348953878, 'portfolio_id': 21899830}, {'photo_id': 1348953864, 'portfolio_id': 21899830}, {'photo_id': 1348953847, 'portfolio_id': 21899830}, {'photo_id': 1348953822, 'portfolio_id': 21899830}, {'photo_id': 1348953817, 'portfolio_id': 21899830}, {'photo_id': 1348953812, 'portfolio_id': 21899830}, {'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: [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567, 1348954478, 1348954474, 1348954469, 1348954463, 1348954459, 1348954456, 1348954363, 1348954352, 1348954333, 1348954326, 1348954314, 1348954081, 1348954054, 1348954030, 1348954017, 1348953878, 1348953864, 1348953847, 1348953822, 1348953817, 1348953812, 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.015678882598876953 #### 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:13:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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', 'papier', 'cartonnette', 'environnement', 'autre_refus', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'flou', 'metal', 'kraft', 'Teint_Dans_La_Masse'] 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','papier','cartonnette','environnement','autre_refus','mal_croppe','Carton_gris','Carton_brun','flou','metal','kraft','Teint_Dans_La_Masse')) 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','papier','cartonnette','environnement','autre_refus','mal_croppe','Carton_gris','Carton_brun','flou','metal','kraft','Teint_Dans_La_Masse')) 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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 59), '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,), (1348954734,), (1348954768,), (1348954769,), (1348954770,), (1348954771,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348954231,), (1348954287,), (1348954289,), (1348954581,), (1348954582,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348954575,), (1348954576,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348954272,), (1348954274,), (1348954276,), (1348954278,), (1348954578,), (1348954733,), (1348954766,), (1348954767,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348954264,), (1348954265,), (1348954577,), (1348954579,), (1348954729,), (1348954730,), (1348954731,), (1348954732,), (1348954763,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348954572,), (1348954726,), (1348954727,), (1348954757,), (1348954761,), (1348954762,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) 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','papier','cartonnette','environnement','autre_refus','mal_croppe','Carton_gris','Carton_brun','flou','metal','kraft','Teint_Dans_La_Masse')) 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','papier','cartonnette','environnement','autre_refus','mal_croppe','Carton_gris','Carton_brun','flou','metal','kraft','Teint_Dans_La_Masse')) 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, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 8, 10, 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 [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567] map_info['map_portfolio_photo'] : {21899830: [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567, 1348954478, 1348954474, 1348954469, 1348954463, 1348954459, 1348954456, 1348954363, 1348954352, 1348954333, 1348954326, 1348954314, 1348954081, 1348954054, 1348954030, 1348954017, 1348953878, 1348953864, 1348953847, 1348953822, 1348953817, 1348953812, 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 : [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567] 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', '1348954754', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954750', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954744', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954681', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954676', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954672', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954610', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954595', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954586', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954580', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954571', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954567', None, None, None, None, None, '2707940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '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', '1348954754', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954750', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954744', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954681', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954676', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954672', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954610', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954595', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954586', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954580', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954571', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954567', None, None, None, None, None, '2707940')] time used for this insertion : 0.39745163917541504 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.142800807952881 time spend to save output : 0.39782023429870605 total time spend for step 1 : 2.540621042251587 step2:final Mon Mar 31 08:13:04 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,1348953878,1348953864,1348953847,1348953822,1348953817,1348953812,1348954081,1348954054,1348954030,1348954017,1348954363,1348954352,1348954333,1348954326,1348954314,1348954478,1348954474,1348954469,1348954463,1348954459,1348954456,1348954610,1348954595,1348954586,1348954580,1348954571,1348954567,1348954681,1348954676,1348954672,1348954754,1348954750,1348954744); 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 : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} new output for save of step final : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567] map_info['map_portfolio_photo'] : {21899830: [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567, 1348954478, 1348954474, 1348954469, 1348954463, 1348954459, 1348954456, 1348954363, 1348954352, 1348954333, 1348954326, 1348954314, 1348954081, 1348954054, 1348954030, 1348954017, 1348953878, 1348953864, 1348953847, 1348953822, 1348953817, 1348953812, 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 : [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567] Looping around the photos to save general results len do output : 12 /1348954754.Didn't retrieve data . /1348954750.Didn't retrieve data . /1348954744.Didn't retrieve data . /1348954681.Didn't retrieve data . /1348954676.Didn't retrieve data . /1348954672.Didn't retrieve data . /1348954610.Didn't retrieve data . /1348954595.Didn't retrieve data . /1348954586.Didn't retrieve data . /1348954580.Didn't retrieve data . /1348954571.Didn't retrieve data . /1348954567.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', '1348954754', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954750', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954744', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954681', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954676', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954672', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954610', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954595', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954586', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954580', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954571', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954567', None, None, None, None, None, '2707940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21899830', '1348954754', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954750', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954744', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954681', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954676', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954672', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954610', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954595', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954586', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954580', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954571', '0.05709072227554205', None, None, None, None, '2707940'), ('4302', '21899830', '1348954567', '0.05709072227554205', None, None, None, None, '2707940')] time used for this insertion : 0.01348567008972168 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06998229026794434 time spend to save output : 0.014191865921020508 total time spend for step 2 : 0.08417415618896484 step3:velours_tree Mon Mar 31 08:13:05 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.3163590431213379 time spend to save output : 5.435943603515625e-05 total time spend for step 3 : 0.31641340255737305 step4:send_mail_cod Mon Mar 31 08:13:05 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 : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} input_args_next_step : {1348954754: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954754 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954750 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954744 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954681 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954676 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954672 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954610 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954595 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954586 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954580 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954571 depend.output_id : 0 input_args_next_step : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ()} output_args : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',)} args : 1348954567 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 : {1348954754: ('0.05709072227554205',), 1348954750: ('0.05709072227554205',), 1348954744: ('0.05709072227554205',), 1348954681: ('0.05709072227554205',), 1348954676: ('0.05709072227554205',), 1348954672: ('0.05709072227554205',), 1348954610: ('0.05709072227554205',), 1348954595: ('0.05709072227554205',), 1348954586: ('0.05709072227554205',), 1348954580: ('0.05709072227554205',), 1348954571: ('0.05709072227554205',), 1348954567: ('0.05709072227554205',), 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 :13, first value : ('0.05709072227554205',) 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 (1348954754,1348954750,1348954744,1348954681,1348954676,1348954672,1348954610,1348954595,1348954586,1348954580,1348954571,1348954567) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348954567 begin to download photo : 1348954586 begin to download photo : 1348954672 begin to download photo : 1348954744 download finish for photo 1348954567 begin to download photo : 1348954571 download finish for photo 1348954672 begin to download photo : 1348954676 download finish for photo 1348954586 begin to download photo : 1348954595 download finish for photo 1348954744 begin to download photo : 1348954750 download finish for photo 1348954571 begin to download photo : 1348954580 download finish for photo 1348954750 begin to download photo : 1348954754 download finish for photo 1348954595 begin to download photo : 1348954610 download finish for photo 1348954580 download finish for photo 1348954676 begin to download photo : 1348954681 download finish for photo 1348954610 download finish for photo 1348954754 download finish for photo 1348954681 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 : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P21899830_31-03-2025_08_13_05.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', 1348954734: '1743401472_3277681_1348954474_28535797ef6a3e5b974040e9194d232f_rle_crop_3740766800_0.png', 1348954768: '1743401493_3277901_1348954478_46ae210cfd0d1fc0af97064227d9ef42_rle_crop_3740769901_0.png', 1348954769: '1743401493_3277901_1348954352_72e41cac009f61a93bb713a4a58545e2_rle_crop_3740769918_0.png', 1348954770: '1743401493_3277901_1348954326_7f67010be4efd6366e52a6c84a71adbc_rle_crop_3740769952_0.png', 1348954771: '1743401493_3277901_1348954326_7f67010be4efd6366e52a6c84a71adbc_rle_crop_3740769945_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 .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/90a69c6df6b6684198948c8ae4b497e0_14918851.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c45554bbac6ab2d6114354435e24f304_24793642.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/4290a151b8949550f4dd9053f977d216_59505892.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c01c5130f36fa5bf1b29bc95601444c8_69045387.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/60c1597e2c403aecad836a84ccaaf47f_91040970.png change filename to text .imagette218998581743401585/ imagette218998581743401585/1743401493_3277901_1348954326_7f67010be4efd6366e52a6c84a71adbc_rle_crop_3740769945_0.png.png imagette218998581743401585/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760040_0.png.png imagette218998581743401585/1743401493_3277901_1348954352_72e41cac009f61a93bb713a4a58545e2_rle_crop_3740769918_0.png.png imagette218998581743401585/1743401131_3273798_1348952847_69c3fb41e83ce587e76d5730f26dec1f_rle_crop_3740760103_0.png.png imagette218998581743401585/1743401150_3273996_1348952987_da0a08783d3ad6318b107ad669776492_rle_crop_3740760138_0.png.png imagette218998581743401585/1743401493_3277901_1348954326_7f67010be4efd6366e52a6c84a71adbc_rle_crop_3740769952_0.png.png imagette218998581743401585/1743401472_3277681_1348954474_28535797ef6a3e5b974040e9194d232f_rle_crop_3740766800_0.png.png imagette218998581743401585/1743401131_3273798_1348952951_175d73e652cd217686956073f2a4661c_rle_crop_3740760062_0.png.png imagette218998581743401585/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760049_0.png.png imagette218998581743401585/1743401493_3277901_1348954478_46ae210cfd0d1fc0af97064227d9ef42_rle_crop_3740769901_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c2c4e5b792908bcdabb74cc0f2a20b95_28033504.png imagette218998581743401585 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', 1348954575: '1743401371_3276395_1348953812_3f8944f55de9114a7f0ca974dac852a5_rle_crop_3740763778_0.png', 1348954576: '1743401371_3276395_1348953812_3f8944f55de9114a7f0ca974dac852a5_rle_crop_3740763784_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 .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/42034805baf353ac073d3cf4d9df16ef_668792.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/a54fc9b8c041d6654e6165259b57695d_74878219.png change filename to text .imagette218998611743401586/ imagette218998611743401586/1743401371_3276395_1348953812_3f8944f55de9114a7f0ca974dac852a5_rle_crop_3740763784_0.png.png imagette218998611743401586/1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760183_0.png.png imagette218998611743401586/1743401371_3276395_1348953812_3f8944f55de9114a7f0ca974dac852a5_rle_crop_3740763778_0.png.png imagette218998611743401586/1743401150_3273996_1348951973_028f26b4e7d4f4fa0f02b7b43c776689_rle_crop_3740760194_0.png.png imagette218998621743401586/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/111309c2ad01d54fbb96a2581630d4fb_83920410.png imagette218998611743401586 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 : {} imagette218998621743401586 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', 1348954272: '1743401246_799866_1348953707_5b304ef64d66006f5f2feff873ff73d7_rle_crop_3740761080_0.png', 1348954274: '1743401246_799866_1348953700_4b19fd1b92723b28ad20aa1ef79b9303_rle_crop_3740762557_0.png', 1348954276: '1743401246_799866_1348953684_8c320cab20ed40c9aef53c59a579d823_rle_crop_3740762571_0.png', 1348954278: '1743401246_799866_1348953684_8c320cab20ed40c9aef53c59a579d823_rle_crop_3740762569_0.png', 1348954578: '1743401371_3276395_1348953847_1a60616d4df1d7a36a26ebadecd3b489_rle_crop_3740763690_0.png', 1348954733: '1743401472_3277681_1348954469_236f0db8cc1f25f22deb0db421e3a49b_rle_crop_3740766821_0.png', 1348954766: '1743401493_3277901_1348954478_46ae210cfd0d1fc0af97064227d9ef42_rle_crop_3740769899_0.png', 1348954767: '1743401493_3277901_1348954314_7b79d4cf807d31b55dfaf7312c5a5086_rle_crop_3740769959_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 .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c46a40a3e5b42b5191e1a4bc38619989_90020687.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/70af7f81013e1895f7a4b8cb47a033b6_71843782.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d8dad5a37baafcc2fb6f53736ef52eb8_22114860.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d1ffe708323446d03517ad9fb7e4c27a_41327469.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/f75b33d88736dc737d60ad676e3fe425_60152034.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/65b2dc0a9955a45da69ccfa90fef45d2_66252219.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c2220958960e84db5f35bae277c1cf4d_85880874.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9c3e555f4479387dc996b7274d7b1ada_58082141.png change filename to text .imagette218998631743401586/ imagette218998631743401586/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760121_0.png.png imagette218998631743401586/1743401246_799866_1348953707_5b304ef64d66006f5f2feff873ff73d7_rle_crop_3740761080_0.png.png imagette218998631743401586/1743401246_799866_1348953700_4b19fd1b92723b28ad20aa1ef79b9303_rle_crop_3740762557_0.png.png imagette218998631743401586/1743401246_799866_1348953684_8c320cab20ed40c9aef53c59a579d823_rle_crop_3740762569_0.png.png imagette218998631743401586/1743401493_3277901_1348954478_46ae210cfd0d1fc0af97064227d9ef42_rle_crop_3740769899_0.png.png imagette218998631743401586/1743401131_3273798_1348952910_e8b57f65d93abb22d76fb96c59e66493_rle_crop_3740760075_0.png.png imagette218998631743401586/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760039_0.png.png imagette218998631743401586/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760048_0.png.png imagette218998631743401586/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760115_0.png.png imagette218998631743401586/1743401131_3273798_1348952847_69c3fb41e83ce587e76d5730f26dec1f_rle_crop_3740760112_0.png.png imagette218998631743401586/1743401246_799866_1348953684_8c320cab20ed40c9aef53c59a579d823_rle_crop_3740762571_0.png.png imagette218998631743401586/1743401472_3277681_1348954469_236f0db8cc1f25f22deb0db421e3a49b_rle_crop_3740766821_0.png.png imagette218998631743401586/1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760187_0.png.png imagette218998631743401586/1743401371_3276395_1348953847_1a60616d4df1d7a36a26ebadecd3b489_rle_crop_3740763690_0.png.png imagette218998631743401586/1743401131_3273798_1348952951_175d73e652cd217686956073f2a4661c_rle_crop_3740760058_0.png.png imagette218998631743401586/1743401493_3277901_1348954314_7b79d4cf807d31b55dfaf7312c5a5086_rle_crop_3740769959_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b24c90e24271ad6461706755ebe69c69_14321969.png imagette218998631743401586 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 .imagette218998651743401587/ imagette218998651743401587/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760117_0.png.png imagette218998651743401587/1743401005_793054_1348951557_733b1c89418b42c70e3dd431c8b4c794_bib_crop_3740757717_0.jpg.jpg imagette218998651743401587/1743401005_793054_1348951438_161cad6353c92bc6098483263c669a2b_rle_crop_3740757760_0.png.png imagette218998651743401587/1743401005_793054_1348951438_161cad6353c92bc6098483263c669a2b_bib_crop_3740757735_0.jpg.jpg imagette218998651743401587/1743401150_3273996_1348952074_efabba5a44e2061c45af150af5de1f1e_rle_crop_3740760172_0.png.png imagette218998661743401588/ imagette218998691743401588/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/db466050b86cae742acbd5233bc0efee_79850226.png imagette218998651743401587 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 : {} imagette218998661743401588 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 : {} imagette218998691743401588 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', 1348954231: '1743401233_3274992_1348953772_32ce496e7e2bbd1c49ee18ea59d705a1_rle_crop_3740761060_0.png', 1348954287: '1743401246_799866_1348953757_731f54ec74a2c7350f5cf031048a0817_rle_crop_3740761069_0.png', 1348954289: '1743401246_799866_1348953707_5b304ef64d66006f5f2feff873ff73d7_rle_crop_3740761082_0.png', 1348954581: '1743401371_3276395_1348953847_1a60616d4df1d7a36a26ebadecd3b489_rle_crop_3740763693_0.png', 1348954582: '1743401371_3276395_1348953847_1a60616d4df1d7a36a26ebadecd3b489_rle_crop_3740763694_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 .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/60eaef5377915d48751e573d45b005cd_971473.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b39796e3de74cf0920d480355f8122f0_63320022.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/50e963ff59d09421e92fc5cc023116dc_52811486.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d4093b8cc8a7270328ef53942958d2a5_15846173.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/2cb8551dd1604820b68048985b5cfb16_48549334.png change filename to text .imagette218998591743401588/ imagette218998591743401588/1743401131_3273798_1348952881_3288566301066dfd43ad899428b35910_rle_crop_3740760092_0.png.png imagette218998591743401588/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760119_0.png.png imagette218998591743401588/1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760186_0.png.png imagette218998591743401588/1743401246_799866_1348953757_731f54ec74a2c7350f5cf031048a0817_rle_crop_3740761069_0.png.png imagette218998591743401588/1743401005_793054_1348951557_733b1c89418b42c70e3dd431c8b4c794_bib_crop_3740757715_0.jpg.jpg imagette218998591743401588/1743401233_3274992_1348953772_32ce496e7e2bbd1c49ee18ea59d705a1_rle_crop_3740761060_0.png.png imagette218998591743401588/1743401246_799866_1348953707_5b304ef64d66006f5f2feff873ff73d7_rle_crop_3740761082_0.png.png imagette218998591743401588/1743401371_3276395_1348953847_1a60616d4df1d7a36a26ebadecd3b489_rle_crop_3740763693_0.png.png imagette218998591743401588/1743401131_3273798_1348952910_e8b57f65d93abb22d76fb96c59e66493_rle_crop_3740760073_0.png.png imagette218998591743401588/1743401371_3276395_1348953847_1a60616d4df1d7a36a26ebadecd3b489_rle_crop_3740763694_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/f980efe6ae84c73772cfb0ca9eb2fe6e_2135547.png imagette218998591743401588 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', 1348954264: '1743401246_799866_1348953661_7a551f5e4494200f926a75b8d9a31073_rle_crop_3740762585_0.png', 1348954265: '1743401246_799866_1348953661_7a551f5e4494200f926a75b8d9a31073_rle_crop_3740762595_0.png', 1348954577: '1743401371_3276395_1348953817_c8d0f233ca16415872fce44967ab3db8_rle_crop_3740763755_0.png', 1348954579: '1743401391_3276608_1348953878_34bd1e03aceccbe0652960895ef6a4d5_rle_crop_3740763820_0.png', 1348954729: '1743401472_3277681_1348954474_28535797ef6a3e5b974040e9194d232f_rle_crop_3740766808_0.png', 1348954730: '1743401472_3277681_1348954474_28535797ef6a3e5b974040e9194d232f_rle_crop_3740766805_0.png', 1348954731: '1743401472_3277681_1348954469_236f0db8cc1f25f22deb0db421e3a49b_rle_crop_3740766822_0.png', 1348954732: '1743401472_3277681_1348954456_77a65490a2d710cf9f45e3a555dca2ba_rle_crop_3740767530_0.png', 1348954763: '1743401493_3277901_1348954478_46ae210cfd0d1fc0af97064227d9ef42_rle_crop_3740769905_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 .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/7a50b37b216522ae839f34351d0e5e87_65595330.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d8cbd06314bd8fe653206507f2fe09dd_30978577.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/21d1127848cc02f2d596fe0e02b4c065_47385307.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b9d5103c14e84458cd5b69b91f6732ce_68439201.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/fc3106ef2d126c8de0772268b474ec83_56922975.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c764d54e15705a9d8c960e8d931504b1_49699093.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/83ba0095f2da0962ac53a8e07aaf7308_77560859.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/da53bdd60a147d3dd7f2fc0dab158c3b_17281224.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/831b93d9b8c76f077a166f8809ad4c05_98641932.png change filename to text .imagette218998641743401588/ imagette218998641743401588/1743401246_799866_1348953661_7a551f5e4494200f926a75b8d9a31073_rle_crop_3740762585_0.png.png imagette218998641743401588/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760045_0.png.png imagette218998641743401588/1743401391_3276608_1348953878_34bd1e03aceccbe0652960895ef6a4d5_rle_crop_3740763820_0.png.png imagette218998641743401588/1743401150_3273996_1348952987_da0a08783d3ad6318b107ad669776492_rle_crop_3740760137_0.png.png imagette218998641743401588/1743401472_3277681_1348954474_28535797ef6a3e5b974040e9194d232f_rle_crop_3740766805_0.png.png imagette218998641743401588/1743401131_3273798_1348952881_3288566301066dfd43ad899428b35910_rle_crop_3740760086_0.png.png imagette218998641743401588/1743401371_3276395_1348953817_c8d0f233ca16415872fce44967ab3db8_rle_crop_3740763755_0.png.png imagette218998641743401588/1743401246_799866_1348953661_7a551f5e4494200f926a75b8d9a31073_rle_crop_3740762595_0.png.png imagette218998641743401588/1743401472_3277681_1348954456_77a65490a2d710cf9f45e3a555dca2ba_rle_crop_3740767530_0.png.png imagette218998641743401588/1743401472_3277681_1348954474_28535797ef6a3e5b974040e9194d232f_rle_crop_3740766808_0.png.png imagette218998641743401588/1743401472_3277681_1348954469_236f0db8cc1f25f22deb0db421e3a49b_rle_crop_3740766822_0.png.png imagette218998641743401588/1743401150_3273996_1348952017_8c4d95771e3970ff1e21c097589e67bd_rle_crop_3740760189_0.png.png imagette218998641743401588/1743401493_3277901_1348954478_46ae210cfd0d1fc0af97064227d9ef42_rle_crop_3740769905_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/1b297f2d0312734aa44fa69536d379ec_61584088.png imagette218998641743401588 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', 1348954572: '1743401371_3276395_1348953847_1a60616d4df1d7a36a26ebadecd3b489_rle_crop_3740763695_0.png', 1348954726: '1743401472_3277681_1348954474_28535797ef6a3e5b974040e9194d232f_rle_crop_3740766807_0.png', 1348954727: '1743401472_3277681_1348954474_28535797ef6a3e5b974040e9194d232f_rle_crop_3740766810_0.png', 1348954757: '1743401493_3277901_1348954333_18fe962aa94d9c677ad39f08d8ea6eb3_rle_crop_3740769931_0.png', 1348954761: '1743401493_3277901_1348954333_18fe962aa94d9c677ad39f08d8ea6eb3_rle_crop_3740769934_0.png', 1348954762: '1743401493_3277901_1348954314_7b79d4cf807d31b55dfaf7312c5a5086_rle_crop_3740769962_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 .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/bad41556a636c6e6bd90f3271817cfeb_18099554.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/80386ee299a37514bde208534f03b197_82920485.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/4c019830e293ef38e01d0523da0cf258_5292909.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e282db88dabc5ed4a5fde304d9bbe1ec_42926300.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/0cc3f46b45edcbb00f9421a8d42405e5_25627106.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e1b021a4b411f8595fe424529465e7e1_13577737.png change filename to text .imagette218998671743401589/ imagette218998671743401589/1743401371_3276395_1348953847_1a60616d4df1d7a36a26ebadecd3b489_rle_crop_3740763695_0.png.png imagette218998671743401589/1743401150_3273996_1348952118_2fcf6c2ee0465e9750538b5500fc9ea3_rle_crop_3740760150_0.png.png imagette218998671743401589/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760118_0.png.png imagette218998671743401589/1743401131_3273798_1348953313_45bc47a38e40e4bfb962098425e12b9b_rle_crop_3740760046_0.png.png imagette218998671743401589/1743401131_3273798_1348952814_79f818789dc4f58ed30705eae8bf3441_rle_crop_3740760120_0.png.png imagette218998671743401589/1743401493_3277901_1348954314_7b79d4cf807d31b55dfaf7312c5a5086_rle_crop_3740769962_0.png.png imagette218998671743401589/1743401005_793054_1348951491_63860c36cdbc1df61dcf6c795dbc711d_bib_crop_3740757724_0.jpg.jpg imagette218998671743401589/1743401472_3277681_1348954474_28535797ef6a3e5b974040e9194d232f_rle_crop_3740766810_0.png.png imagette218998671743401589/1743401493_3277901_1348954333_18fe962aa94d9c677ad39f08d8ea6eb3_rle_crop_3740769934_0.png.png imagette218998671743401589/1743401472_3277681_1348954474_28535797ef6a3e5b974040e9194d232f_rle_crop_3740766807_0.png.png imagette218998671743401589/1743401493_3277901_1348954333_18fe962aa94d9c677ad39f08d8ea6eb3_rle_crop_3740769931_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/7a4f50304b4771931cc92d0948d376cf_81613730.png imagette218998671743401589 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[1348954754] : ('0.05709072227554205',) no score found for photo 1348954754 We are sending mail with results at report@fotonower.com args[1348954750] : ('0.05709072227554205',) no score found for photo 1348954750 We are sending mail with results at report@fotonower.com args[1348954744] : ('0.05709072227554205',) no score found for photo 1348954744 We are sending mail with results at report@fotonower.com args[1348954681] : ('0.05709072227554205',) no score found for photo 1348954681 We are sending mail with results at report@fotonower.com args[1348954676] : ('0.05709072227554205',) no score found for photo 1348954676 We are sending mail with results at report@fotonower.com args[1348954672] : ('0.05709072227554205',) no score found for photo 1348954672 We are sending mail with results at report@fotonower.com args[1348954610] : ('0.05709072227554205',) no score found for photo 1348954610 We are sending mail with results at report@fotonower.com args[1348954595] : ('0.05709072227554205',) no score found for photo 1348954595 We are sending mail with results at report@fotonower.com args[1348954586] : ('0.05709072227554205',) no score found for photo 1348954586 We are sending mail with results at report@fotonower.com args[1348954580] : ('0.05709072227554205',) no score found for photo 1348954580 We are sending mail with results at report@fotonower.com args[1348954571] : ('0.05709072227554205',) no score found for photo 1348954571 We are sending mail with results at report@fotonower.com args[1348954567] : ('0.05709072227554205',) no score found for photo 1348954567 We are sending mail with results at report@fotonower.com refus_total : 0.05709072227554205 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_13_05.pdf results_Auto_P21899830_31-03-2025_08_13_05.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21899830_31-03-2025_08_13_05.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_13_05.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21899830_31-03-2025_08_13_05.pdf','pdf','','0.29','0.05709072227554205') 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 [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567] map_info['map_portfolio_photo'] : {21899830: [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567, 1348954478, 1348954474, 1348954469, 1348954463, 1348954459, 1348954456, 1348954363, 1348954352, 1348954333, 1348954326, 1348954314, 1348954081, 1348954054, 1348954030, 1348954017, 1348953878, 1348953864, 1348953847, 1348953822, 1348953817, 1348953812, 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 : [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567] 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', '1348954754', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954750', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954744', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954681', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954676', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954672', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954610', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954595', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954586', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954580', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954571', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954567', None, None, None, None, None, '2707940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21899830', '1348954754', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954750', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954744', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954681', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954676', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954672', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954610', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954595', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954586', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954580', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954571', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954567', None, None, None, None, None, '2707940')] time used for this insertion : 0.013611078262329102 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.132710695266724 time spend to save output : 0.013820409774780273 total time spend for step 4 : 6.146531105041504 step5:split_time_score Mon Mar 31 08:13:11 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 : {1348954567: {'path': 'temp/1743401585_2382049_1348954567_4699c477cb7208dc34acedb2e9033edc.jpg', 'extension': 'jpg'}, 1348954571: {'path': 'temp/1743401585_2382049_1348954571_b9b3963fa8691d89d9999b78556d83c9.jpg', 'extension': 'jpg'}, 1348954580: {'path': 'temp/1743401585_2382049_1348954580_5f82ba0a7713a626811936bb449e9580.jpg', 'extension': 'jpg'}, 1348954586: {'path': 'temp/1743401585_2382049_1348954586_350e1750af5467e9c48582de8acabae8.jpg', 'extension': 'jpg'}, 1348954595: {'path': 'temp/1743401585_2382049_1348954595_31ded80881f513dcb4b6a8e5a91619dc.jpg', 'extension': 'jpg'}, 1348954610: {'path': 'temp/1743401585_2382049_1348954610_6fd3641a512009ddff9c51e02427934b.jpg', 'extension': 'jpg'}, 1348954744: {'path': 'temp/1743401585_2382049_1348954744_4241e40fce50c3511dbc3e6ebc87a57f.jpg', 'extension': 'jpg'}, 1348954750: {'path': 'temp/1743401585_2382049_1348954750_f6b820878892b660e00122477b2bf8ed.jpg', 'extension': 'jpg'}, 1348954754: {'path': 'temp/1743401585_2382049_1348954754_cd08aa6a0baa2a4cefe624a96cb85d73.jpg', 'extension': 'jpg'}, 1348954672: {'path': 'temp/1743401585_2382049_1348954672_13941df14cc6760ee25d4b5417cfe6c8.jpg', 'extension': 'jpg'}, 1348954676: {'path': 'temp/1743401585_2382049_1348954676_7a3173dfa1d47c9440fe81f9da912232.jpg', 'extension': 'jpg'}, 1348954681: {'path': 'temp/1743401585_2382049_1348954681_a8aa9f8581feceb6c17e432af4b556a6.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', 56),) 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 : 56 / 23040 (0%) 31032025 21899830 Nombre de photos taguées (types de déchets): 0 / 56 (0%) 31032025 21899830 Nombre de photos taguées (volume) : 0 / 56 (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 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ???????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026161670684814453 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.02248215675354004 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': 1710505, 'mtr_portfolio_id': 21897602, 'dashboard_result_id': 9751159, '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': 1710505, 'mtr_portfolio_id': 21898451, 'dashboard_result_id': 9751160, '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': 1710505, 'mtr_portfolio_id': 21899135, 'dashboard_result_id': 9751161, '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': 1710505, 'mtr_portfolio_id': 21899830, 'dashboard_result_id': 9751162, '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_11_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 = 1710505 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 (9751159, 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 = 1710505 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 (9751160, 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 = 1710505 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 (9751161, 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, 13, 5), 'result': '0.05709072227554205', 'result_long': None, 'result_double': None}] Qualite : 0.05709072227554205 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_13_05.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_13_05.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 = 1710505 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 (9751162, 0.05709072227554205, "{'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_13_05.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,), (1348953812,), (1348953817,), (1348953822,), (1348953847,), (1348953864,), (1348953878,), (1348954017,), (1348954030,), (1348954054,), (1348954081,), (1348954314,), (1348954326,), (1348954333,), (1348954352,), (1348954363,), (1348954456,), (1348954459,), (1348954463,), (1348954469,), (1348954474,), (1348954478,), (1348954567,), (1348954571,), (1348954580,), (1348954586,), (1348954595,), (1348954610,), (1348954672,), (1348954676,), (1348954681,), (1348954744,), (1348954750,), (1348954754,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31032025': {'nb_upload': 56, '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 [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567] map_info['map_portfolio_photo'] : {21899830: [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567, 1348954478, 1348954474, 1348954469, 1348954463, 1348954459, 1348954456, 1348954363, 1348954352, 1348954333, 1348954326, 1348954314, 1348954081, 1348954054, 1348954030, 1348954017, 1348953878, 1348953864, 1348953847, 1348953822, 1348953817, 1348953812, 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 : [1348954754, 1348954750, 1348954744, 1348954681, 1348954676, 1348954672, 1348954610, 1348954595, 1348954586, 1348954580, 1348954571, 1348954567] 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', '1348954754', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954750', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954744', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954681', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954676', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954672', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954610', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954595', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954586', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954580', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954571', None, None, None, None, None, '2707940') ('4302', None, None, None, None, None, None, None, '2707940') ('4302', '21899830', '1348954567', None, None, None, None, None, '2707940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21899830', 'None', None, None, None, None, '2707940'), ('4302', '21899830', '1348954754', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954750', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954744', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954681', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954676', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954672', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954610', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954595', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954586', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954580', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954571', None, None, None, None, None, '2707940'), ('4302', '21899830', '1348954567', None, None, None, None, None, '2707940')] time used for this insertion : 0.014116287231445312 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3586869239807129 time spend to save output : 0.014310598373413086 total time spend for step 5 : 0.372997522354126 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) 2.24user 2.50system 0:17.25elapsed 27%CPU (0avgtext+0avgdata 160712maxresident)k 32inputs+16672outputs (0major+71879minor)pagefaults 0swaps