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 : 923555 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 (3273845) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3273845) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864799 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3273845'] with mtr_portfolio_ids : ['24864799'] and first list_photo_ids : [] new path : /proc/923555/ Name: python3 Umask: 0002 State: R (running) Tgid: 923555 Ngid: 0 Pid: 923555 PPid: 923554 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 923555 NSpid: 923555 NSpgid: 921819 NSsid: 921819 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98804 kB VmRSS: 98804 kB RssAnon: 59800 kB RssFile: 39004 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 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: 42 nonvoluntary_ctxt_switches: 230 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '923555', 'Ngid': '0', 'Pid': '923555', 'PPid': '923554', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '923555', 'NSpid': '923555', 'NSpgid': '921819', 'NSsid': '921819', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98804 kB', 'VmRSS': '98804 kB', 'RssAnon': '59800 kB', 'RssFile': '39004 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', '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': '42', 'nonvoluntary_ctxt_switches': '230'} ('datou_batch_current', '923555', '1106868', '0', '1106868', '865620', '98804', b'', 'marlene', '3273845') 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 (24864799) 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 (3273845 ) ) 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 (24864799) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371755270, 'portfolio_id': 24864799}, {'photo_id': 1371755266, 'portfolio_id': 24864799}, {'photo_id': 1371755263, 'portfolio_id': 24864799}, {'photo_id': 1371755259, 'portfolio_id': 24864799}, {'photo_id': 1371755254, 'portfolio_id': 24864799}, {'photo_id': 1371755249, 'portfolio_id': 24864799}, {'photo_id': 1371755239, 'portfolio_id': 24864799}, {'photo_id': 1371755237, 'portfolio_id': 24864799}, {'photo_id': 1371755234, 'portfolio_id': 24864799}, {'photo_id': 1371755232, 'portfolio_id': 24864799}, {'photo_id': 1371755231, 'portfolio_id': 24864799}, {'photo_id': 1371755229, 'portfolio_id': 24864799}, {'photo_id': 1371755227, 'portfolio_id': 24864799}, {'photo_id': 1371755226, 'portfolio_id': 24864799}, {'photo_id': 1371755222, 'portfolio_id': 24864799}, {'photo_id': 1371755221, 'portfolio_id': 24864799}, {'photo_id': 1371755219, 'portfolio_id': 24864799}, {'photo_id': 1371755218, 'portfolio_id': 24864799}, {'photo_id': 1371755172, 'portfolio_id': 24864799}, {'photo_id': 1371755169, 'portfolio_id': 24864799}, {'photo_id': 1371755167, 'portfolio_id': 24864799}, {'photo_id': 1371755165, 'portfolio_id': 24864799}, {'photo_id': 1371755163, 'portfolio_id': 24864799}, {'photo_id': 1371755158, 'portfolio_id': 24864799}, {'photo_id': 1371755096, 'portfolio_id': 24864799}, {'photo_id': 1371755095, 'portfolio_id': 24864799}, {'photo_id': 1371755092, 'portfolio_id': 24864799}, {'photo_id': 1371755089, 'portfolio_id': 24864799}, {'photo_id': 1371755086, 'portfolio_id': 24864799}, {'photo_id': 1371755073, 'portfolio_id': 24864799}, {'photo_id': 1371754932, 'portfolio_id': 24864799}, {'photo_id': 1371754905, 'portfolio_id': 24864799}, {'photo_id': 1371754895, 'portfolio_id': 24864799}, {'photo_id': 1371754892, 'portfolio_id': 24864799}, {'photo_id': 1371754886, 'portfolio_id': 24864799}, {'photo_id': 1371754875, 'portfolio_id': 24864799}, {'photo_id': 1371754764, 'portfolio_id': 24864799}, {'photo_id': 1371754727, 'portfolio_id': 24864799}, {'photo_id': 1371754697, 'portfolio_id': 24864799}, {'photo_id': 1371754669, 'portfolio_id': 24864799}, {'photo_id': 1371754634, 'portfolio_id': 24864799}, {'photo_id': 1371754604, 'portfolio_id': 24864799}, {'photo_id': 1371754210, 'portfolio_id': 24864799}, {'photo_id': 1371754182, 'portfolio_id': 24864799}, {'photo_id': 1371754157, 'portfolio_id': 24864799}, {'photo_id': 1371754130, 'portfolio_id': 24864799}, {'photo_id': 1371754100, 'portfolio_id': 24864799}, {'photo_id': 1371754076, 'portfolio_id': 24864799}, {'photo_id': 1371753967, 'portfolio_id': 24864799}, {'photo_id': 1371753961, 'portfolio_id': 24864799}, {'photo_id': 1371753956, 'portfolio_id': 24864799}, {'photo_id': 1371753952, 'portfolio_id': 24864799}, {'photo_id': 1371753948, 'portfolio_id': 24864799}, {'photo_id': 1371753944, 'portfolio_id': 24864799}, {'photo_id': 1371753936, 'portfolio_id': 24864799}, {'photo_id': 1371753935, 'portfolio_id': 24864799}, {'photo_id': 1371753934, 'portfolio_id': 24864799}, {'photo_id': 1371753931, 'portfolio_id': 24864799}, {'photo_id': 1371753929, 'portfolio_id': 24864799}, {'photo_id': 1371753927, 'portfolio_id': 24864799}, {'photo_id': 1371753923, 'portfolio_id': 24864799}, {'photo_id': 1371753921, 'portfolio_id': 24864799}, {'photo_id': 1371753917, 'portfolio_id': 24864799}, {'photo_id': 1371753915, 'portfolio_id': 24864799}, {'photo_id': 1371753911, 'portfolio_id': 24864799}, {'photo_id': 1371753908, 'portfolio_id': 24864799}, {'photo_id': 1371753720, 'portfolio_id': 24864799}, {'photo_id': 1371753691, 'portfolio_id': 24864799}, {'photo_id': 1371753666, 'portfolio_id': 24864799}, {'photo_id': 1371753640, 'portfolio_id': 24864799}, {'photo_id': 1371753610, 'portfolio_id': 24864799}, {'photo_id': 1371753581, 'portfolio_id': 24864799}] map_portfolio_id_photo_id: {24864799: [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218, 1371755172, 1371755169, 1371755167, 1371755165, 1371755163, 1371755158, 1371755096, 1371755095, 1371755092, 1371755089, 1371755086, 1371755073, 1371754932, 1371754905, 1371754895, 1371754892, 1371754886, 1371754875, 1371754764, 1371754727, 1371754697, 1371754669, 1371754634, 1371754604, 1371754210, 1371754182, 1371754157, 1371754130, 1371754100, 1371754076, 1371753967, 1371753961, 1371753956, 1371753952, 1371753948, 1371753944, 1371753936, 1371753935, 1371753934, 1371753931, 1371753929, 1371753927, 1371753923, 1371753921, 1371753917, 1371753915, 1371753911, 1371753908, 1371753720, 1371753691, 1371753666, 1371753640, 1371753610, 1371753581]} ##### 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.02069854736328125 #### 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 Sat Jul 12 00:56:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24864799) 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 : 24864799 get user id for portfolio 24864799 get sub ptf for main ptf 24864799, type 3726 and hashtags ['environnement', 'autre_refus', 'papier', 'mal_croppe', 'Teint_Dans_La_Masse', 'metal', 'kraft', 'plastique', 'Carton_gris', 'flou', 'cartonnette', 'Carton_brun'] 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`=24864799 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','papier','mal_croppe','Teint_Dans_La_Masse','metal','kraft','plastique','Carton_gris','flou','cartonnette','Carton_brun')) 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`=24864799 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','papier','mal_croppe','Teint_Dans_La_Masse','metal','kraft','plastique','Carton_gris','flou','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 24864799, 'sub_port_id': 24864803, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738233, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 24864799, 'sub_port_id': 24864804, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738234, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'mal_croppe': {'main_port_id': 24864799, 'sub_port_id': 24864805, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738235, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'Carton_gris': {'main_port_id': 24864799, 'sub_port_id': 24864806, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738236, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'kraft': {'main_port_id': 24864799, 'sub_port_id': 24864807, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738237, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'autre_refus': {'main_port_id': 24864799, 'sub_port_id': 24864808, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738238, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'Carton_brun': {'main_port_id': 24864799, 'sub_port_id': 24864809, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738239, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'metal': {'main_port_id': 24864799, 'sub_port_id': 24864810, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738240, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'environnement': {'main_port_id': 24864799, 'sub_port_id': 24864811, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738241, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'plastique': {'main_port_id': 24864799, 'sub_port_id': 24864812, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738242, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'papier': {'main_port_id': 24864799, 'sub_port_id': 24864813, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738243, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}, 'cartonnette': {'main_port_id': 24864799, 'sub_port_id': 24864814, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738244, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24864803 , 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=24864799 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 (24864803) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864804 , 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=24864799 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 (24864804) result : ((1371754581,), (1371754584,), (1371754586,), (1371754588,), (1371754772,), (1371754774,), (1371754777,), (1371754779,), (1371754781,), (1371754783,), (1371754785,), (1371755064,), (1371755110,), (1371755111,), (1371755112,), (1371755182,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864805 , 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=24864799 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 (24864805) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864806 , 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=24864799 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 (24864806) result : ((1371754612,), (1371754614,), (1371754807,), (1371754809,), (1371754811,), (1371754813,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864807 , 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=24864799 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 (24864807) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864808 , 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=24864799 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 (24864808) result : ((1371754598,), (1371754600,), (1371754793,), (1371754795,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864809 , 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=24864799 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 (24864809) result : ((1371754838,), (1371755224,), (1371755225,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864810 , 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=24864799 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 (24864810) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864811 , 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=24864799 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 (24864811) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864812 , 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=24864799 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 (24864812) result : ((1371754650,), (1371754652,), (1371754654,), (1371754656,), (1371754659,), (1371754661,), (1371754663,), (1371754665,), (1371754667,), (1371754670,), (1371754672,), (1371754674,), (1371755069,), (1371755071,), (1371755072,), (1371755074,), (1371755076,), (1371755077,), (1371755078,), (1371755079,), (1371755080,), (1371755082,), (1371755083,), (1371755084,), (1371755120,), (1371755122,), (1371755123,), (1371755124,), (1371755126,), (1371755127,), (1371755128,), (1371755129,), (1371755130,), (1371755131,), (1371755132,), (1371755133,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864813 , 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=24864799 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 (24864813) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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 24864814 , 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=24864799 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 (24864814) result : ((1371754622,), (1371754624,), (1371754824,), (1371754826,), (1371754828,), (1371754830,), (1371755115,), (1371755116,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24864799) result : ((1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) 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 (1371754100) 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`=24864799 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','papier','mal_croppe','Teint_Dans_La_Masse','metal','kraft','plastique','Carton_gris','flou','cartonnette','Carton_brun')) 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`=24864799 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','papier','mal_croppe','Teint_Dans_La_Masse','metal','kraft','plastique','Carton_gris','flou','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 24864799, 'sub_port_id': 24864815, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738245, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 24864799, 'sub_port_id': 24864816, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738246, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'mal_croppe': {'main_port_id': 24864799, 'sub_port_id': 24864817, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738247, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'Carton_gris': {'main_port_id': 24864799, 'sub_port_id': 24864818, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738248, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'kraft': {'main_port_id': 24864799, 'sub_port_id': 24864819, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738249, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'autre_refus': {'main_port_id': 24864799, 'sub_port_id': 24864820, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738250, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'Carton_brun': {'main_port_id': 24864799, 'sub_port_id': 24864821, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738251, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'metal': {'main_port_id': 24864799, 'sub_port_id': 24864822, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738252, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'environnement': {'main_port_id': 24864799, 'sub_port_id': 24864823, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738253, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'plastique': {'main_port_id': 24864799, 'sub_port_id': 24864824, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738254, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'papier': {'main_port_id': 24864799, 'sub_port_id': 24864825, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738255, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}, 'cartonnette': {'main_port_id': 24864799, 'sub_port_id': 24864826, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16738256, 'last_updated_at': datetime.datetime(2025, 7, 12, 0, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 0, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 0, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864815,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864803 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864816,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864804 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864817,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864805 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864818,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864806 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864819,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864807 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864820,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864808 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864821,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864809 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864822,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864823,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864811 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864824,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864812 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864825,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864813 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24864826,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24864814 lien utilise dans velours : https://www.fotonower.com/velours/24864815,24864816,24864817,24864818,24864819,24864820,24864821,24864822,24864823,24864824,24864825,24864826?tags=flou,Teint_Dans_La_Masse,mal_croppe,Carton_gris,kraft,autre_refus,Carton_brun,metal,environnement,plastique,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24864799]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218] map_info['map_portfolio_photo'] : {24864799: [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218, 1371755172, 1371755169, 1371755167, 1371755165, 1371755163, 1371755158, 1371755096, 1371755095, 1371755092, 1371755089, 1371755086, 1371755073, 1371754932, 1371754905, 1371754895, 1371754892, 1371754886, 1371754875, 1371754764, 1371754727, 1371754697, 1371754669, 1371754634, 1371754604, 1371754210, 1371754182, 1371754157, 1371754130, 1371754100, 1371754076, 1371753967, 1371753961, 1371753956, 1371753952, 1371753948, 1371753944, 1371753936, 1371753935, 1371753934, 1371753931, 1371753929, 1371753927, 1371753923, 1371753921, 1371753917, 1371753915, 1371753911, 1371753908, 1371753720, 1371753691, 1371753666, 1371753640, 1371753610, 1371753581]} final : False mtd_id 4302 list_pids : [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218] Looping around the photos to save general results len do output : 1 /24864799. 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, '3273845') ('4302', '24864799', '1371755270', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755266', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755263', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755259', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755254', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755249', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755239', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755237', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755234', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755232', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755231', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755229', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755227', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755226', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755222', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755221', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755219', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755218', None, None, None, None, None, '3273845') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '24864799', "{'flou': 24864803, 'Teint_Dans_La_Masse': 24864804, 'mal_croppe': 24864805, 'Carton_gris': 24864806, 'kraft': 24864807, 'autre_refus': 24864808, 'Carton_brun': 24864809, 'metal': 24864810, 'environnement': 24864811, 'plastique': 24864812, 'papier': 24864813, 'cartonnette': 24864814}", None, None, None, None, '3273845'), ('4302', '24864799', '1371755270', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755266', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755263', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755259', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755254', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755249', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755239', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755237', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755234', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755232', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755231', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755229', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755227', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755226', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755222', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755221', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755219', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755218', None, None, None, None, None, '3273845')] time used for this insertion : 0.019485950469970703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4368457794189453 time spend to save output : 0.01989579200744629 total time spend for step 1 : 0.4567415714263916 step2:final Sat Jul 12 00:56:31 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 (24864799) 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 24864799 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371753720,1371753691,1371753666,1371753640,1371753610,1371753581,1371753936,1371753935,1371753934,1371753931,1371753929,1371753927,1371753921,1371753923,1371753917,1371753915,1371753911,1371753908,1371753967,1371753961,1371753956,1371753952,1371753948,1371753944,1371754210,1371754182,1371754157,1371754130,1371754100,1371754076,1371754764,1371754727,1371754697,1371754669,1371754634,1371754604,1371754932,1371754905,1371754895,1371754892,1371754886,1371754875,1371755096,1371755095,1371755092,1371755089,1371755086,1371755073,1371755172,1371755169,1371755167,1371755165,1371755163,1371755158,1371755239,1371755237,1371755234,1371755232,1371755229,1371755231,1371755226,1371755227,1371755222,1371755221,1371755219,1371755218,1371755270,1371755266,1371755263,1371755259,1371755254,1371755249); 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([24864799]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} new output for save of step final : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218] map_info['map_portfolio_photo'] : {24864799: [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218, 1371755172, 1371755169, 1371755167, 1371755165, 1371755163, 1371755158, 1371755096, 1371755095, 1371755092, 1371755089, 1371755086, 1371755073, 1371754932, 1371754905, 1371754895, 1371754892, 1371754886, 1371754875, 1371754764, 1371754727, 1371754697, 1371754669, 1371754634, 1371754604, 1371754210, 1371754182, 1371754157, 1371754130, 1371754100, 1371754076, 1371753967, 1371753961, 1371753956, 1371753952, 1371753948, 1371753944, 1371753936, 1371753935, 1371753934, 1371753931, 1371753929, 1371753927, 1371753923, 1371753921, 1371753917, 1371753915, 1371753911, 1371753908, 1371753720, 1371753691, 1371753666, 1371753640, 1371753610, 1371753581]} final : False mtd_id 4302 list_pids : [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218] Looping around the photos to save general results len do output : 18 /1371755270.Didn't retrieve data . /1371755266.Didn't retrieve data . /1371755263.Didn't retrieve data . /1371755259.Didn't retrieve data . /1371755254.Didn't retrieve data . /1371755249.Didn't retrieve data . /1371755239.Didn't retrieve data . /1371755237.Didn't retrieve data . /1371755234.Didn't retrieve data . /1371755232.Didn't retrieve data . /1371755231.Didn't retrieve data . /1371755229.Didn't retrieve data . /1371755227.Didn't retrieve data . /1371755226.Didn't retrieve data . /1371755222.Didn't retrieve data . /1371755221.Didn't retrieve data . /1371755219.Didn't retrieve data . /1371755218.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, '3273845') ('4302', '24864799', '1371755270', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755266', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755263', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755259', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755254', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755249', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755239', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755237', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755234', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755232', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755231', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755229', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755227', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755226', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755222', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755221', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755219', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755218', None, None, None, None, None, '3273845') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '24864799', '1371755270', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755266', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755263', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755259', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755254', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755249', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755239', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755237', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755234', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755232', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755231', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755229', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755227', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755226', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755222', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755221', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755219', '0.08014493466844005', None, None, None, None, '3273845'), ('4302', '24864799', '1371755218', '0.08014493466844005', None, None, None, None, '3273845')] time used for this insertion : 0.019000530242919922 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.38213634490966797 time spend to save output : 0.019847393035888672 total time spend for step 2 : 0.40198373794555664 step3:velours_tree Sat Jul 12 00:56:31 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 : {24864799: [{'flou': 24864803, 'Teint_Dans_La_Masse': 24864804, 'mal_croppe': 24864805, 'Carton_gris': 24864806, 'kraft': 24864807, 'autre_refus': 24864808, 'Carton_brun': 24864809, 'metal': 24864810, 'environnement': 24864811, 'plastique': 24864812, 'papier': 24864813, 'cartonnette': 24864814}]} input_args_next_step : {24864799: ()} output_args : {24864799: [{'flou': 24864803, 'Teint_Dans_La_Masse': 24864804, 'mal_croppe': 24864805, 'Carton_gris': 24864806, 'kraft': 24864807, 'autre_refus': 24864808, 'Carton_brun': 24864809, 'metal': 24864810, 'environnement': 24864811, 'plastique': 24864812, 'papier': 24864813, 'cartonnette': 24864814}]} args : 24864799 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': 24864803, 'Teint_Dans_La_Masse': 24864804, 'mal_croppe': 24864805, 'Carton_gris': 24864806, 'kraft': 24864807, 'autre_refus': 24864808, 'Carton_brun': 24864809, 'metal': 24864810, 'environnement': 24864811, 'plastique': 24864812, 'papier': 24864813, 'cartonnette': 24864814},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24864799) 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([24864799]) 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.3546018600463867 time spend to save output : 7.867813110351562e-05 total time spend for step 3 : 0.35468053817749023 step4:send_mail_cod Sat Jul 12 00:56:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} input_args_next_step : {1371755270: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755270 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755266 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755263 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755259 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755254 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755249 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755239 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755237 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755234 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755232 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755231 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755229 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755227 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755226 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755222 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755221 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755219 depend.output_id : 0 input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ()} output_args : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',)} args : 1371755218 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 : {24864799: [{'flou': 24864803, 'Teint_Dans_La_Masse': 24864804, 'mal_croppe': 24864805, 'Carton_gris': 24864806, 'kraft': 24864807, 'autre_refus': 24864808, 'Carton_brun': 24864809, 'metal': 24864810, 'environnement': 24864811, 'plastique': 24864812, 'papier': 24864813, 'cartonnette': 24864814}]} input_args_next_step : {1371755270: ('0.08014493466844005',), 1371755266: ('0.08014493466844005',), 1371755263: ('0.08014493466844005',), 1371755259: ('0.08014493466844005',), 1371755254: ('0.08014493466844005',), 1371755249: ('0.08014493466844005',), 1371755239: ('0.08014493466844005',), 1371755237: ('0.08014493466844005',), 1371755234: ('0.08014493466844005',), 1371755232: ('0.08014493466844005',), 1371755231: ('0.08014493466844005',), 1371755229: ('0.08014493466844005',), 1371755227: ('0.08014493466844005',), 1371755226: ('0.08014493466844005',), 1371755222: ('0.08014493466844005',), 1371755221: ('0.08014493466844005',), 1371755219: ('0.08014493466844005',), 1371755218: ('0.08014493466844005',), 24864799: ()} output_args : {24864799: [{'flou': 24864803, 'Teint_Dans_La_Masse': 24864804, 'mal_croppe': 24864805, 'Carton_gris': 24864806, 'kraft': 24864807, 'autre_refus': 24864808, 'Carton_brun': 24864809, 'metal': 24864810, 'environnement': 24864811, 'plastique': 24864812, 'papier': 24864813, 'cartonnette': 24864814}]} args : 24864799 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 :19, first value : ('0.08014493466844005',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24864799) 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 (1371755270,1371755266,1371755263,1371755259,1371755254,1371755249,1371755239,1371755237,1371755234,1371755232,1371755231,1371755229,1371755227,1371755226,1371755222,1371755221,1371755219,1371755218) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371755218 begin to download photo : 1371755226 begin to download photo : 1371755232 begin to download photo : 1371755249 begin to download photo : 1371755266 download finish for photo 1371755226 begin to download photo : 1371755227 download finish for photo 1371755266 begin to download photo : 1371755270 download finish for photo 1371755232 begin to download photo : 1371755234 download finish for photo 1371755249 begin to download photo : 1371755254 download finish for photo 1371755218 begin to download photo : 1371755219 download finish for photo 1371755270 download finish for photo 1371755227 begin to download photo : 1371755229 download finish for photo 1371755254 begin to download photo : 1371755259 download finish for photo 1371755234 begin to download photo : 1371755237 download finish for photo 1371755219 begin to download photo : 1371755221 download finish for photo 1371755259 begin to download photo : 1371755263 download finish for photo 1371755237 begin to download photo : 1371755239 download finish for photo 1371755229 begin to download photo : 1371755231 download finish for photo 1371755221 begin to download photo : 1371755222 download finish for photo 1371755263 download finish for photo 1371755239 download finish for photo 1371755231 download finish for photo 1371755222 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette248648031752274592/ imagette248648051752274592/ imagette248648071752274592/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P24864799_12-07-2025_00_56_32.pdf 24864803 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=24864803 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248648031752274592 24864805 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=24864805 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248648051752274592 24864807 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=24864807 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248648071752274592 24864808 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=24864808 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371754598: '1752274166_2020118_1371753923_cee340d3ce30e330ff9ea21d68f90ac8_rle_crop_3880729960_0.png', 1371754600: '1752274166_2020118_1371753921_277d51548affede1817de254e7dfa9b8_rle_crop_3880729976_0.png', 1371754793: '1752274205_3736060_1371753720_5b93f6dd8193bc15ccdaf6247fba17a5_rle_crop_3880730741_0.png', 1371754795: '1752274205_3736060_1371753691_615a782076330cb7f58c1e7abb1c10f1_rle_crop_3880730753_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/912295dcf0d2d99a94ca9fd0631f97a0_71524965.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/912295dcf0d2d99a94ca9fd0631f97a0_91491171.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/1b0f231aba7e138b138f74c8157280ca_36862743.png change filename to text .imagette248648081752274592/ imagette248648081752274592/1752274166_2020118_1371753923_cee340d3ce30e330ff9ea21d68f90ac8_rle_crop_3880729960_0.png.png imagette248648081752274592/1752274205_3736060_1371753720_5b93f6dd8193bc15ccdaf6247fba17a5_rle_crop_3880730741_0.png.png imagette248648081752274592/1752274205_3736060_1371753691_615a782076330cb7f58c1e7abb1c10f1_rle_crop_3880730753_0.png.png imagette248648081752274592/1752274166_2020118_1371753921_277d51548affede1817de254e7dfa9b8_rle_crop_3880729976_0.png.png imagette248648101752274592/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/8812fa3f80cc3f54c472a36f551a319d_36894521.png imagette248648081752274592 24864810 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=24864810 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248648101752274592 24864812 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=24864812 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371755124: '1752274326_3740761_1371753961_7d03f7f0c0ac9a56257827c53e59edf7_rle_crop_3880733794_0.png', 1371755079: '1752274285_2023968_1371754130_287261073432203a7642331e059e1063_rle_crop_3880732221_0.png', 1371755080: '1752274285_2023968_1371754100_ba881d6226f8613b6a868aba91dde4d3_rle_crop_3880732230_0.png', 1371755082: '1752274285_2023968_1371754100_ba881d6226f8613b6a868aba91dde4d3_rle_crop_3880732240_0.png', 1371755083: '1752274285_2023968_1371754076_94ebc65448e31600b4111f3036d00c8a_rle_crop_3880732250_0.png', 1371755084: '1752274285_2023968_1371754076_94ebc65448e31600b4111f3036d00c8a_rle_crop_3880732261_0.png', 1371755120: '1752274326_3740761_1371753967_96d8604fd8283dbe687d797ab04f0ac4_rle_crop_3880733770_0.png', 1371755122: '1752274326_3740761_1371753967_96d8604fd8283dbe687d797ab04f0ac4_rle_crop_3880733769_0.png', 1371755123: '1752274326_3740761_1371753967_96d8604fd8283dbe687d797ab04f0ac4_rle_crop_3880733785_0.png', 1371755078: '1752274285_2023968_1371754130_287261073432203a7642331e059e1063_rle_crop_3880732210_0.png', 1371755126: '1752274326_3740761_1371753961_7d03f7f0c0ac9a56257827c53e59edf7_rle_crop_3880733805_0.png', 1371755127: '1752274326_3740761_1371753956_23d56a835a00103d5fc5454b46d1bb96_rle_crop_3880733815_0.png', 1371755128: '1752274326_3740761_1371753956_23d56a835a00103d5fc5454b46d1bb96_rle_crop_3880733824_0.png', 1371755129: '1752274326_3740761_1371753952_82cf17d8477635daa24b1bed362334a6_rle_crop_3880733835_0.png', 1371755130: '1752274326_3740761_1371753952_82cf17d8477635daa24b1bed362334a6_rle_crop_3880733844_0.png', 1371755131: '1752274326_3740761_1371753948_fdf9427b9bb68d38d8ef778edadd110f_rle_crop_3880733857_0.png', 1371755132: '1752274326_3740761_1371753948_fdf9427b9bb68d38d8ef778edadd110f_rle_crop_3880733865_0.png', 1371755133: '1752274326_3740761_1371753944_5b20cf384f7c097c9fc8acab79e2297a_rle_crop_3880733934_0.png', 1371754670: '1752274166_2020118_1371753911_eb629b9cc3f8c23cb6bd786905ceed86_rle_crop_3880730711_0.png', 1371754652: '1752274166_2020118_1371753927_fb671a8f10dd87ed85576b263dd4ccc0_rle_crop_3880729956_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/4c75f73a67dc32a4cd4fe063736cdea2_41607811.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/6290f235d34e8615248b82a0b052b758_67779836.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/62d9d6a043367252e34167f0b4325dd9_34455769.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/fc4ac9fa7bab82c34dfa7a520e27a6fa_70896962.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c151adf33cad1e43d4dae9d0f26d7c01_81568213.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/88a01089cade7c11f9083476d66d478b_94803918.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/908f87a4cd7abbc30cb2dc6e3f53d4f0_14012322.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/aca5588acc1cb6e69db7f87963860e8b_1821680.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/6d0b91d6a5766b5fde5f5232aac53b0f_30312548.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/f9005ddb300a7b250cd2aee0825c8f73_58019095.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/cbda07c025398e1912f700429d0efeaf_87098123.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/983b1d356b86c132b930b39488523a62_15585271.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0c1e923e2f5ef69dec43e8717881d47e_32090018.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ed79639b86ef86df0828c04a662e58ec_84590773.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/9106bb25f6bd2bee82b7025c500e94dc_94203821.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c14f352cce6b5430f74a165fbbb7ec54_86712100.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/736729c77bfe774c9a2530dae813a425_43669245.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/b267ed081fc64c62c0de01e5236d7960_51061100.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/4393977b000a6a77890376ecdd7d4418_87550902.png change filename to text .imagette248648121752274592/ imagette248648121752274592/1752274285_2023968_1371754100_ba881d6226f8613b6a868aba91dde4d3_rle_crop_3880732240_0.png.png imagette248648121752274592/1752274285_2023968_1371754130_287261073432203a7642331e059e1063_rle_crop_3880732210_0.png.png imagette248648121752274592/1752274326_3740761_1371753952_82cf17d8477635daa24b1bed362334a6_rle_crop_3880733844_0.png.png imagette248648121752274592/1752274326_3740761_1371753944_5b20cf384f7c097c9fc8acab79e2297a_rle_crop_3880733934_0.png.png imagette248648121752274592/1752274326_3740761_1371753948_fdf9427b9bb68d38d8ef778edadd110f_rle_crop_3880733865_0.png.png imagette248648121752274592/1752274326_3740761_1371753967_96d8604fd8283dbe687d797ab04f0ac4_rle_crop_3880733770_0.png.png imagette248648121752274592/1752274326_3740761_1371753967_96d8604fd8283dbe687d797ab04f0ac4_rle_crop_3880733785_0.png.png imagette248648121752274592/1752274285_2023968_1371754076_94ebc65448e31600b4111f3036d00c8a_rle_crop_3880732261_0.png.png imagette248648121752274592/1752274326_3740761_1371753961_7d03f7f0c0ac9a56257827c53e59edf7_rle_crop_3880733805_0.png.png imagette248648121752274592/1752274326_3740761_1371753952_82cf17d8477635daa24b1bed362334a6_rle_crop_3880733835_0.png.png imagette248648121752274592/1752274326_3740761_1371753961_7d03f7f0c0ac9a56257827c53e59edf7_rle_crop_3880733794_0.png.png imagette248648121752274592/1752274285_2023968_1371754100_ba881d6226f8613b6a868aba91dde4d3_rle_crop_3880732230_0.png.png imagette248648121752274592/1752274285_2023968_1371754130_287261073432203a7642331e059e1063_rle_crop_3880732221_0.png.png imagette248648121752274592/1752274166_2020118_1371753911_eb629b9cc3f8c23cb6bd786905ceed86_rle_crop_3880730711_0.png.png imagette248648121752274592/1752274326_3740761_1371753956_23d56a835a00103d5fc5454b46d1bb96_rle_crop_3880733815_0.png.png imagette248648121752274592/1752274326_3740761_1371753956_23d56a835a00103d5fc5454b46d1bb96_rle_crop_3880733824_0.png.png imagette248648121752274592/1752274166_2020118_1371753927_fb671a8f10dd87ed85576b263dd4ccc0_rle_crop_3880729956_0.png.png imagette248648121752274592/1752274326_3740761_1371753967_96d8604fd8283dbe687d797ab04f0ac4_rle_crop_3880733769_0.png.png imagette248648121752274592/1752274285_2023968_1371754076_94ebc65448e31600b4111f3036d00c8a_rle_crop_3880732250_0.png.png imagette248648121752274592/1752274326_3740761_1371753948_fdf9427b9bb68d38d8ef778edadd110f_rle_crop_3880733857_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/db67d665f288490164bcd0430e5cc0e5_2541124.png imagette248648121752274592 24864814 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=24864814 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371754622: '1752274166_2020118_1371753936_74ff59fe1c4bef34165dd5836d905b90_rle_crop_3880729891_0.png', 1371754624: '1752274166_2020118_1371753935_25cce7b15d4dac12c0b7d7327cb5a479_rle_crop_3880729902_0.png', 1371754824: '1752274205_3736060_1371753666_5eeac79378baf9193323f5ad6491a7b1_rle_crop_3880730935_0.png', 1371754826: '1752274205_3736060_1371753666_5eeac79378baf9193323f5ad6491a7b1_rle_crop_3880730937_0.png', 1371754828: '1752274205_3736060_1371753640_7546765cc071ed6022ea5662f2e8631a_rle_crop_3880731106_0.png', 1371754830: '1752274205_3736060_1371753581_c529c3a52ba3d892aed154f509b159ba_rle_crop_3880731128_0.png', 1371755115: '1752274326_3740761_1371753952_82cf17d8477635daa24b1bed362334a6_rle_crop_3880733831_0.png', 1371755116: '1752274326_3740761_1371753948_fdf9427b9bb68d38d8ef778edadd110f_rle_crop_3880733849_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ab2ce0b298042f46f56e0692dd0c1a85_16489532.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ab2ce0b298042f46f56e0692dd0c1a85_94713586.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/33ea21019fa0dad37b204743348c0c02_14121505.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/35e6e6189391f90aeb2d63d9140330b8_91296720.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/5604a5dcd4e8e230b30ce3f9a7eba83d_30616867.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/5588bbdbafd0ae6116c4d5bb678978f4_8414365.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/54b3ed57a86c281c13f70af3ae5bc2d5_59913058.png change filename to text .imagette248648141752274594/ imagette248648141752274594/1752274166_2020118_1371753935_25cce7b15d4dac12c0b7d7327cb5a479_rle_crop_3880729902_0.png.png imagette248648141752274594/1752274326_3740761_1371753952_82cf17d8477635daa24b1bed362334a6_rle_crop_3880733831_0.png.png imagette248648141752274594/1752274205_3736060_1371753666_5eeac79378baf9193323f5ad6491a7b1_rle_crop_3880730937_0.png.png imagette248648141752274594/1752274326_3740761_1371753948_fdf9427b9bb68d38d8ef778edadd110f_rle_crop_3880733849_0.png.png imagette248648141752274594/1752274205_3736060_1371753666_5eeac79378baf9193323f5ad6491a7b1_rle_crop_3880730935_0.png.png imagette248648141752274594/1752274205_3736060_1371753640_7546765cc071ed6022ea5662f2e8631a_rle_crop_3880731106_0.png.png imagette248648141752274594/1752274205_3736060_1371753581_c529c3a52ba3d892aed154f509b159ba_rle_crop_3880731128_0.png.png imagette248648141752274594/1752274166_2020118_1371753936_74ff59fe1c4bef34165dd5836d905b90_rle_crop_3880729891_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/39ddb12b326de938a425d8c47509b0df_82992000.png imagette248648141752274594 24864804 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=24864804 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371754581: '1752274166_2020118_1371753934_652a8a74eceebe6bbfd1b6b7280196ef_rle_crop_3880729913_0.png', 1371754584: '1752274166_2020118_1371753931_b4178e0f68918a6aa9ffc6e1668f7fc0_rle_crop_3880729922_0.png', 1371754586: '1752274166_2020118_1371753911_eb629b9cc3f8c23cb6bd786905ceed86_rle_crop_3880730697_0.png', 1371754588: '1752274166_2020118_1371753908_e54956e7c0452b1b0657af0a3c244ada_rle_crop_3880730717_0.png', 1371754772: '1752274205_3736060_1371753720_5b93f6dd8193bc15ccdaf6247fba17a5_rle_crop_3880730745_0.png', 1371754774: '1752274205_3736060_1371753720_5b93f6dd8193bc15ccdaf6247fba17a5_rle_crop_3880730744_0.png', 1371754777: '1752274205_3736060_1371753691_615a782076330cb7f58c1e7abb1c10f1_rle_crop_3880730760_0.png', 1371754779: '1752274205_3736060_1371753691_615a782076330cb7f58c1e7abb1c10f1_rle_crop_3880730759_0.png', 1371754781: '1752274205_3736060_1371753666_5eeac79378baf9193323f5ad6491a7b1_rle_crop_3880730944_0.png', 1371754783: '1752274205_3736060_1371753640_7546765cc071ed6022ea5662f2e8631a_rle_crop_3880731111_0.png', 1371754785: '1752274205_3736060_1371753610_78a4c89a546b4a88661bf6f8170e40f0_rle_crop_3880731122_0.png', 1371755064: '1752274285_2023968_1371754182_857c16397b013ac3464074b971a346c0_rle_crop_3880732167_0.png', 1371755110: '1752274326_3740761_1371753967_96d8604fd8283dbe687d797ab04f0ac4_rle_crop_3880733772_0.png', 1371755111: '1752274326_3740761_1371753967_96d8604fd8283dbe687d797ab04f0ac4_rle_crop_3880733771_0.png', 1371755112: '1752274326_3740761_1371753944_5b20cf384f7c097c9fc8acab79e2297a_rle_crop_3880733926_0.png', 1371755182: '1752274407_2030377_1371754905_5808307a1c492529c4857a6efbea3145_rle_crop_3880734186_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/fdaa26e7a4affc24a90c4eae65dda7fe_1908426.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/fdaa26e7a4affc24a90c4eae65dda7fe_36611225.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/851e8385de032aead0942a0c8cdf5c94_46369769.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/851e8385de032aead0942a0c8cdf5c94_60934952.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/e83b31b0de760eb6bb35574f70764bf5_76810098.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ef41d22917987a8b7013cedd9108d82f_13683813.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/34087aabcfffd3a914701c822b676c57_26225791.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/704522ddc32698ce9c74570803cf73a8_66997029.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ca054c0c9b96a17fb8afb99cd64882d9_88544315.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/491fe1e093a7e226cd5685ba55dc2cd7_29247182.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/27fd238ba81d3c2b4ffb87cb47081868_6050879.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/bc2f3cc82a21da447c853d64d8e2ef9f_59040287.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/08ae6cd6c536fe68b250607927875afe_28557973.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/67b9e4fa8a16d0d3df00cee75fd063c5_73758282.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/e4f1ea6afc03cb7d1fbdfbb373e76f5a_9232615.png change filename to text .imagette248648041752274595/ imagette248648041752274595/1752274407_2030377_1371754905_5808307a1c492529c4857a6efbea3145_rle_crop_3880734186_0.png.png imagette248648041752274595/1752274166_2020118_1371753934_652a8a74eceebe6bbfd1b6b7280196ef_rle_crop_3880729913_0.png.png imagette248648041752274595/1752274205_3736060_1371753666_5eeac79378baf9193323f5ad6491a7b1_rle_crop_3880730944_0.png.png imagette248648041752274595/1752274326_3740761_1371753967_96d8604fd8283dbe687d797ab04f0ac4_rle_crop_3880733771_0.png.png imagette248648041752274595/1752274205_3736060_1371753720_5b93f6dd8193bc15ccdaf6247fba17a5_rle_crop_3880730745_0.png.png imagette248648041752274595/1752274166_2020118_1371753931_b4178e0f68918a6aa9ffc6e1668f7fc0_rle_crop_3880729922_0.png.png imagette248648041752274595/1752274166_2020118_1371753908_e54956e7c0452b1b0657af0a3c244ada_rle_crop_3880730717_0.png.png imagette248648041752274595/1752274205_3736060_1371753720_5b93f6dd8193bc15ccdaf6247fba17a5_rle_crop_3880730744_0.png.png imagette248648041752274595/1752274326_3740761_1371753944_5b20cf384f7c097c9fc8acab79e2297a_rle_crop_3880733926_0.png.png imagette248648041752274595/1752274326_3740761_1371753967_96d8604fd8283dbe687d797ab04f0ac4_rle_crop_3880733772_0.png.png imagette248648041752274595/1752274205_3736060_1371753640_7546765cc071ed6022ea5662f2e8631a_rle_crop_3880731111_0.png.png imagette248648041752274595/1752274285_2023968_1371754182_857c16397b013ac3464074b971a346c0_rle_crop_3880732167_0.png.png imagette248648041752274595/1752274205_3736060_1371753691_615a782076330cb7f58c1e7abb1c10f1_rle_crop_3880730759_0.png.png imagette248648041752274595/1752274166_2020118_1371753911_eb629b9cc3f8c23cb6bd786905ceed86_rle_crop_3880730697_0.png.png imagette248648041752274595/1752274205_3736060_1371753610_78a4c89a546b4a88661bf6f8170e40f0_rle_crop_3880731122_0.png.png imagette248648041752274595/1752274205_3736060_1371753691_615a782076330cb7f58c1e7abb1c10f1_rle_crop_3880730760_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/d394435c3e8c348cdfdeeddb0d39f362_44489805.png imagette248648041752274595 24864806 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=24864806 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371754612: '1752274166_2020118_1371753936_74ff59fe1c4bef34165dd5836d905b90_rle_crop_3880729893_0.png', 1371754614: '1752274166_2020118_1371753935_25cce7b15d4dac12c0b7d7327cb5a479_rle_crop_3880729904_0.png', 1371754807: '1752274205_3736060_1371753720_5b93f6dd8193bc15ccdaf6247fba17a5_rle_crop_3880730736_0.png', 1371754809: '1752274205_3736060_1371753691_615a782076330cb7f58c1e7abb1c10f1_rle_crop_3880730751_0.png', 1371754811: '1752274205_3736060_1371753666_5eeac79378baf9193323f5ad6491a7b1_rle_crop_3880730934_0.png', 1371754813: '1752274205_3736060_1371753581_c529c3a52ba3d892aed154f509b159ba_rle_crop_3880731131_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/7c99d4fbc97e285349577f57f211ca19_16539819.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/7c99d4fbc97e285349577f57f211ca19_8205310.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/3af95af15f5784c0c3d2d0ec5ea7097f_71732029.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/713ee4205b80e37c197f66153ff5905d_63167775.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/4e98e2d2b625a0a01e1edf7a3b62a6bf_88349833.png change filename to text .imagette248648061752274595/ imagette248648061752274595/1752274205_3736060_1371753720_5b93f6dd8193bc15ccdaf6247fba17a5_rle_crop_3880730736_0.png.png imagette248648061752274595/1752274205_3736060_1371753581_c529c3a52ba3d892aed154f509b159ba_rle_crop_3880731131_0.png.png imagette248648061752274595/1752274166_2020118_1371753936_74ff59fe1c4bef34165dd5836d905b90_rle_crop_3880729893_0.png.png imagette248648061752274595/1752274205_3736060_1371753666_5eeac79378baf9193323f5ad6491a7b1_rle_crop_3880730934_0.png.png imagette248648061752274595/1752274205_3736060_1371753691_615a782076330cb7f58c1e7abb1c10f1_rle_crop_3880730751_0.png.png imagette248648061752274595/1752274166_2020118_1371753935_25cce7b15d4dac12c0b7d7327cb5a479_rle_crop_3880729904_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/36b595ae4203c7f5c2e491f2d533d55e_49318321.png imagette248648061752274595 24864809 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=24864809 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371754838: '1752274205_3736060_1371753581_c529c3a52ba3d892aed154f509b159ba_rle_crop_3880731127_0.png', 1371755224: '1752274445_3744490_1371754727_3a1fd726ce40d655fbf8c955405b13a0_rle_crop_3880734512_0.png', 1371755225: '1752274445_3744490_1371754634_6588977ed44d3a27124c0d96ce765ab5_rle_crop_3880734541_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/f03ab3f1775cbb7383f2d8bc351851a4_74144602.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0af7100fd6a25ca7bc7414403cbc0baa_7193907.png change filename to text .imagette248648091752274596/ imagette248648091752274596/1752274205_3736060_1371753581_c529c3a52ba3d892aed154f509b159ba_rle_crop_3880731127_0.png.png imagette248648091752274596/1752274445_3744490_1371754727_3a1fd726ce40d655fbf8c955405b13a0_rle_crop_3880734512_0.png.png imagette248648091752274596/1752274445_3744490_1371754634_6588977ed44d3a27124c0d96ce765ab5_rle_crop_3880734541_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c739b7f2e3d846496c25c2017d4537c7_99581083.png imagette248648091752274596 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24864799 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24864815,24864816,24864817,24864818,24864819,24864820,24864821,24864822,24864823,24864824,24864825,24864826?tags=flou,Teint_Dans_La_Masse,mal_croppe,Carton_gris,kraft,autre_refus,Carton_brun,metal,environnement,plastique,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1371755270] : ('0.08014493466844005',) no score found for photo 1371755270 We are sending mail with results at report@fotonower.com args[1371755266] : ('0.08014493466844005',) no score found for photo 1371755266 We are sending mail with results at report@fotonower.com args[1371755263] : ('0.08014493466844005',) no score found for photo 1371755263 We are sending mail with results at report@fotonower.com args[1371755259] : ('0.08014493466844005',) no score found for photo 1371755259 We are sending mail with results at report@fotonower.com args[1371755254] : ('0.08014493466844005',) no score found for photo 1371755254 We are sending mail with results at report@fotonower.com args[1371755249] : ('0.08014493466844005',) no score found for photo 1371755249 We are sending mail with results at report@fotonower.com args[1371755239] : ('0.08014493466844005',) no score found for photo 1371755239 We are sending mail with results at report@fotonower.com args[1371755237] : ('0.08014493466844005',) no score found for photo 1371755237 We are sending mail with results at report@fotonower.com args[1371755234] : ('0.08014493466844005',) no score found for photo 1371755234 We are sending mail with results at report@fotonower.com args[1371755232] : ('0.08014493466844005',) no score found for photo 1371755232 We are sending mail with results at report@fotonower.com args[1371755231] : ('0.08014493466844005',) no score found for photo 1371755231 We are sending mail with results at report@fotonower.com args[1371755229] : ('0.08014493466844005',) no score found for photo 1371755229 We are sending mail with results at report@fotonower.com args[1371755227] : ('0.08014493466844005',) no score found for photo 1371755227 We are sending mail with results at report@fotonower.com args[1371755226] : ('0.08014493466844005',) no score found for photo 1371755226 We are sending mail with results at report@fotonower.com args[1371755222] : ('0.08014493466844005',) no score found for photo 1371755222 We are sending mail with results at report@fotonower.com args[1371755221] : ('0.08014493466844005',) no score found for photo 1371755221 We are sending mail with results at report@fotonower.com args[1371755219] : ('0.08014493466844005',) no score found for photo 1371755219 We are sending mail with results at report@fotonower.com args[1371755218] : ('0.08014493466844005',) no score found for photo 1371755218 We are sending mail with results at report@fotonower.com refus_total : 0.08014493466844005 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=24864799 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_P24864799_12-07-2025_00_56_32.pdf results_Auto_P24864799_12-07-2025_00_56_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864799_12-07-2025_00_56_32.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','24864799','results_Auto_P24864799_12-07-2025_00_56_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864799_12-07-2025_00_56_32.pdf','pdf','','0.42','0.08014493466844005') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24864799]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218] map_info['map_portfolio_photo'] : {24864799: [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218, 1371755172, 1371755169, 1371755167, 1371755165, 1371755163, 1371755158, 1371755096, 1371755095, 1371755092, 1371755089, 1371755086, 1371755073, 1371754932, 1371754905, 1371754895, 1371754892, 1371754886, 1371754875, 1371754764, 1371754727, 1371754697, 1371754669, 1371754634, 1371754604, 1371754210, 1371754182, 1371754157, 1371754130, 1371754100, 1371754076, 1371753967, 1371753961, 1371753956, 1371753952, 1371753948, 1371753944, 1371753936, 1371753935, 1371753934, 1371753931, 1371753929, 1371753927, 1371753923, 1371753921, 1371753917, 1371753915, 1371753911, 1371753908, 1371753720, 1371753691, 1371753666, 1371753640, 1371753610, 1371753581]} final : False mtd_id 4302 list_pids : [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218] 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, '3273845') ('4302', '24864799', '1371755270', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755266', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755263', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755259', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755254', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755249', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755239', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755237', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755234', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755232', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755231', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755229', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755227', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755226', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755222', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755221', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755219', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755218', None, None, None, None, None, '3273845') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24864799', '1371755270', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755266', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755263', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755259', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755254', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755249', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755239', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755237', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755234', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755232', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755231', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755229', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755227', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755226', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755222', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755221', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755219', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755218', None, None, None, None, None, '3273845')] time used for this insertion : 0.018578290939331055 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.043031215667725 time spend to save output : 0.018905162811279297 total time spend for step 4 : 6.061936378479004 step5:split_time_score Sat Jul 12 00:56:38 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 : ['24864799'] 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 : [('24864799',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24864799) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371755266: {'path': 'temp/1752274592_923555_1371755266_d06574d93dad66b5ca28b22a8736eb07.jpg', 'extension': 'jpg'}, 1371755270: {'path': 'temp/1752274592_923555_1371755270_4117838a9da36306802554ed479eb51e.jpg', 'extension': 'jpg'}, 1371755249: {'path': 'temp/1752274592_923555_1371755249_e285bb8d8d88960c1a79ba22b126719e.jpg', 'extension': 'jpg'}, 1371755254: {'path': 'temp/1752274592_923555_1371755254_6bf7bcb7523c5d1963097075267773b3.jpg', 'extension': 'jpg'}, 1371755259: {'path': 'temp/1752274592_923555_1371755259_b5a90a38b86abb12a75ca8d1c7995244.jpg', 'extension': 'jpg'}, 1371755263: {'path': 'temp/1752274592_923555_1371755263_9896c6275db0cb3fcd5894c2f6adb93b.jpg', 'extension': 'jpg'}, 1371755232: {'path': 'temp/1752274592_923555_1371755232_d2785b1656f5e9df33009a473f169b75.jpg', 'extension': 'jpg'}, 1371755234: {'path': 'temp/1752274592_923555_1371755234_b225c705cfa8b4ac0005e83280448be3.jpg', 'extension': 'jpg'}, 1371755237: {'path': 'temp/1752274592_923555_1371755237_9115ba259a68d8c2f80601f0a561454a.jpg', 'extension': 'jpg'}, 1371755239: {'path': 'temp/1752274592_923555_1371755239_17eb0fe1006dea74d544aab5a9670ad4.jpg', 'extension': 'jpg'}, 1371755226: {'path': 'temp/1752274592_923555_1371755226_686b4c5e62138b5dd26ccc4f606cbaef.jpg', 'extension': 'jpg'}, 1371755227: {'path': 'temp/1752274592_923555_1371755227_2e1f281e99d60e5ca2da85f8cf4e6247.jpg', 'extension': 'jpg'}, 1371755229: {'path': 'temp/1752274592_923555_1371755229_e22e326c6b0ffbfab0e8ade31648da99.jpg', 'extension': 'jpg'}, 1371755231: {'path': 'temp/1752274592_923555_1371755231_246d75eaa903464e3a3c3072a25d78e3.jpg', 'extension': 'jpg'}, 1371755218: {'path': 'temp/1752274592_923555_1371755218_00ad7c92c3080d73b31e0acfcebae17a.jpg', 'extension': 'jpg'}, 1371755219: {'path': 'temp/1752274592_923555_1371755219_c3318e483d69959f6f703d08894c5b83.jpg', 'extension': 'jpg'}, 1371755221: {'path': 'temp/1752274592_923555_1371755221_02eaaede9acc257576b69500f09117d7.jpg', 'extension': 'jpg'}, 1371755222: {'path': 'temp/1752274592_923555_1371755222_6f44916306eafb387449446a089c46d0.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 = 24864799; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 24864799 group by h (('00', 72),) 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=24864799 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 (24864799) 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 (24864799) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12072025 24864799 Nombre de photos uploadées : 72 / 23040 (0%) 12072025 24864799 Nombre de photos taguées (types de déchets): 0 / 72 (0%) 12072025 24864799 Nombre de photos taguées (volume) : 0 / 72 (0%) [{'photo_id': 1371753720, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/5b93f6dd8193bc15ccdaf6247fba17a5.jpg', 'username': None, 'uploaded_at': 1752273977, 'text': 'image_12072025_00_45_04_010146m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371753691, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/615a782076330cb7f58c1e7abb1c10f1.jpg', 'username': None, 'uploaded_at': 1752273977, 'text': 'image_12072025_00_45_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371753666, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/5eeac79378baf9193323f5ad6491a7b1.jpg', 'username': None, 'uploaded_at': 1752273977, 'text': 'image_12072025_00_45_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371753640, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/7546765cc071ed6022ea5662f2e8631a.jpg', 'username': None, 'uploaded_at': 1752273977, 'text': 'image_12072025_00_45_34_010136m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ???????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003124237060546875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 24864799, '2025-07-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1971997,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023916006088256836 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= 1971997 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1971997, 'dashboard_run_id': 1979558, 'mtr_portfolio_id': 24862874, 'dashboard_result_id': 12448284, '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_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, 'pht': 3726}}"}, {'dashboat_entry_day': 1971997, 'dashboard_run_id': 1979558, 'mtr_portfolio_id': 24863716, 'dashboard_result_id': 12448285, '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_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, 'pht': 3726}}"}, {'dashboat_entry_day': 1971997, 'dashboard_run_id': 1979558, 'mtr_portfolio_id': 24864264, 'dashboard_result_id': 12448286, '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_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, 'pht': 3726}}"}, {'dashboat_entry_day': 1971997, 'dashboard_run_id': 1979558, 'mtr_portfolio_id': 24864799, 'dashboard_result_id': 12448287, '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_P24864799_12-07-2025_00_54_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, '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 = 24862874 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': 3273672, 'mtr_portfolio_id': 24862874, 'created_at': datetime.datetime(2025, 7, 12, 0, 16, 59), 'result': '0.037367531886799636', 'result_long': None, 'result_double': None}] Qualite : 0.037367531886799636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24862874 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24862874_12-07-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24862874 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_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, 'pht': 3726}}" where mtr_portfolio_id = 24862874 and dashboard_run_id = 1979558 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`=24862874 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12448284, 0.037367531886799636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24863716 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': 3273753, 'mtr_portfolio_id': 24863716, 'created_at': datetime.datetime(2025, 7, 12, 0, 32, 58), 'result': '0.03280463110763884', 'result_long': None, 'result_double': None}] Qualite : 0.03280463110763884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24863716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24863716_12-07-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24863716 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_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, 'pht': 3726}}" where mtr_portfolio_id = 24863716 and dashboard_run_id = 1979558 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`=24863716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12448285, 0.03280463110763884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24864264 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': 3273801, 'mtr_portfolio_id': 24864264, 'created_at': datetime.datetime(2025, 7, 12, 0, 46, 56), 'result': '0.045803300599373216', 'result_long': None, 'result_double': None}] Qualite : 0.045803300599373216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24864264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864264_12-07-2025_00_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24864264 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_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, 'pht': 3726}}" where mtr_portfolio_id = 24864264 and dashboard_run_id = 1979558 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`=24864264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12448286, 0.045803300599373216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24864799 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': 3273845, 'mtr_portfolio_id': 24864799, 'created_at': datetime.datetime(2025, 7, 12, 0, 56, 31), 'result': '0.08014493466844005', 'result_long': None, 'result_double': None}] Qualite : 0.08014493466844005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24864799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864799_12-07-2025_00_56_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24864799 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_P24864799_12-07-2025_00_56_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, 'pht': 3726}}" where mtr_portfolio_id = 24864799 and dashboard_run_id = 1979558 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`=24864799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12448287, 0.08014493466844005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864799_12-07-2025_00_56_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, '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 (24862874,24863716,24864264,24864799) result : ((1371742379,), (1371742409,), (1371742439,), (1371742467,), (1371742493,), (1371742810,), (1371742839,), (1371742869,), (1371742894,), (1371742918,), (1371742943,), (1371743083,), (1371743084,), (1371743103,), (1371743104,), (1371743131,), (1371743137,), (1371743164,), (1371743167,), (1371743191,), (1371743196,), (1371743220,), (1371743223,), (1371743306,), (1371743309,), (1371743312,), (1371743340,), (1371743358,), (1371743368,), (1371743470,), (1371743474,), (1371743479,), (1371743505,), (1371743531,), (1371743558,), (1371743769,), (1371743777,), (1371743781,), (1371743786,), (1371743808,), (1371743836,), (1371743987,), (1371744038,), (1371744092,), (1371744216,), (1371744321,), (1371744440,), (1371744789,), (1371744950,), (1371745105,), (1371745166,), (1371745248,), (1371745345,), (1371745593,), (1371745621,), (1371745663,), (1371745726,), (1371745808,), (1371745824,), (1371746189,), (1371746240,), (1371746298,), (1371746311,), (1371746325,), (1371746331,), (1371746501,), (1371746504,), (1371746508,), (1371746512,), (1371746515,), (1371746520,), (1371746569,), (1371746583,), (1371746607,), (1371746632,), (1371746659,), (1371746685,), (1371746815,), (1371746817,), (1371746818,), (1371746838,), (1371746843,), (1371746854,), (1371747126,), (1371747160,), (1371747186,), (1371747211,), (1371747235,), (1371747269,), (1371747638,), (1371747660,), (1371747687,), (1371747705,), (1371747710,), (1371747716,), (1371747773,), (1371747803,), (1371747842,), (1371747869,), (1371747882,), (1371747883,), (1371748191,), (1371748226,), (1371748292,), (1371748342,), (1371748367,), (1371748380,), (1371748740,), (1371748777,), (1371748817,), (1371748841,), (1371748871,), (1371748900,), (1371749035,), (1371749067,), (1371749121,), (1371749168,), (1371749218,), (1371749277,), (1371749616,), (1371749631,), (1371749649,), (1371749652,), (1371749653,), (1371749657,), (1371749730,), (1371749732,), (1371749735,), (1371749737,), (1371749739,), (1371749741,), (1371749784,), (1371749788,), (1371749791,), (1371749794,), (1371749799,), (1371749804,), (1371749818,), (1371749821,), (1371749823,), (1371749826,), (1371749829,), (1371749833,), (1371749877,), (1371749879,), (1371749883,), (1371749887,), (1371749891,), (1371749895,), (1371749945,), (1371749947,), (1371749949,), (1371749950,), (1371749970,), (1371749981,), (1371750000,), (1371750004,), (1371750007,), (1371750022,), (1371750048,), (1371750075,), (1371750384,), (1371750395,), (1371750398,), (1371750403,), (1371750406,), (1371750407,), (1371750451,), (1371750455,), (1371750459,), (1371750462,), (1371750467,), (1371750470,), (1371750523,), (1371750526,), (1371750528,), (1371750533,), (1371750538,), (1371750545,), (1371750621,), (1371750663,), (1371750711,), (1371750754,), (1371750800,), (1371750854,), (1371751193,), (1371751204,), (1371751218,), (1371751221,), (1371751224,), (1371751226,), (1371751298,), (1371751302,), (1371751313,), (1371751317,), (1371751321,), (1371751326,), (1371751335,), (1371751336,), (1371751343,), (1371751344,), (1371751351,), (1371751353,), (1371751356,), (1371751358,), (1371751362,), (1371751366,), (1371751374,), (1371751376,), (1371751394,), (1371751397,), (1371751399,), (1371751413,), (1371751421,), (1371751428,), (1371751438,), (1371751467,), (1371751472,), (1371751476,), (1371751480,), (1371751484,), (1371751492,), (1371751493,), (1371751495,), (1371751496,), (1371751498,), (1371751499,), (1371751501,), (1371751502,), (1371751504,), (1371751505,), (1371751508,), (1371751509,), (1371751527,), (1371751539,), (1371751544,), (1371751548,), (1371751552,), (1371751555,), (1371751613,), (1371751618,), (1371751622,), (1371751639,), (1371751665,), (1371751689,), (1371752002,), (1371752028,), (1371752051,), (1371752078,), (1371752104,), (1371752129,), (1371752184,), (1371752189,), (1371752193,), (1371752195,), (1371752198,), (1371752201,), (1371752337,), (1371752367,), (1371752392,), (1371752421,), (1371752446,), (1371752477,), (1371752620,), (1371752626,), (1371752631,), (1371752635,), (1371752639,), (1371752642,), (1371752818,), (1371752820,), (1371752824,), (1371752828,), (1371752832,), (1371752834,), (1371753104,), (1371753112,), (1371753115,), (1371753118,), (1371753120,), (1371753122,), (1371753173,), (1371753174,), (1371753177,), (1371753178,), (1371753182,), (1371753183,), (1371753189,), (1371753191,), (1371753200,), (1371753202,), (1371753207,), (1371753210,), (1371753216,), (1371753218,), (1371753221,), (1371753224,), (1371753228,), (1371753234,), (1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12072025': {'nb_upload': 72, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24864799]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218] map_info['map_portfolio_photo'] : {24864799: [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218, 1371755172, 1371755169, 1371755167, 1371755165, 1371755163, 1371755158, 1371755096, 1371755095, 1371755092, 1371755089, 1371755086, 1371755073, 1371754932, 1371754905, 1371754895, 1371754892, 1371754886, 1371754875, 1371754764, 1371754727, 1371754697, 1371754669, 1371754634, 1371754604, 1371754210, 1371754182, 1371754157, 1371754130, 1371754100, 1371754076, 1371753967, 1371753961, 1371753956, 1371753952, 1371753948, 1371753944, 1371753936, 1371753935, 1371753934, 1371753931, 1371753929, 1371753927, 1371753923, 1371753921, 1371753917, 1371753915, 1371753911, 1371753908, 1371753720, 1371753691, 1371753666, 1371753640, 1371753610, 1371753581]} final : True mtd_id 4302 list_pids : [1371755270, 1371755266, 1371755263, 1371755259, 1371755254, 1371755249, 1371755239, 1371755237, 1371755234, 1371755232, 1371755231, 1371755229, 1371755227, 1371755226, 1371755222, 1371755221, 1371755219, 1371755218] Looping around the photos to save general results len do output : 1 /24864799Didn'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, '3273845') ('4302', '24864799', '1371755270', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755266', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755263', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755259', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755254', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755249', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755239', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755237', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755234', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755232', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755231', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755229', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755227', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755226', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755222', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755221', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755219', None, None, None, None, None, '3273845') ('4302', None, None, None, None, None, None, None, '3273845') ('4302', '24864799', '1371755218', None, None, None, None, None, '3273845') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '24864799', 'None', None, None, None, None, '3273845'), ('4302', '24864799', '1371755270', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755266', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755263', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755259', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755254', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755249', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755239', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755237', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755234', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755232', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755231', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755229', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755227', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755226', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755222', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755221', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755219', None, None, None, None, None, '3273845'), ('4302', '24864799', '1371755218', None, None, None, None, None, '3273845')] time used for this insertion : 0.2106485366821289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3590054512023926 time spend to save output : 0.21091842651367188 total time spend for step 5 : 0.5699238777160645 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 (3273845) 2.72user 2.24system 0:12.56elapsed 39%CPU (0avgtext+0avgdata 160904maxresident)k 32inputs+25632outputs (0major+79107minor)pagefaults 0swaps