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 : 2643922 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 (2616163) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2616163) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840746 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2616163'] with mtr_portfolio_ids : ['20840746'] and first list_photo_ids : [] new path : /proc/2643922/ Name: python3 Umask: 0002 State: R (running) Tgid: 2643922 Ngid: 0 Pid: 2643922 PPid: 2643921 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2643922 NSpid: 2643922 NSpgid: 2640279 NSsid: 2640279 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 96732 kB VmRSS: 96732 kB RssAnon: 59748 kB RssFile: 36984 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 580 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2643922', 'Ngid': '0', 'Pid': '2643922', 'PPid': '2643921', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2643922', 'NSpid': '2643922', 'NSpgid': '2640279', 'NSsid': '2640279', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '96732 kB', 'VmRSS': '96732 kB', 'RssAnon': '59748 kB', 'RssFile': '36984 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '580 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '2643922', '1106848', '0', '1106848', '865596', '96732', b'', 'marlene', '2616163') 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 (20840746) 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 (2616163 ) ) 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 (20840746) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339731560, 'portfolio_id': 20840746}, {'photo_id': 1339731521, 'portfolio_id': 20840746}, {'photo_id': 1339731518, 'portfolio_id': 20840746}, {'photo_id': 1339731515, 'portfolio_id': 20840746}, {'photo_id': 1339731511, 'portfolio_id': 20840746}, {'photo_id': 1339731506, 'portfolio_id': 20840746}, {'photo_id': 1339731495, 'portfolio_id': 20840746}, {'photo_id': 1339731157, 'portfolio_id': 20840746}, {'photo_id': 1339731129, 'portfolio_id': 20840746}, {'photo_id': 1339731000, 'portfolio_id': 20840746}, {'photo_id': 1339730909, 'portfolio_id': 20840746}, {'photo_id': 1339730703, 'portfolio_id': 20840746}, {'photo_id': 1339730700, 'portfolio_id': 20840746}, {'photo_id': 1339730696, 'portfolio_id': 20840746}, {'photo_id': 1339730663, 'portfolio_id': 20840746}, {'photo_id': 1339730656, 'portfolio_id': 20840746}, {'photo_id': 1339730648, 'portfolio_id': 20840746}, {'photo_id': 1339730644, 'portfolio_id': 20840746}, {'photo_id': 1339730543, 'portfolio_id': 20840746}, {'photo_id': 1339730533, 'portfolio_id': 20840746}, {'photo_id': 1339730528, 'portfolio_id': 20840746}, {'photo_id': 1339730523, 'portfolio_id': 20840746}, {'photo_id': 1339730465, 'portfolio_id': 20840746}, {'photo_id': 1339730461, 'portfolio_id': 20840746}, {'photo_id': 1339730430, 'portfolio_id': 20840746}, {'photo_id': 1339730377, 'portfolio_id': 20840746}, {'photo_id': 1339730371, 'portfolio_id': 20840746}, {'photo_id': 1339730365, 'portfolio_id': 20840746}, {'photo_id': 1339730298, 'portfolio_id': 20840746}, {'photo_id': 1339730196, 'portfolio_id': 20840746}, {'photo_id': 1339730178, 'portfolio_id': 20840746}, {'photo_id': 1339730074, 'portfolio_id': 20840746}, {'photo_id': 1339730070, 'portfolio_id': 20840746}, {'photo_id': 1339730066, 'portfolio_id': 20840746}, {'photo_id': 1339730061, 'portfolio_id': 20840746}, {'photo_id': 1339730056, 'portfolio_id': 20840746}, {'photo_id': 1339730050, 'portfolio_id': 20840746}, {'photo_id': 1339730005, 'portfolio_id': 20840746}, {'photo_id': 1339730000, 'portfolio_id': 20840746}, {'photo_id': 1339729991, 'portfolio_id': 20840746}, {'photo_id': 1339729939, 'portfolio_id': 20840746}, {'photo_id': 1339729935, 'portfolio_id': 20840746}, {'photo_id': 1339729917, 'portfolio_id': 20840746}, {'photo_id': 1339729866, 'portfolio_id': 20840746}, {'photo_id': 1339729854, 'portfolio_id': 20840746}, {'photo_id': 1339729849, 'portfolio_id': 20840746}, {'photo_id': 1339729845, 'portfolio_id': 20840746}, {'photo_id': 1339729823, 'portfolio_id': 20840746}, {'photo_id': 1339729713, 'portfolio_id': 20840746}, {'photo_id': 1339729699, 'portfolio_id': 20840746}, {'photo_id': 1339729322, 'portfolio_id': 20840746}, {'photo_id': 1339729318, 'portfolio_id': 20840746}, {'photo_id': 1339729197, 'portfolio_id': 20840746}, {'photo_id': 1339729193, 'portfolio_id': 20840746}, {'photo_id': 1339729187, 'portfolio_id': 20840746}] map_portfolio_id_photo_id: {20840746: [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909, 1339730703, 1339730700, 1339730696, 1339730663, 1339730656, 1339730648, 1339730644, 1339730543, 1339730533, 1339730528, 1339730523, 1339730465, 1339730461, 1339730430, 1339730377, 1339730371, 1339730365, 1339730298, 1339730196, 1339730178, 1339730074, 1339730070, 1339730066, 1339730061, 1339730056, 1339730050, 1339730005, 1339730000, 1339729991, 1339729939, 1339729935, 1339729917, 1339729866, 1339729854, 1339729849, 1339729845, 1339729823, 1339729713, 1339729699, 1339729322, 1339729318, 1339729197, 1339729193, 1339729187]} ##### 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.014358282089233398 #### 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 Wed Feb 26 14:02:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20840746) 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 : 20840746 get user id for portfolio 20840746 get sub ptf for main ptf 20840746, type 3726 and hashtags ['autre_refus', 'kraft', 'Carton_gris', 'cartonnette', 'Carton_brun', 'mal_croppe', 'plastique', 'metal', 'environnement', 'papier', 'Teint_Dans_La_Masse', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20840746 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Carton_gris','cartonnette','Carton_brun','mal_croppe','plastique','metal','environnement','papier','Teint_Dans_La_Masse','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20840746 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Carton_gris','cartonnette','Carton_brun','mal_croppe','plastique','metal','environnement','papier','Teint_Dans_La_Masse','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20840746, 'sub_port_id': 20840783, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475025, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'Teint_Dans_La_Masse': {'main_port_id': 20840746, 'sub_port_id': 20840784, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475026, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'Carton_brun': {'main_port_id': 20840746, 'sub_port_id': 20840785, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475027, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'metal': {'main_port_id': 20840746, 'sub_port_id': 20840786, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475028, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'environnement': {'main_port_id': 20840746, 'sub_port_id': 20840787, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475029, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'Carton_gris': {'main_port_id': 20840746, 'sub_port_id': 20840788, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475030, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'mal_croppe': {'main_port_id': 20840746, 'sub_port_id': 20840789, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475031, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'plastique': {'main_port_id': 20840746, 'sub_port_id': 20840790, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475032, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'autre_refus': {'main_port_id': 20840746, 'sub_port_id': 20840791, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475033, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'cartonnette': {'main_port_id': 20840746, 'sub_port_id': 20840792, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475034, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'papier': {'main_port_id': 20840746, 'sub_port_id': 20840793, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475035, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}, 'kraft': {'main_port_id': 20840746, 'sub_port_id': 20840794, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475036, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20840783 , 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=20840746 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 (20840783) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840784 , 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=20840746 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 (20840784) result : ((1339729812,), (1339729813,), (1339730358,), (1339730359,), (1339730360,), (1339730361,), (1339730490,), (1339730491,), (1339730492,), (1339730660,), (1339730661,), (1339730730,), (1339731497,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840785 , 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=20840746 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 (20840785) result : ((1339729983,), (1339730366,), (1339730497,), (1339730498,), (1339730499,), (1339730500,), (1339730505,), (1339730506,), (1339730654,), (1339730655,), (1339730674,), (1339730732,), (1339730733,), (1339730734,), (1339730735,), (1339730762,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840786 , 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=20840746 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 (20840786) result : ((1339730370,), (1339730512,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840787 , 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=20840746 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 (20840787) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840788 , 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=20840746 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 (20840788) result : ((1339729816,), (1339730075,), (1339730494,), (1339730495,), (1339730653,), (1339730669,), (1339730670,), (1339730671,), (1339730672,), (1339730754,), (1339730756,), (1339731554,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840789 , 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=20840746 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 (20840789) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840790 , 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=20840746 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 (20840790) result : ((1339729818,), (1339730369,), (1339730503,), (1339730509,), (1339730510,), (1339730657,), (1339730676,), (1339730677,), (1339730678,), (1339730753,), (1339730755,), (1339731503,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840791 , 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=20840746 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 (20840791) result : ((1339729814,), (1339729815,), (1339729981,), (1339730652,), (1339730664,), (1339730665,), (1339730666,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840792 , 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=20840746 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 (20840792) result : ((1339730364,), (1339730501,), (1339730502,), (1339731500,), (1339731501,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840793 , 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=20840746 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 (20840793) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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 20840794 , 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=20840746 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 (20840794) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20840746) result : ((1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) 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 (1339730700,1339731000,1339730000) 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`=20840746 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Carton_gris','cartonnette','Carton_brun','mal_croppe','plastique','metal','environnement','papier','Teint_Dans_La_Masse','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20840746 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','Carton_gris','cartonnette','Carton_brun','mal_croppe','plastique','metal','environnement','papier','Teint_Dans_La_Masse','flou')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 20840746, 'sub_port_id': 20840795, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475037, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 20840746, 'sub_port_id': 20840796, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475038, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'Carton_brun': {'main_port_id': 20840746, 'sub_port_id': 20840797, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475039, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'metal': {'main_port_id': 20840746, 'sub_port_id': 20840798, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475040, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'environnement': {'main_port_id': 20840746, 'sub_port_id': 20840799, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475041, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'Carton_gris': {'main_port_id': 20840746, 'sub_port_id': 20840800, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475042, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'mal_croppe': {'main_port_id': 20840746, 'sub_port_id': 20840801, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475043, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'plastique': {'main_port_id': 20840746, 'sub_port_id': 20840802, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475044, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'autre_refus': {'main_port_id': 20840746, 'sub_port_id': 20840803, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475045, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'cartonnette': {'main_port_id': 20840746, 'sub_port_id': 20840804, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475046, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'papier': {'main_port_id': 20840746, 'sub_port_id': 20840805, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475047, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}, 'kraft': {'main_port_id': 20840746, 'sub_port_id': 20840806, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13475048, 'last_updated_at': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 13, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 13, 51, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840783 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840796,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840784 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840797,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840785 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840798,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840786 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840799,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840787 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840800,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840788 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840801,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840789 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840802,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840790 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840803,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840791 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840804,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840792 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840805,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840793 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20840806,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20840794 lien utilise dans velours : https://www.fotonower.com/velours/20840795,20840796,20840797,20840798,20840799,20840800,20840801,20840802,20840803,20840804,20840805,20840806?tags=flou,Teint_Dans_La_Masse,Carton_brun,metal,environnement,Carton_gris,mal_croppe,plastique,autre_refus,cartonnette,papier,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20840746]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909] map_info['map_portfolio_photo'] : {20840746: [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909, 1339730703, 1339730700, 1339730696, 1339730663, 1339730656, 1339730648, 1339730644, 1339730543, 1339730533, 1339730528, 1339730523, 1339730465, 1339730461, 1339730430, 1339730377, 1339730371, 1339730365, 1339730298, 1339730196, 1339730178, 1339730074, 1339730070, 1339730066, 1339730061, 1339730056, 1339730050, 1339730005, 1339730000, 1339729991, 1339729939, 1339729935, 1339729917, 1339729866, 1339729854, 1339729849, 1339729845, 1339729823, 1339729713, 1339729699, 1339729322, 1339729318, 1339729197, 1339729193, 1339729187]} final : False mtd_id 4302 list_pids : [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909] Looping around the photos to save general results len do output : 1 /20840746. 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, '2616163') ('4302', '20840746', '1339731560', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731521', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731518', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731515', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731511', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731506', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731495', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731157', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731129', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731000', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339730909', None, None, None, None, None, '2616163') 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', None, '20840746', "{'flou': 20840783, 'Teint_Dans_La_Masse': 20840784, 'Carton_brun': 20840785, 'metal': 20840786, 'environnement': 20840787, 'Carton_gris': 20840788, 'mal_croppe': 20840789, 'plastique': 20840790, 'autre_refus': 20840791, 'cartonnette': 20840792, 'papier': 20840793, 'kraft': 20840794}", None, None, None, None, '2616163'), ('4302', '20840746', '1339731560', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731521', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731518', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731515', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731511', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731506', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731495', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731157', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731129', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731000', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339730909', None, None, None, None, None, '2616163')] time used for this insertion : 0.013566255569458008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7431881427764893 time spend to save output : 0.01386713981628418 total time spend for step 1 : 0.7570552825927734 step2:final Wed Feb 26 14:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20840746) 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 20840746 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339729197,1339729193,1339729187,1339729322,1339729318,1339729713,1339729699,1339729866,1339729854,1339729849,1339729823,1339729845,1339729939,1339729935,1339729917,1339730005,1339730000,1339729991,1339730074,1339730070,1339730066,1339730061,1339730056,1339730050,1339730377,1339730371,1339730365,1339730298,1339730196,1339730178,1339730465,1339730461,1339730430,1339730543,1339730533,1339730528,1339730523,1339730663,1339730656,1339730648,1339730644,1339730703,1339730700,1339730696,1339731157,1339731129,1339731000,1339730909,1339731521,1339731518,1339731515,1339731511,1339731506,1339731495,1339731560); 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([20840746]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} new output for save of step final : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909] map_info['map_portfolio_photo'] : {20840746: [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909, 1339730703, 1339730700, 1339730696, 1339730663, 1339730656, 1339730648, 1339730644, 1339730543, 1339730533, 1339730528, 1339730523, 1339730465, 1339730461, 1339730430, 1339730377, 1339730371, 1339730365, 1339730298, 1339730196, 1339730178, 1339730074, 1339730070, 1339730066, 1339730061, 1339730056, 1339730050, 1339730005, 1339730000, 1339729991, 1339729939, 1339729935, 1339729917, 1339729866, 1339729854, 1339729849, 1339729845, 1339729823, 1339729713, 1339729699, 1339729322, 1339729318, 1339729197, 1339729193, 1339729187]} final : False mtd_id 4302 list_pids : [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909] Looping around the photos to save general results len do output : 11 /1339731560.Didn't retrieve data . /1339731521.Didn't retrieve data . /1339731518.Didn't retrieve data . /1339731515.Didn't retrieve data . /1339731511.Didn't retrieve data . /1339731506.Didn't retrieve data . /1339731495.Didn't retrieve data . /1339731157.Didn't retrieve data . /1339731129.Didn't retrieve data . /1339731000.Didn't retrieve data . /1339730909.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, '2616163') ('4302', '20840746', '1339731560', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731521', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731518', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731515', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731511', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731506', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731495', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731157', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731129', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731000', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339730909', None, None, None, None, None, '2616163') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '20840746', '1339731560', '0.10973696435295362', None, None, None, None, '2616163'), ('4302', '20840746', '1339731521', '0.10973696435295362', None, None, None, None, '2616163'), ('4302', '20840746', '1339731518', '0.10973696435295362', None, None, None, None, '2616163'), ('4302', '20840746', '1339731515', '0.10973696435295362', None, None, None, None, '2616163'), ('4302', '20840746', '1339731511', '0.10973696435295362', None, None, None, None, '2616163'), ('4302', '20840746', '1339731506', '0.10973696435295362', None, None, None, None, '2616163'), ('4302', '20840746', '1339731495', '0.10973696435295362', None, None, None, None, '2616163'), ('4302', '20840746', '1339731157', '0.10973696435295362', None, None, None, None, '2616163'), ('4302', '20840746', '1339731129', '0.10973696435295362', None, None, None, None, '2616163'), ('4302', '20840746', '1339731000', '0.10973696435295362', None, None, None, None, '2616163'), ('4302', '20840746', '1339730909', '0.10973696435295362', None, None, None, None, '2616163')] time used for this insertion : 0.012462139129638672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07106733322143555 time spend to save output : 0.013068437576293945 total time spend for step 2 : 0.08413577079772949 step3:velours_tree Wed Feb 26 14:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20840746: [{'flou': 20840783, 'Teint_Dans_La_Masse': 20840784, 'Carton_brun': 20840785, 'metal': 20840786, 'environnement': 20840787, 'Carton_gris': 20840788, 'mal_croppe': 20840789, 'plastique': 20840790, 'autre_refus': 20840791, 'cartonnette': 20840792, 'papier': 20840793, 'kraft': 20840794}]} input_args_next_step : {20840746: ()} output_args : {20840746: [{'flou': 20840783, 'Teint_Dans_La_Masse': 20840784, 'Carton_brun': 20840785, 'metal': 20840786, 'environnement': 20840787, 'Carton_gris': 20840788, 'mal_croppe': 20840789, 'plastique': 20840790, 'autre_refus': 20840791, 'cartonnette': 20840792, 'papier': 20840793, 'kraft': 20840794}]} args : 20840746 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 : ({'flou': 20840783, 'Teint_Dans_La_Masse': 20840784, 'Carton_brun': 20840785, 'metal': 20840786, 'environnement': 20840787, 'Carton_gris': 20840788, 'mal_croppe': 20840789, 'plastique': 20840790, 'autre_refus': 20840791, 'cartonnette': 20840792, 'papier': 20840793, 'kraft': 20840794},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20840746) 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([20840746]) 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.33657097816467285 time spend to save output : 5.459785461425781e-05 total time spend for step 3 : 0.3366255760192871 step4:send_mail_cod Wed Feb 26 14:03:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} input_args_next_step : {1339731560: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339731560 depend.output_id : 0 input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339731521 depend.output_id : 0 input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339731518 depend.output_id : 0 input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339731515 depend.output_id : 0 input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339731511 depend.output_id : 0 input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339731506 depend.output_id : 0 input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339731495 depend.output_id : 0 input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339731157 depend.output_id : 0 input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339731129 depend.output_id : 0 input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339731000 depend.output_id : 0 input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ()} output_args : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',)} args : 1339730909 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 : {20840746: [{'flou': 20840783, 'Teint_Dans_La_Masse': 20840784, 'Carton_brun': 20840785, 'metal': 20840786, 'environnement': 20840787, 'Carton_gris': 20840788, 'mal_croppe': 20840789, 'plastique': 20840790, 'autre_refus': 20840791, 'cartonnette': 20840792, 'papier': 20840793, 'kraft': 20840794}]} input_args_next_step : {1339731560: ('0.10973696435295362',), 1339731521: ('0.10973696435295362',), 1339731518: ('0.10973696435295362',), 1339731515: ('0.10973696435295362',), 1339731511: ('0.10973696435295362',), 1339731506: ('0.10973696435295362',), 1339731495: ('0.10973696435295362',), 1339731157: ('0.10973696435295362',), 1339731129: ('0.10973696435295362',), 1339731000: ('0.10973696435295362',), 1339730909: ('0.10973696435295362',), 20840746: ()} output_args : {20840746: [{'flou': 20840783, 'Teint_Dans_La_Masse': 20840784, 'Carton_brun': 20840785, 'metal': 20840786, 'environnement': 20840787, 'Carton_gris': 20840788, 'mal_croppe': 20840789, 'plastique': 20840790, 'autre_refus': 20840791, 'cartonnette': 20840792, 'papier': 20840793, 'kraft': 20840794}]} args : 20840746 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 :12, first value : ('0.10973696435295362',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20840746) 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 (1339731560,1339731521,1339731518,1339731515,1339731511,1339731506,1339731495,1339731157,1339731129,1339731000,1339730909) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339730909 begin to download photo : 1339731157 begin to download photo : 1339731511 begin to download photo : 1339731521 download finish for photo 1339731157 begin to download photo : 1339731495 download finish for photo 1339731511 begin to download photo : 1339731515 download finish for photo 1339731521 begin to download photo : 1339731560 download finish for photo 1339730909 begin to download photo : 1339731000 download finish for photo 1339731515 begin to download photo : 1339731518 download finish for photo 1339731495 begin to download photo : 1339731506 download finish for photo 1339731000 begin to download photo : 1339731129 download finish for photo 1339731560 download finish for photo 1339731506 download finish for photo 1339731518 download finish for photo 1339731129 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette208407831740574980/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P20840746_26-02-2025_14_03_00.pdf 20840783 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=20840783 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208407831740574980 20840786 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=20840786 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339730370: '1740574352_3139795_1339729854_d6cfb21120520501aac51f3d28e9ca44_rle_crop_3687519141_0.png', 1339730512: '1740574432_3140905_1339730061_0598d185a1abdd21c711660a9f1ce255_rle_crop_3687519739_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c90855d8fd0988b92d24a75620f6692a_89708218.png change filename to text .imagette208407861740574980/ imagette208407861740574980/1740574432_3140905_1339730061_0598d185a1abdd21c711660a9f1ce255_rle_crop_3687519739_0.png.png imagette208407861740574980/1740574352_3139795_1339729854_d6cfb21120520501aac51f3d28e9ca44_rle_crop_3687519141_0.png.png imagette208407891740574980/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/230976df2dba9ba277d9a1138acbb8d8_90055567.png imagette208407861740574980 20840789 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=20840789 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208407891740574980 20840790 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=20840790 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339729818: '1740574073_3127205_1339729193_9ddaaf97af748bfcc180975a97111ba1_rle_crop_3687516100_0.png', 1339730369: '1740574352_3139795_1339729823_7c3943e7a3d65ff26b19981511ec0172_rle_crop_3687519193_0.png', 1339730503: '1740574455_3141345_1339729991_f0849c3521007d4702a19a911a687f45_rle_crop_3687519781_0.png', 1339730509: '1740574432_3140905_1339730066_4594b4b324e34dd526a4daeaa1e5381a_rle_crop_3687519718_0.png', 1339730510: '1740574432_3140905_1339730061_0598d185a1abdd21c711660a9f1ce255_rle_crop_3687519747_0.png', 1339730657: '1740574571_3146124_1339730461_0866d50bbd7e4e776ac0d6a540e20075_rle_crop_3687520323_0.png', 1339730676: '1740574551_3145893_1339730371_4fa4f63213a90441be9becd192dfe6e6_rle_crop_3687520296_0.png', 1339730677: '1740574551_3145893_1339730365_3fb71dbb743d62b2a608dc2f8ced054f_rle_crop_3687520309_0.png', 1339730678: '1740574551_3145893_1339730365_3fb71dbb743d62b2a608dc2f8ced054f_rle_crop_3687520308_0.png', 1339730753: '1740574634_3147050_1339730663_06079aaf8363b81f8b03fe0fe6e58c40_rle_crop_3687520731_0.png', 1339730755: '1740574634_3147050_1339730523_1e30d2defb7029eac6c9bf6321c0afac_rle_crop_3687520771_0.png', 1339731503: '1740574793_3148631_1339730909_3850c795a15e2a41b9286940b8fe38f3_rle_crop_3687522857_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/cbc999620d506d810dffc939d4c561d7_375788.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/32faf4580ff6f2ca41b9ed5a6c320405_95137487.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4c63858bfb7d3f2e9fbbca5957476029_53133494.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/bbe62c510bbe7d981ea876ca740d3ba3_42713031.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/6b61950c5e5fc8b316e9097aafe9ed75_79669254.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2c89c0b76e9120fd90ea7eeaa0000788_26106326.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5c25d46c83567d2e27316ac97627cf10_29345660.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/455cafbc92ac4f74e49bf59b90bfe811_37820211.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a7a511480adeedfedf1b93776180ceef_73838040.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ea9a59b600ae114e68555d254d7144c6_93550415.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ba670c9a2f7b2e52620c15d3d4c1a9d3_71662184.png change filename to text .imagette208407901740574980/ imagette208407901740574980/1740574432_3140905_1339730066_4594b4b324e34dd526a4daeaa1e5381a_rle_crop_3687519718_0.png.png imagette208407901740574980/1740574432_3140905_1339730061_0598d185a1abdd21c711660a9f1ce255_rle_crop_3687519747_0.png.png imagette208407901740574980/1740574634_3147050_1339730523_1e30d2defb7029eac6c9bf6321c0afac_rle_crop_3687520771_0.png.png imagette208407901740574980/1740574551_3145893_1339730365_3fb71dbb743d62b2a608dc2f8ced054f_rle_crop_3687520309_0.png.png imagette208407901740574980/1740574793_3148631_1339730909_3850c795a15e2a41b9286940b8fe38f3_rle_crop_3687522857_0.png.png imagette208407901740574980/1740574073_3127205_1339729193_9ddaaf97af748bfcc180975a97111ba1_rle_crop_3687516100_0.png.png imagette208407901740574980/1740574634_3147050_1339730663_06079aaf8363b81f8b03fe0fe6e58c40_rle_crop_3687520731_0.png.png imagette208407901740574980/1740574551_3145893_1339730365_3fb71dbb743d62b2a608dc2f8ced054f_rle_crop_3687520308_0.png.png imagette208407901740574980/1740574455_3141345_1339729991_f0849c3521007d4702a19a911a687f45_rle_crop_3687519781_0.png.png imagette208407901740574980/1740574551_3145893_1339730371_4fa4f63213a90441be9becd192dfe6e6_rle_crop_3687520296_0.png.png imagette208407901740574980/1740574571_3146124_1339730461_0866d50bbd7e4e776ac0d6a540e20075_rle_crop_3687520323_0.png.png imagette208407901740574980/1740574352_3139795_1339729823_7c3943e7a3d65ff26b19981511ec0172_rle_crop_3687519193_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/aaedea6d31db555fdfc5c3bf94717558_43247642.png imagette208407901740574980 20840791 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=20840791 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339729814: '1740574073_3127205_1339729193_9ddaaf97af748bfcc180975a97111ba1_rle_crop_3687516098_0.png', 1339729815: '1740574073_3127205_1339729193_9ddaaf97af748bfcc180975a97111ba1_rle_crop_3687516097_0.png', 1339729981: '1740574234_3137068_1339729318_2d80bff31a505898796ef48102240a34_rle_crop_3687517040_0.png', 1339730652: '1740574571_3146124_1339730430_5de57204b72e63a2390b8bc7e956ebfe_rle_crop_3687520349_0.png', 1339730664: '1740574551_3145893_1339730371_4fa4f63213a90441be9becd192dfe6e6_rle_crop_3687520295_0.png', 1339730665: '1740574551_3145893_1339730196_8e6a9d34e407ed40e69182757b1341c1_rle_crop_3687520360_0.png', 1339730666: '1740574551_3145893_1339730178_02d8ea16fa1c374489839462fdc2df0b_rle_crop_3687520374_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5c1906ce38534c48f6f8f2d04ad09b83_90327945.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/05652585ac498999eaec69c66c60ec12_3494833.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/bfff2227d8bde95eb70a4fdc15e5fe1c_56194838.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/dfb0d0814332cb8d5761617def6799dc_10192072.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/928d14b9384cf17825d2bc7ddbb49d86_23198.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b9fab53bdcf7ae865a361b20525537f8_7206188.png change filename to text .imagette208407911740574981/ imagette208407911740574981/1740574571_3146124_1339730430_5de57204b72e63a2390b8bc7e956ebfe_rle_crop_3687520349_0.png.png imagette208407911740574981/1740574073_3127205_1339729193_9ddaaf97af748bfcc180975a97111ba1_rle_crop_3687516098_0.png.png imagette208407911740574981/1740574073_3127205_1339729193_9ddaaf97af748bfcc180975a97111ba1_rle_crop_3687516097_0.png.png imagette208407911740574981/1740574551_3145893_1339730178_02d8ea16fa1c374489839462fdc2df0b_rle_crop_3687520374_0.png.png imagette208407911740574981/1740574234_3137068_1339729318_2d80bff31a505898796ef48102240a34_rle_crop_3687517040_0.png.png imagette208407911740574981/1740574551_3145893_1339730371_4fa4f63213a90441be9becd192dfe6e6_rle_crop_3687520295_0.png.png imagette208407911740574981/1740574551_3145893_1339730196_8e6a9d34e407ed40e69182757b1341c1_rle_crop_3687520360_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a933c30eea36ba9d96a7f6911c108ffb_49978984.png imagette208407911740574981 20840792 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=20840792 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339730364: '1740574352_3139795_1339729939_0fc19d88e55ed0818aabe4833ef42e5b_rle_crop_3687519085_0.png', 1339730501: '1740574432_3140905_1339730070_678e34455e19835aafc23733a5ff649e_rle_crop_3687519696_0.png', 1339730502: '1740574432_3140905_1339730061_0598d185a1abdd21c711660a9f1ce255_rle_crop_3687519737_0.png', 1339731500: '1740574793_3148631_1339731129_7fc499734eee8b8d1af606dd2a01962e_rle_crop_3687522828_0.png', 1339731501: '1740574793_3148631_1339731129_7fc499734eee8b8d1af606dd2a01962e_rle_crop_3687522831_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b38e981d9afbf93f8b41de6f2f198762_64535884.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2b5c78172998c28633be5af73bce4a45_27117702.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/cfeefca129a6447cf6c35ee16bc30f00_24254783.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/1390508d59d92cc3dd89cd00aa4e7243_93947298.png change filename to text .imagette208407921740574981/ imagette208407921740574981/1740574793_3148631_1339731129_7fc499734eee8b8d1af606dd2a01962e_rle_crop_3687522828_0.png.png imagette208407921740574981/1740574793_3148631_1339731129_7fc499734eee8b8d1af606dd2a01962e_rle_crop_3687522831_0.png.png imagette208407921740574981/1740574352_3139795_1339729939_0fc19d88e55ed0818aabe4833ef42e5b_rle_crop_3687519085_0.png.png imagette208407921740574981/1740574432_3140905_1339730061_0598d185a1abdd21c711660a9f1ce255_rle_crop_3687519737_0.png.png imagette208407921740574981/1740574432_3140905_1339730070_678e34455e19835aafc23733a5ff649e_rle_crop_3687519696_0.png.png imagette208407941740574982/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/01dd5fb6a475838f99834f2ca449348b_2795701.png imagette208407921740574981 20840794 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=20840794 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208407941740574982 20840784 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=20840784 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339729812: '1740574073_3127205_1339729197_4ac60998bc09e6c35be768ed26d62cca_rle_crop_3687516082_0.png', 1339729813: '1740574073_3127205_1339729187_4ec687bd328c60e77817a81b5a3b997a_rle_crop_3687516108_0.png', 1339730358: '1740574352_3139795_1339729939_0fc19d88e55ed0818aabe4833ef42e5b_rle_crop_3687519086_0.png', 1339730359: '1740574352_3139795_1339729854_d6cfb21120520501aac51f3d28e9ca44_rle_crop_3687519142_0.png', 1339730360: '1740574352_3139795_1339729845_f43b620773b79f07e93ddc1eaeffe30d_rle_crop_3687519182_0.png', 1339730361: '1740574352_3139795_1339729823_7c3943e7a3d65ff26b19981511ec0172_rle_crop_3687519196_0.png', 1339730490: '1740574455_3141345_1339729991_f0849c3521007d4702a19a911a687f45_rle_crop_3687519777_0.png', 1339730491: '1740574432_3140905_1339730066_4594b4b324e34dd526a4daeaa1e5381a_rle_crop_3687519714_0.png', 1339730492: '1740574432_3140905_1339730061_0598d185a1abdd21c711660a9f1ce255_rle_crop_3687519740_0.png', 1339730660: '1740574551_3145893_1339730196_8e6a9d34e407ed40e69182757b1341c1_rle_crop_3687520363_0.png', 1339730661: '1740574551_3145893_1339730178_02d8ea16fa1c374489839462fdc2df0b_rle_crop_3687520381_0.png', 1339730730: '1740574634_3147050_1339730533_d9628396336b6b40a447867e4703be29_rle_crop_3687520740_0.png', 1339731497: '1740574793_3148631_1339731129_7fc499734eee8b8d1af606dd2a01962e_rle_crop_3687522833_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/67d7e0a31c941503c9c5c28be83b35e3_93916560.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/08393000ad927ecc9a364e221ecdab46_73146148.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/95161bed17165213d408608799f50a49_58397079.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c597bf9606121f8f292d3598be8c5da0_28106561.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2c72d253d646e367febd20bcee3cdb34_65976358.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/fc21736713ce1b720a1528952d8f357b_91980397.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/d50ad78221f0e842616a96ac1a817baf_82370737.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8182b7cfab3e371d636856d2ae0c0146_38192286.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b5ca635ce47b4a89487446eab3f5ec5b_75680535.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/65b94dfc2e7005c86b48cd61179e8512_22356823.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a60b8d5133850466da991f8fa9423b10_75667610.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9292d684d8e024e6ac36fbce085b9a91_63690051.png change filename to text .imagette208407841740574982/ imagette208407841740574982/1740574352_3139795_1339729845_f43b620773b79f07e93ddc1eaeffe30d_rle_crop_3687519182_0.png.png imagette208407841740574982/1740574352_3139795_1339729854_d6cfb21120520501aac51f3d28e9ca44_rle_crop_3687519142_0.png.png imagette208407841740574982/1740574432_3140905_1339730066_4594b4b324e34dd526a4daeaa1e5381a_rle_crop_3687519714_0.png.png imagette208407841740574982/1740574455_3141345_1339729991_f0849c3521007d4702a19a911a687f45_rle_crop_3687519777_0.png.png imagette208407841740574982/1740574073_3127205_1339729197_4ac60998bc09e6c35be768ed26d62cca_rle_crop_3687516082_0.png.png imagette208407841740574982/1740574432_3140905_1339730061_0598d185a1abdd21c711660a9f1ce255_rle_crop_3687519740_0.png.png imagette208407841740574982/1740574352_3139795_1339729939_0fc19d88e55ed0818aabe4833ef42e5b_rle_crop_3687519086_0.png.png imagette208407841740574982/1740574352_3139795_1339729823_7c3943e7a3d65ff26b19981511ec0172_rle_crop_3687519196_0.png.png imagette208407841740574982/1740574634_3147050_1339730533_d9628396336b6b40a447867e4703be29_rle_crop_3687520740_0.png.png imagette208407841740574982/1740574073_3127205_1339729187_4ec687bd328c60e77817a81b5a3b997a_rle_crop_3687516108_0.png.png imagette208407841740574982/1740574551_3145893_1339730196_8e6a9d34e407ed40e69182757b1341c1_rle_crop_3687520363_0.png.png imagette208407841740574982/1740574793_3148631_1339731129_7fc499734eee8b8d1af606dd2a01962e_rle_crop_3687522833_0.png.png imagette208407841740574982/1740574551_3145893_1339730178_02d8ea16fa1c374489839462fdc2df0b_rle_crop_3687520381_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/df8638f325bb42c935e030b73ce14a9d_29882694.png imagette208407841740574982 20840785 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=20840785 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339729983: '1740574234_3137068_1339729713_c163dc568dd3c65187134821c8446fa8_rle_crop_3687516932_0.png', 1339730366: '1740574352_3139795_1339729823_7c3943e7a3d65ff26b19981511ec0172_rle_crop_3687519199_0.png', 1339730497: '1740574455_3141345_1339730074_ca479a76f8a321055d22994c9d44e060_rle_crop_3687519726_0.png', 1339730498: '1740574455_3141345_1339730074_ca479a76f8a321055d22994c9d44e060_rle_crop_3687519722_0.png', 1339730499: '1740574455_3141345_1339730000_a5b83be8d0ed0a58a9b1dde76087509c_rle_crop_3687519756_0.png', 1339730500: '1740574455_3141345_1339729991_f0849c3521007d4702a19a911a687f45_rle_crop_3687519779_0.png', 1339730505: '1740574432_3140905_1339730070_678e34455e19835aafc23733a5ff649e_rle_crop_3687519699_0.png', 1339730506: '1740574432_3140905_1339730066_4594b4b324e34dd526a4daeaa1e5381a_rle_crop_3687519711_0.png', 1339730654: '1740574571_3146124_1339730430_5de57204b72e63a2390b8bc7e956ebfe_rle_crop_3687520348_0.png', 1339730655: '1740574571_3146124_1339730430_5de57204b72e63a2390b8bc7e956ebfe_rle_crop_3687520347_0.png', 1339730674: '1740574551_3145893_1339730371_4fa4f63213a90441be9becd192dfe6e6_rle_crop_3687520299_0.png', 1339730732: '1740574634_3147050_1339730663_06079aaf8363b81f8b03fe0fe6e58c40_rle_crop_3687520725_0.png', 1339730733: '1740574634_3147050_1339730663_06079aaf8363b81f8b03fe0fe6e58c40_rle_crop_3687520721_0.png', 1339730734: '1740574634_3147050_1339730533_d9628396336b6b40a447867e4703be29_rle_crop_3687520739_0.png', 1339730735: '1740574634_3147050_1339730533_d9628396336b6b40a447867e4703be29_rle_crop_3687520738_0.png', 1339730762: '1740574653_3147257_1339730656_c73a50709d7c3cc8aa5169ff956f68b2_rle_crop_3687520774_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/febbc7bbdc875cf15a49fa470116e4be_23144096.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/effe93b33bba8dd0daea4b3111aff7f3_72591188.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/70ac9a177368fd61e7bcf0470c8586f9_98808888.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e225c2a012e015d9581fc48351bc5b96_80237203.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/a425497aeeadf401867831705e21d5fc_50095291.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/16fc9868dc96cb0a0929880c8bba2ad0_37195901.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b2de2dc51fa3310d15d43db946cf4ebb_62326044.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/be1a0a090ccde6a1f607aad79491cd88_50437662.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c95d0088796b843b4806fbdaaeb397cc_49698140.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/adcc17129f61a474aa3fc1e3c0219844_68439593.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f76053c5709028e3beddfde492ba1b2c_65058193.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/047b0af7569e2fd481c564b4c79f85ce_34232220.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/f4b197b44aadc5019b666dc2c3f8199e_95738136.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9a5a9161a852a49258af97876b0e1859_8989797.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/8f8727c683b67123c572a1cb482151e1_36463781.png change filename to text .imagette208407851740574982/ imagette208407851740574982/1740574455_3141345_1339730074_ca479a76f8a321055d22994c9d44e060_rle_crop_3687519726_0.png.png imagette208407851740574982/1740574234_3137068_1339729713_c163dc568dd3c65187134821c8446fa8_rle_crop_3687516932_0.png.png imagette208407851740574982/1740574634_3147050_1339730533_d9628396336b6b40a447867e4703be29_rle_crop_3687520738_0.png.png imagette208407851740574982/1740574455_3141345_1339730000_a5b83be8d0ed0a58a9b1dde76087509c_rle_crop_3687519756_0.png.png imagette208407851740574982/1740574551_3145893_1339730371_4fa4f63213a90441be9becd192dfe6e6_rle_crop_3687520299_0.png.png imagette208407851740574982/1740574432_3140905_1339730066_4594b4b324e34dd526a4daeaa1e5381a_rle_crop_3687519711_0.png.png imagette208407851740574982/1740574571_3146124_1339730430_5de57204b72e63a2390b8bc7e956ebfe_rle_crop_3687520348_0.png.png imagette208407851740574982/1740574653_3147257_1339730656_c73a50709d7c3cc8aa5169ff956f68b2_rle_crop_3687520774_0.png.png imagette208407851740574982/1740574352_3139795_1339729823_7c3943e7a3d65ff26b19981511ec0172_rle_crop_3687519199_0.png.png imagette208407851740574982/1740574634_3147050_1339730663_06079aaf8363b81f8b03fe0fe6e58c40_rle_crop_3687520725_0.png.png imagette208407851740574982/1740574571_3146124_1339730430_5de57204b72e63a2390b8bc7e956ebfe_rle_crop_3687520347_0.png.png imagette208407851740574982/1740574432_3140905_1339730070_678e34455e19835aafc23733a5ff649e_rle_crop_3687519699_0.png.png imagette208407851740574982/1740574634_3147050_1339730663_06079aaf8363b81f8b03fe0fe6e58c40_rle_crop_3687520721_0.png.png imagette208407851740574982/1740574455_3141345_1339729991_f0849c3521007d4702a19a911a687f45_rle_crop_3687519779_0.png.png imagette208407851740574982/1740574634_3147050_1339730533_d9628396336b6b40a447867e4703be29_rle_crop_3687520739_0.png.png imagette208407851740574982/1740574455_3141345_1339730074_ca479a76f8a321055d22994c9d44e060_rle_crop_3687519722_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/cd7f7bd82723d5f491cf3a19541fc5c4_18889094.png imagette208407851740574982 20840788 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=20840788 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339729816: '1740574073_3127205_1339729197_4ac60998bc09e6c35be768ed26d62cca_rle_crop_3687516077_0.png', 1339730075: '1740574333_3139568_1339729917_dfc5b5bf24f143d560fcd6e84e52f9cf_rle_crop_3687518730_0.png', 1339730494: '1740574432_3140905_1339730056_a64046aab1aa9877c12e295102b446ef_rle_crop_3687519766_0.png', 1339730495: '1740574432_3140905_1339730056_a64046aab1aa9877c12e295102b446ef_rle_crop_3687519763_0.png', 1339730653: '1740574571_3146124_1339730430_5de57204b72e63a2390b8bc7e956ebfe_rle_crop_3687520345_0.png', 1339730669: '1740574551_3145893_1339730465_0de1797aa088d97e386c2aaf9f9df9a8_rle_crop_3687520292_0.png', 1339730670: '1740574551_3145893_1339730371_4fa4f63213a90441be9becd192dfe6e6_rle_crop_3687520298_0.png', 1339730671: '1740574551_3145893_1339730298_78d159319e3763896da655b8ab5ccd10_rle_crop_3687520327_0.png', 1339730672: '1740574551_3145893_1339730178_02d8ea16fa1c374489839462fdc2df0b_rle_crop_3687520371_0.png', 1339730754: '1740574653_3147257_1339730656_c73a50709d7c3cc8aa5169ff956f68b2_rle_crop_3687520776_0.png', 1339730756: '1740574653_3147257_1339730644_3def3fad0a931dc380dfc7706eaca6ab_rle_crop_3687520804_0.png', 1339731554: '1740574814_3152151_1339731157_992c798e39cd6ca4c45fe9d010155618_rle_crop_3687522966_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b8800a52ea81968bd5bba42aca89b82d_2109852.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/80094401297a2c09efb8202971521bbb_47163439.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/d62d8c64f5fd6656dccdf2682867b601_43633354.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4834982fa78cefadd8b5ab6d4f8d9503_95936502.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e7b5b46f02ed810e6f144c3c3a6f700b_58469608.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c0260c50abfd36aaac83db2df60fb0d6_5700678.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/7ab416dd02a571b7f0e85f7c8fb47904_71607454.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/bf80af13a0aa10f8feec6ba88cd89f8a_8797668.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/cd9a90c926b16b3bf5b0b4230314d770_21309938.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2e92402738e62e52401a00aa32c4503c_98309946.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c78114c2b865b7608bb7712c68cb585a_69456986.png change filename to text .imagette208407881740574983/ imagette208407881740574983/1740574073_3127205_1339729197_4ac60998bc09e6c35be768ed26d62cca_rle_crop_3687516077_0.png.png imagette208407881740574983/1740574551_3145893_1339730298_78d159319e3763896da655b8ab5ccd10_rle_crop_3687520327_0.png.png imagette208407881740574983/1740574551_3145893_1339730178_02d8ea16fa1c374489839462fdc2df0b_rle_crop_3687520371_0.png.png imagette208407881740574983/1740574571_3146124_1339730430_5de57204b72e63a2390b8bc7e956ebfe_rle_crop_3687520345_0.png.png imagette208407881740574983/1740574653_3147257_1339730656_c73a50709d7c3cc8aa5169ff956f68b2_rle_crop_3687520776_0.png.png imagette208407881740574983/1740574653_3147257_1339730644_3def3fad0a931dc380dfc7706eaca6ab_rle_crop_3687520804_0.png.png imagette208407881740574983/1740574814_3152151_1339731157_992c798e39cd6ca4c45fe9d010155618_rle_crop_3687522966_0.png.png imagette208407881740574983/1740574432_3140905_1339730056_a64046aab1aa9877c12e295102b446ef_rle_crop_3687519766_0.png.png imagette208407881740574983/1740574551_3145893_1339730371_4fa4f63213a90441be9becd192dfe6e6_rle_crop_3687520298_0.png.png imagette208407881740574983/1740574551_3145893_1339730465_0de1797aa088d97e386c2aaf9f9df9a8_rle_crop_3687520292_0.png.png imagette208407881740574983/1740574432_3140905_1339730056_a64046aab1aa9877c12e295102b446ef_rle_crop_3687519763_0.png.png imagette208407881740574983/1740574333_3139568_1339729917_dfc5b5bf24f143d560fcd6e84e52f9cf_rle_crop_3687518730_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c291576222ee4fb420c4378a04b290fc_36678956.png imagette208407881740574983 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20840746 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20840795,20840796,20840797,20840798,20840799,20840800,20840801,20840802,20840803,20840804,20840805,20840806?tags=flou,Teint_Dans_La_Masse,Carton_brun,metal,environnement,Carton_gris,mal_croppe,plastique,autre_refus,cartonnette,papier,kraft your option no_mail is active, we will not send the real mail to your client args[1339731560] : ('0.10973696435295362',) no score found for photo 1339731560 We are sending mail with results at report@fotonower.com args[1339731521] : ('0.10973696435295362',) no score found for photo 1339731521 We are sending mail with results at report@fotonower.com args[1339731518] : ('0.10973696435295362',) no score found for photo 1339731518 We are sending mail with results at report@fotonower.com args[1339731515] : ('0.10973696435295362',) no score found for photo 1339731515 We are sending mail with results at report@fotonower.com args[1339731511] : ('0.10973696435295362',) no score found for photo 1339731511 We are sending mail with results at report@fotonower.com args[1339731506] : ('0.10973696435295362',) no score found for photo 1339731506 We are sending mail with results at report@fotonower.com args[1339731495] : ('0.10973696435295362',) no score found for photo 1339731495 We are sending mail with results at report@fotonower.com args[1339731157] : ('0.10973696435295362',) no score found for photo 1339731157 We are sending mail with results at report@fotonower.com args[1339731129] : ('0.10973696435295362',) no score found for photo 1339731129 We are sending mail with results at report@fotonower.com args[1339731000] : ('0.10973696435295362',) no score found for photo 1339731000 We are sending mail with results at report@fotonower.com args[1339730909] : ('0.10973696435295362',) no score found for photo 1339730909 We are sending mail with results at report@fotonower.com refus_total : 0.10973696435295362 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=20840746 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_P20840746_26-02-2025_14_03_00.pdf results_Auto_P20840746_26-02-2025_14_03_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20840746_26-02-2025_14_03_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20840746','results_Auto_P20840746_26-02-2025_14_03_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20840746_26-02-2025_14_03_00.pdf','pdf','','0.39','0.10973696435295362') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20840746]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909] map_info['map_portfolio_photo'] : {20840746: [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909, 1339730703, 1339730700, 1339730696, 1339730663, 1339730656, 1339730648, 1339730644, 1339730543, 1339730533, 1339730528, 1339730523, 1339730465, 1339730461, 1339730430, 1339730377, 1339730371, 1339730365, 1339730298, 1339730196, 1339730178, 1339730074, 1339730070, 1339730066, 1339730061, 1339730056, 1339730050, 1339730005, 1339730000, 1339729991, 1339729939, 1339729935, 1339729917, 1339729866, 1339729854, 1339729849, 1339729845, 1339729823, 1339729713, 1339729699, 1339729322, 1339729318, 1339729197, 1339729193, 1339729187]} final : False mtd_id 4302 list_pids : [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909] 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, '2616163') ('4302', '20840746', '1339731560', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731521', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731518', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731515', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731511', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731506', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731495', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731157', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731129', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731000', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339730909', None, None, None, None, None, '2616163') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '20840746', '1339731560', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731521', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731518', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731515', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731511', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731506', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731495', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731157', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731129', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731000', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339730909', None, None, None, None, None, '2616163')] time used for this insertion : 0.013781547546386719 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.7747204303741455 time spend to save output : 0.014022111892700195 total time spend for step 4 : 5.788742542266846 step5:split_time_score Wed Feb 26 14:03: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 : ['20840746'] 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 : [('20840746',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20840746) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339731521: {'path': 'temp/1740574980_2643922_1339731521_9fc94977ae9cdecdbc6c24c9ae4d19e8.jpg', 'extension': 'jpg'}, 1339731560: {'path': 'temp/1740574980_2643922_1339731560_a59572c237451900b9bb1694dbccbfcf.jpg', 'extension': 'jpg'}, 1339731157: {'path': 'temp/1740574980_2643922_1339731157_992c798e39cd6ca4c45fe9d010155618.jpg', 'extension': 'jpg'}, 1339731495: {'path': 'temp/1740574980_2643922_1339731495_bb752af69aa273ded6588e73af82e610.jpg', 'extension': 'jpg'}, 1339731506: {'path': 'temp/1740574980_2643922_1339731506_35800a2874a314869139c6538e92f783.jpg', 'extension': 'jpg'}, 1339731511: {'path': 'temp/1740574980_2643922_1339731511_8d924e9f09bc56f3ac1ade1d5f6fed47.jpg', 'extension': 'jpg'}, 1339731515: {'path': 'temp/1740574980_2643922_1339731515_d226ad909e1d86736791abb2728087a7.jpg', 'extension': 'jpg'}, 1339731518: {'path': 'temp/1740574980_2643922_1339731518_f2821c77404e5f0f7137e288283a423c.jpg', 'extension': 'jpg'}, 1339730909: {'path': 'temp/1740574980_2643922_1339730909_3850c795a15e2a41b9286940b8fe38f3.jpg', 'extension': 'jpg'}, 1339731000: {'path': 'temp/1740574980_2643922_1339731000_0da524af24212629e06056f36b008f4e.jpg', 'extension': 'jpg'}, 1339731129: {'path': 'temp/1740574980_2643922_1339731129_7fc499734eee8b8d1af606dd2a01962e.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 = 20840746; (('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 = 20840746 group by h (('13', 55),) 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=20840746 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 (20840746) 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 (20840746) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26022025 20840746 Nombre de photos uploadées : 55 / 23040 (0%) 26022025 20840746 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 26022025 20840746 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1339729197, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4ac60998bc09e6c35be768ed26d62cca.jpg', 'username': None, 'uploaded_at': 1740573995, 'text': 'image_26022025_13_45_14_10136.jpg'}, {'photo_id': 1339729193, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9ddaaf97af748bfcc180975a97111ba1.jpg', 'username': None, 'uploaded_at': 1740573995, 'text': 'image_26022025_13_45_25_10135.jpg'}, {'photo_id': 1339729187, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4ec687bd328c60e77817a81b5a3b997a.jpg', 'username': None, 'uploaded_at': 1740573995, 'text': 'image_26022025_13_45_44_10143.jpg'}, {'photo_id': 1339729322, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b6d0879a540a62c9eec2d02a4b7d639e.jpg', 'username': None, 'uploaded_at': 1740574055, 'text': 'image_26022025_13_45_54_10143.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002595186233520508 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20840746, '2025-02-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1624425,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02334761619567871 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= 1624425 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1624425, 'dashboard_run_id': 1633399, 'mtr_portfolio_id': 20840618, 'dashboard_result_id': 9074106, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20840621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840630, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1633399, 'mtr_portfolio_id': 20840746, 'dashboard_result_id': 9074107, '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_P20840746_26-02-2025_13_58_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20840783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840794, '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 = 20840618 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': 2616154, 'mtr_portfolio_id': 20840618, 'created_at': datetime.datetime(2025, 2, 26, 13, 47, 30), 'result': '0.10345383147205522', 'result_long': None, 'result_double': None}] Qualite : 0.10345383147205522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20840618 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20840618%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20840618 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20840621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840630, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20840618 and dashboard_run_id = 1633399 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`=20840618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9074106, 0.10345383147205522, "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20840621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840630, 'pht': 3726}, 'url_report': ''}") 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 = 20840746 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': 2616163, 'mtr_portfolio_id': 20840746, 'created_at': datetime.datetime(2025, 2, 26, 14, 2, 59), 'result': '0.10973696435295362', 'result_long': None, 'result_double': None}] Qualite : 0.10973696435295362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20840746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20840746_26-02-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20840746 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_P20840746_26-02-2025_14_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20840783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840794, 'pht': 3726}}" where mtr_portfolio_id = 20840746 and dashboard_run_id = 1633399 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`=20840746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9074107, 0.10973696435295362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20840746_26-02-2025_14_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20840783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20840784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20840785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20840786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20840787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20840788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20840789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20840790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20840791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20840792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20840793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20840794, '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 (20840618,20840746) result : ((1339726407,), (1339726784,), (1339727598,), (1339727735,), (1339728196,), (1339728609,), (1339728788,), (1339728793,), (1339728796,), (1339728799,), (1339728802,), (1339728807,), (1339728864,), (1339728868,), (1339728871,), (1339728875,), (1339728986,), (1339728993,), (1339729028,), (1339729041,), (1339729067,), (1339729254,), (1339729187,), (1339729193,), (1339729197,), (1339729318,), (1339729322,), (1339729699,), (1339729713,), (1339729823,), (1339729845,), (1339729849,), (1339729854,), (1339729866,), (1339729917,), (1339729935,), (1339729939,), (1339729991,), (1339730000,), (1339730005,), (1339730050,), (1339730056,), (1339730061,), (1339730066,), (1339730070,), (1339730074,), (1339730178,), (1339730196,), (1339730298,), (1339730365,), (1339730371,), (1339730377,), (1339730430,), (1339730461,), (1339730465,), (1339730523,), (1339730528,), (1339730533,), (1339730543,), (1339730644,), (1339730648,), (1339730656,), (1339730663,), (1339730696,), (1339730700,), (1339730703,), (1339730909,), (1339731000,), (1339731129,), (1339731157,), (1339731495,), (1339731506,), (1339731511,), (1339731515,), (1339731518,), (1339731521,), (1339731560,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26022025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20840746]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909] map_info['map_portfolio_photo'] : {20840746: [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909, 1339730703, 1339730700, 1339730696, 1339730663, 1339730656, 1339730648, 1339730644, 1339730543, 1339730533, 1339730528, 1339730523, 1339730465, 1339730461, 1339730430, 1339730377, 1339730371, 1339730365, 1339730298, 1339730196, 1339730178, 1339730074, 1339730070, 1339730066, 1339730061, 1339730056, 1339730050, 1339730005, 1339730000, 1339729991, 1339729939, 1339729935, 1339729917, 1339729866, 1339729854, 1339729849, 1339729845, 1339729823, 1339729713, 1339729699, 1339729322, 1339729318, 1339729197, 1339729193, 1339729187]} final : True mtd_id 4302 list_pids : [1339731560, 1339731521, 1339731518, 1339731515, 1339731511, 1339731506, 1339731495, 1339731157, 1339731129, 1339731000, 1339730909] Looping around the photos to save general results len do output : 1 /20840746Didn'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, '2616163') ('4302', '20840746', '1339731560', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731521', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731518', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731515', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731511', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731506', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731495', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731157', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731129', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339731000', None, None, None, None, None, '2616163') ('4302', None, None, None, None, None, None, None, '2616163') ('4302', '20840746', '1339730909', None, None, None, None, None, '2616163') 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', None, '20840746', 'None', None, None, None, None, '2616163'), ('4302', '20840746', '1339731560', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731521', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731518', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731515', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731511', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731506', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731495', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731157', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731129', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339731000', None, None, None, None, None, '2616163'), ('4302', '20840746', '1339730909', None, None, None, None, None, '2616163')] time used for this insertion : 0.013357162475585938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9794018268585205 time spend to save output : 0.013580799102783203 total time spend for step 5 : 0.9929826259613037 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 (2616163) 2.24user 2.43system 0:11.52elapsed 40%CPU (0avgtext+0avgdata 159300maxresident)k 27648inputs+21560outputs (114major+75848minor)pagefaults 0swaps