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 : 2203670 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 (3866945) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3866945) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553244 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3866945'] with mtr_portfolio_ids : ['27553244'] and first list_photo_ids : [] new path : /proc/2203670/ Name: python3 Umask: 0002 State: R (running) Tgid: 2203670 Ngid: 0 Pid: 2203670 PPid: 2203669 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2203670 NSpid: 2203670 NSpgid: 2202013 NSsid: 2202013 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100984 kB VmRSS: 100984 kB RssAnon: 59832 kB RssFile: 41152 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 50 nonvoluntary_ctxt_switches: 79 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2203670', 'Ngid': '0', 'Pid': '2203670', 'PPid': '2203669', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2203670', 'NSpid': '2203670', 'NSpgid': '2202013', 'NSsid': '2202013', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100984 kB', 'VmRSS': '100984 kB', 'RssAnon': '59832 kB', 'RssFile': '41152 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '50', 'nonvoluntary_ctxt_switches': '79'} ('datou_batch_current', '2203670', '1106868', '0', '1106868', '865620', '100984', b'', 'marlene', '3866945') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27553244) 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 (3866945 ) ) 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 (27553244) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1387927301, 'portfolio_id': 27553244}, {'photo_id': 1387927274, 'portfolio_id': 27553244}, {'photo_id': 1387927272, 'portfolio_id': 27553244}, {'photo_id': 1387927269, 'portfolio_id': 27553244}, {'photo_id': 1387927267, 'portfolio_id': 27553244}, {'photo_id': 1387927264, 'portfolio_id': 27553244}, {'photo_id': 1387927262, 'portfolio_id': 27553244}, {'photo_id': 1387927257, 'portfolio_id': 27553244}, {'photo_id': 1387927256, 'portfolio_id': 27553244}, {'photo_id': 1387927253, 'portfolio_id': 27553244}, {'photo_id': 1387927251, 'portfolio_id': 27553244}, {'photo_id': 1387927249, 'portfolio_id': 27553244}, {'photo_id': 1387927247, 'portfolio_id': 27553244}, {'photo_id': 1387927244, 'portfolio_id': 27553244}, {'photo_id': 1387927242, 'portfolio_id': 27553244}, {'photo_id': 1387927232, 'portfolio_id': 27553244}, {'photo_id': 1387927230, 'portfolio_id': 27553244}, {'photo_id': 1387927227, 'portfolio_id': 27553244}, {'photo_id': 1387927222, 'portfolio_id': 27553244}, {'photo_id': 1387927220, 'portfolio_id': 27553244}, {'photo_id': 1387927211, 'portfolio_id': 27553244}, {'photo_id': 1387927209, 'portfolio_id': 27553244}, {'photo_id': 1387927204, 'portfolio_id': 27553244}, {'photo_id': 1387927200, 'portfolio_id': 27553244}, {'photo_id': 1387927195, 'portfolio_id': 27553244}, {'photo_id': 1387927191, 'portfolio_id': 27553244}, {'photo_id': 1387927172, 'portfolio_id': 27553244}, {'photo_id': 1387927169, 'portfolio_id': 27553244}, {'photo_id': 1387927167, 'portfolio_id': 27553244}, {'photo_id': 1387927157, 'portfolio_id': 27553244}, {'photo_id': 1387927155, 'portfolio_id': 27553244}, {'photo_id': 1387927152, 'portfolio_id': 27553244}, {'photo_id': 1387927149, 'portfolio_id': 27553244}, {'photo_id': 1387927142, 'portfolio_id': 27553244}, {'photo_id': 1387927108, 'portfolio_id': 27553244}, {'photo_id': 1387926859, 'portfolio_id': 27553244}, {'photo_id': 1387926857, 'portfolio_id': 27553244}, {'photo_id': 1387926855, 'portfolio_id': 27553244}, {'photo_id': 1387926744, 'portfolio_id': 27553244}, {'photo_id': 1387926702, 'portfolio_id': 27553244}, {'photo_id': 1387926653, 'portfolio_id': 27553244}, {'photo_id': 1387926607, 'portfolio_id': 27553244}, {'photo_id': 1387926570, 'portfolio_id': 27553244}, {'photo_id': 1387926527, 'portfolio_id': 27553244}, {'photo_id': 1387926254, 'portfolio_id': 27553244}, {'photo_id': 1387926251, 'portfolio_id': 27553244}, {'photo_id': 1387926249, 'portfolio_id': 27553244}, {'photo_id': 1387926247, 'portfolio_id': 27553244}, {'photo_id': 1387926228, 'portfolio_id': 27553244}, {'photo_id': 1387926226, 'portfolio_id': 27553244}, {'photo_id': 1387926225, 'portfolio_id': 27553244}, {'photo_id': 1387926218, 'portfolio_id': 27553244}, {'photo_id': 1387926215, 'portfolio_id': 27553244}, {'photo_id': 1387926210, 'portfolio_id': 27553244}, {'photo_id': 1387926204, 'portfolio_id': 27553244}, {'photo_id': 1387926200, 'portfolio_id': 27553244}, {'photo_id': 1387926199, 'portfolio_id': 27553244}, {'photo_id': 1387926190, 'portfolio_id': 27553244}, {'photo_id': 1387926188, 'portfolio_id': 27553244}, {'photo_id': 1387926184, 'portfolio_id': 27553244}, {'photo_id': 1387926170, 'portfolio_id': 27553244}, {'photo_id': 1387926167, 'portfolio_id': 27553244}, {'photo_id': 1387926162, 'portfolio_id': 27553244}, {'photo_id': 1387926159, 'portfolio_id': 27553244}, {'photo_id': 1387926154, 'portfolio_id': 27553244}, {'photo_id': 1387926149, 'portfolio_id': 27553244}, {'photo_id': 1387926146, 'portfolio_id': 27553244}, {'photo_id': 1387926144, 'portfolio_id': 27553244}, {'photo_id': 1387926138, 'portfolio_id': 27553244}, {'photo_id': 1387926134, 'portfolio_id': 27553244}, {'photo_id': 1387926130, 'portfolio_id': 27553244}, {'photo_id': 1387926128, 'portfolio_id': 27553244}, {'photo_id': 1387926045, 'portfolio_id': 27553244}, {'photo_id': 1387925997, 'portfolio_id': 27553244}, {'photo_id': 1387925952, 'portfolio_id': 27553244}, {'photo_id': 1387925940, 'portfolio_id': 27553244}, {'photo_id': 1387925937, 'portfolio_id': 27553244}] map_portfolio_id_photo_id: {27553244: [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191, 1387927172, 1387927169, 1387927167, 1387927157, 1387927155, 1387927152, 1387927149, 1387927142, 1387927108, 1387926859, 1387926857, 1387926855, 1387926744, 1387926702, 1387926653, 1387926607, 1387926570, 1387926527, 1387926254, 1387926251, 1387926249, 1387926247, 1387926228, 1387926226, 1387926225, 1387926218, 1387926215, 1387926210, 1387926204, 1387926200, 1387926199, 1387926190, 1387926188, 1387926184, 1387926170, 1387926167, 1387926162, 1387926159, 1387926154, 1387926149, 1387926146, 1387926144, 1387926138, 1387926134, 1387926130, 1387926128, 1387926045, 1387925997, 1387925952, 1387925940, 1387925937]} ##### 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.05380606651306152 #### 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 Tue Oct 7 10:36:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27553244) 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 : 27553244 get user id for portfolio 27553244 get sub ptf for main ptf 27553244, type 3726 and hashtags ['Carton_brun', 'cartonnette', 'mal_croppe', 'Carton_gris', 'papier', 'kraft', 'plastique', 'flou', 'autre_refus', 'Teint_Dans_La_Masse', 'metal', 'environnement'] 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`=27553244 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','mal_croppe','Carton_gris','papier','kraft','plastique','flou','autre_refus','Teint_Dans_La_Masse','metal','environnement')) 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`=27553244 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','mal_croppe','Carton_gris','papier','kraft','plastique','flou','autre_refus','Teint_Dans_La_Masse','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 27553244, 'sub_port_id': 27553260, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602426, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'autre_refus': {'main_port_id': 27553244, 'sub_port_id': 27553261, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602427, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'cartonnette': {'main_port_id': 27553244, 'sub_port_id': 27553262, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602428, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'mal_croppe': {'main_port_id': 27553244, 'sub_port_id': 27553263, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602429, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'kraft': {'main_port_id': 27553244, 'sub_port_id': 27553264, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602430, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'papier': {'main_port_id': 27553244, 'sub_port_id': 27553265, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602431, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'plastique': {'main_port_id': 27553244, 'sub_port_id': 27553266, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602432, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'Carton_gris': {'main_port_id': 27553244, 'sub_port_id': 27553267, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602433, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'flou': {'main_port_id': 27553244, 'sub_port_id': 27553268, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602434, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'metal': {'main_port_id': 27553244, 'sub_port_id': 27553269, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602435, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'Teint_Dans_La_Masse': {'main_port_id': 27553244, 'sub_port_id': 27553270, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602436, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}, 'environnement': {'main_port_id': 27553244, 'sub_port_id': 27553271, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602437, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27553260 , 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=27553244 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 (27553260) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553261 , 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=27553244 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 (27553261) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553262 , 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=27553244 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 (27553262) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553263 , 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=27553244 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 (27553263) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553264 , 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=27553244 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 (27553264) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553265 , 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=27553244 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 (27553265) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553266 , 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=27553244 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 (27553266) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553267 , 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=27553244 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 (27553267) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553268 , 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=27553244 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 (27553268) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553269 , 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=27553244 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 (27553269) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553270 , 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=27553244 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 (27553270) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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 27553271 , 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=27553244 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 (27553271) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27553244) result : ((1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,)) 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 (1387927200,1387926200) 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`=27553244 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','mal_croppe','Carton_gris','papier','kraft','plastique','flou','autre_refus','Teint_Dans_La_Masse','metal','environnement')) 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`=27553244 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','mal_croppe','Carton_gris','papier','kraft','plastique','flou','autre_refus','Teint_Dans_La_Masse','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 27553244, 'sub_port_id': 27553273, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602438, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'autre_refus': {'main_port_id': 27553244, 'sub_port_id': 27553274, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602439, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'cartonnette': {'main_port_id': 27553244, 'sub_port_id': 27553275, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602440, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'mal_croppe': {'main_port_id': 27553244, 'sub_port_id': 27553276, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602441, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'kraft': {'main_port_id': 27553244, 'sub_port_id': 27553278, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602442, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'papier': {'main_port_id': 27553244, 'sub_port_id': 27553279, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602443, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'plastique': {'main_port_id': 27553244, 'sub_port_id': 27553280, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602444, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'Carton_gris': {'main_port_id': 27553244, 'sub_port_id': 27553281, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602445, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'flou': {'main_port_id': 27553244, 'sub_port_id': 27553282, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602446, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'metal': {'main_port_id': 27553244, 'sub_port_id': 27553283, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602447, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 27553244, 'sub_port_id': 27553284, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602448, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}, 'environnement': {'main_port_id': 27553244, 'sub_port_id': 27553285, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18602449, 'last_updated_at': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 7, 10, 27, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 7, 10, 23, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553273,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553260 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553274,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553261 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553275,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553262 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553276,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553263 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553278,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553264 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553279,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553265 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553280,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553266 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553267 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553268 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27553285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27553271 lien utilise dans velours : https://marlene.fotonower.com/velours/27553273,27553274,27553275,27553276,27553278,27553279,27553280,27553281,27553282,27553283,27553284,27553285?tags=Carton_brun,autre_refus,cartonnette,mal_croppe,kraft,papier,plastique,Carton_gris,flou,metal,Teint_Dans_La_Masse,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27553244]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191] map_info['map_portfolio_photo'] : {27553244: [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191, 1387927172, 1387927169, 1387927167, 1387927157, 1387927155, 1387927152, 1387927149, 1387927142, 1387927108, 1387926859, 1387926857, 1387926855, 1387926744, 1387926702, 1387926653, 1387926607, 1387926570, 1387926527, 1387926254, 1387926251, 1387926249, 1387926247, 1387926228, 1387926226, 1387926225, 1387926218, 1387926215, 1387926210, 1387926204, 1387926200, 1387926199, 1387926190, 1387926188, 1387926184, 1387926170, 1387926167, 1387926162, 1387926159, 1387926154, 1387926149, 1387926146, 1387926144, 1387926138, 1387926134, 1387926130, 1387926128, 1387926045, 1387925997, 1387925952, 1387925940, 1387925937]} final : False mtd_id 4302 list_pids : [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191] Looping around the photos to save general results len do output : 1 /27553244. 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, '3866945') ('4302', '27553244', '1387927301', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927274', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927272', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927269', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927267', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927264', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927262', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927257', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927256', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927253', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927251', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927249', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927247', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927244', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927242', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927232', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927230', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927227', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927222', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927220', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927211', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927209', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927204', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927200', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927195', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927191', None, None, None, None, None, '3866945') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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, '27553244', "{'Carton_brun': 27553260, 'autre_refus': 27553261, 'cartonnette': 27553262, 'mal_croppe': 27553263, 'kraft': 27553264, 'papier': 27553265, 'plastique': 27553266, 'Carton_gris': 27553267, 'flou': 27553268, 'metal': 27553269, 'Teint_Dans_La_Masse': 27553270, 'environnement': 27553271}", None, None, None, None, '3866945'), ('4302', '27553244', '1387927301', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927274', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927272', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927269', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927267', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927264', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927262', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927257', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927256', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927253', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927251', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927249', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927247', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927244', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927242', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927232', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927230', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927227', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927222', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927220', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927211', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927209', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927204', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927200', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927195', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927191', None, None, None, None, None, '3866945')] time used for this insertion : 0.03882169723510742 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6509690284729004 time spend to save output : 0.03928565979003906 total time spend for step 1 : 1.6902546882629395 step2:final Tue Oct 7 10:37:01 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 (27553244) 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 27553244 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1387926045,1387925997,1387925952,1387925940,1387925937,1387926138,1387926134,1387926130,1387926128,1387926162,1387926159,1387926154,1387926149,1387926146,1387926144,1387926190,1387926188,1387926184,1387926170,1387926167,1387926218,1387926215,1387926210,1387926204,1387926200,1387926199,1387926228,1387926226,1387926225,1387926254,1387926251,1387926249,1387926247,1387926744,1387926702,1387926653,1387926607,1387926570,1387926527,1387926859,1387926857,1387927157,1387926855,1387927155,1387927152,1387927149,1387927142,1387927108,1387927172,1387927169,1387927167,1387927211,1387927209,1387927204,1387927200,1387927195,1387927191,1387927257,1387927232,1387927230,1387927256,1387927227,1387927253,1387927222,1387927251,1387927249,1387927220,1387927247,1387927244,1387927242,1387927274,1387927272,1387927269,1387927267,1387927264,1387927262,1387927301); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27553244]) Inside saveOutput : final : False verbose : True original output for save of step final : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} new output for save of step final : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191] map_info['map_portfolio_photo'] : {27553244: [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191, 1387927172, 1387927169, 1387927167, 1387927157, 1387927155, 1387927152, 1387927149, 1387927142, 1387927108, 1387926859, 1387926857, 1387926855, 1387926744, 1387926702, 1387926653, 1387926607, 1387926570, 1387926527, 1387926254, 1387926251, 1387926249, 1387926247, 1387926228, 1387926226, 1387926225, 1387926218, 1387926215, 1387926210, 1387926204, 1387926200, 1387926199, 1387926190, 1387926188, 1387926184, 1387926170, 1387926167, 1387926162, 1387926159, 1387926154, 1387926149, 1387926146, 1387926144, 1387926138, 1387926134, 1387926130, 1387926128, 1387926045, 1387925997, 1387925952, 1387925940, 1387925937]} final : False mtd_id 4302 list_pids : [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191] Looping around the photos to save general results len do output : 26 /1387927301.Didn't retrieve data . /1387927274.Didn't retrieve data . /1387927272.Didn't retrieve data . /1387927269.Didn't retrieve data . /1387927267.Didn't retrieve data . /1387927264.Didn't retrieve data . /1387927262.Didn't retrieve data . /1387927257.Didn't retrieve data . /1387927256.Didn't retrieve data . /1387927253.Didn't retrieve data . /1387927251.Didn't retrieve data . /1387927249.Didn't retrieve data . /1387927247.Didn't retrieve data . /1387927244.Didn't retrieve data . /1387927242.Didn't retrieve data . /1387927232.Didn't retrieve data . /1387927230.Didn't retrieve data . /1387927227.Didn't retrieve data . /1387927222.Didn't retrieve data . /1387927220.Didn't retrieve data . /1387927211.Didn't retrieve data . /1387927209.Didn't retrieve data . /1387927204.Didn't retrieve data . /1387927200.Didn't retrieve data . /1387927195.Didn't retrieve data . /1387927191.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, '3866945') ('4302', '27553244', '1387927301', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927274', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927272', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927269', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927267', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927264', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927262', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927257', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927256', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927253', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927251', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927249', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927247', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927244', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927242', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927232', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927230', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927227', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927222', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927220', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927211', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927209', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927204', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927200', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927195', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927191', None, None, None, None, None, '3866945') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 78 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', '27553244', '1387927301', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927274', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927272', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927269', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927267', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927264', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927262', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927257', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927256', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927253', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927251', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927249', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927247', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927244', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927242', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927232', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927230', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927227', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927222', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927220', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927211', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927209', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927204', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927200', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927195', '0.0', None, None, None, None, '3866945'), ('4302', '27553244', '1387927191', '0.0', None, None, None, None, '3866945')] time used for this insertion : 0.03875374794006348 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.21352815628051758 time spend to save output : 0.03947806358337402 total time spend for step 2 : 0.2530062198638916 step3:velours_tree Tue Oct 7 10:37:01 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 : {27553244: [{'Carton_brun': 27553260, 'autre_refus': 27553261, 'cartonnette': 27553262, 'mal_croppe': 27553263, 'kraft': 27553264, 'papier': 27553265, 'plastique': 27553266, 'Carton_gris': 27553267, 'flou': 27553268, 'metal': 27553269, 'Teint_Dans_La_Masse': 27553270, 'environnement': 27553271}]} input_args_next_step : {27553244: ()} output_args : {27553244: [{'Carton_brun': 27553260, 'autre_refus': 27553261, 'cartonnette': 27553262, 'mal_croppe': 27553263, 'kraft': 27553264, 'papier': 27553265, 'plastique': 27553266, 'Carton_gris': 27553267, 'flou': 27553268, 'metal': 27553269, 'Teint_Dans_La_Masse': 27553270, 'environnement': 27553271}]} args : 27553244 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 27553260, 'autre_refus': 27553261, 'cartonnette': 27553262, 'mal_croppe': 27553263, 'kraft': 27553264, 'papier': 27553265, 'plastique': 27553266, 'Carton_gris': 27553267, 'flou': 27553268, 'metal': 27553269, 'Teint_Dans_La_Masse': 27553270, 'environnement': 27553271},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27553244) 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([27553244]) 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.4202580451965332 time spend to save output : 7.414817810058594e-05 total time spend for step 3 : 0.4203321933746338 step4:send_mail_cod Tue Oct 7 10:37:01 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 : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} input_args_next_step : {1387927301: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927301 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927274 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927272 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927269 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927267 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927264 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927262 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927257 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927256 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927253 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927251 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927249 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927247 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927244 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927242 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927232 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927230 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927227 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927222 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927220 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927211 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927209 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927204 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927200 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927195 depend.output_id : 0 input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ()} output_args : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',)} args : 1387927191 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 : {27553244: [{'Carton_brun': 27553260, 'autre_refus': 27553261, 'cartonnette': 27553262, 'mal_croppe': 27553263, 'kraft': 27553264, 'papier': 27553265, 'plastique': 27553266, 'Carton_gris': 27553267, 'flou': 27553268, 'metal': 27553269, 'Teint_Dans_La_Masse': 27553270, 'environnement': 27553271}]} input_args_next_step : {1387927301: ('0.0',), 1387927274: ('0.0',), 1387927272: ('0.0',), 1387927269: ('0.0',), 1387927267: ('0.0',), 1387927264: ('0.0',), 1387927262: ('0.0',), 1387927257: ('0.0',), 1387927256: ('0.0',), 1387927253: ('0.0',), 1387927251: ('0.0',), 1387927249: ('0.0',), 1387927247: ('0.0',), 1387927244: ('0.0',), 1387927242: ('0.0',), 1387927232: ('0.0',), 1387927230: ('0.0',), 1387927227: ('0.0',), 1387927222: ('0.0',), 1387927220: ('0.0',), 1387927211: ('0.0',), 1387927209: ('0.0',), 1387927204: ('0.0',), 1387927200: ('0.0',), 1387927195: ('0.0',), 1387927191: ('0.0',), 27553244: ()} output_args : {27553244: [{'Carton_brun': 27553260, 'autre_refus': 27553261, 'cartonnette': 27553262, 'mal_croppe': 27553263, 'kraft': 27553264, 'papier': 27553265, 'plastique': 27553266, 'Carton_gris': 27553267, 'flou': 27553268, 'metal': 27553269, 'Teint_Dans_La_Masse': 27553270, 'environnement': 27553271}]} args : 27553244 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 :27, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27553244) 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_view ph WHERE photo_id IN (1387927301,1387927274,1387927272,1387927269,1387927267,1387927264,1387927262,1387927257,1387927256,1387927253,1387927251,1387927249,1387927247,1387927244,1387927242,1387927232,1387927230,1387927227,1387927222,1387927220,1387927211,1387927209,1387927204,1387927200,1387927195,1387927191) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1387927191 begin to download photo : 1387927220 begin to download photo : 1387927244 begin to download photo : 1387927257 begin to download photo : 1387927274 download finish for photo 1387927257 begin to download photo : 1387927262 download finish for photo 1387927244 begin to download photo : 1387927247 download finish for photo 1387927274 begin to download photo : 1387927301 download finish for photo 1387927220 begin to download photo : 1387927222 download finish for photo 1387927191 begin to download photo : 1387927195 download finish for photo 1387927247 begin to download photo : 1387927249 download finish for photo 1387927301 download finish for photo 1387927262 begin to download photo : 1387927264 download finish for photo 1387927195 begin to download photo : 1387927200 download finish for photo 1387927222 begin to download photo : 1387927227 download finish for photo 1387927249 begin to download photo : 1387927251 download finish for photo 1387927200 begin to download photo : 1387927204 download finish for photo 1387927264 begin to download photo : 1387927267 download finish for photo 1387927227 begin to download photo : 1387927230 download finish for photo 1387927251 begin to download photo : 1387927253 download finish for photo 1387927267 begin to download photo : 1387927269 download finish for photo 1387927230 begin to download photo : 1387927232 download finish for photo 1387927204 begin to download photo : 1387927209 download finish for photo 1387927253 begin to download photo : 1387927256 download finish for photo 1387927269 begin to download photo : 1387927272 download finish for photo 1387927232 begin to download photo : 1387927242 download finish for photo 1387927209 begin to download photo : 1387927211 download finish for photo 1387927256 download finish for photo 1387927272 download finish for photo 1387927211 download finish for photo 1387927242 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette275532611759826222/ imagette275532621759826222/ imagette275532631759826222/ imagette275532641759826222/ imagette275532661759826222/ imagette275532681759826222/ imagette275532691759826222/ imagette275532601759826222/ imagette275532671759826222/ imagette275532701759826222/ length of list_filenames : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P27553244_07-10-2025_10_37_02.pdf 27553261 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553261 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette275532611759826222 27553262 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553262 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette275532621759826222 27553263 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553263 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette275532631759826222 27553264 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553264 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette275532641759826222 27553266 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553266 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette275532661759826222 27553268 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553268 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette275532681759826222 27553269 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553269 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette275532691759826222 27553260 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553260 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette275532601759826222 27553267 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553267 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette275532671759826222 27553270 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553270 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette275532701759826222 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27553244 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27553273,27553274,27553275,27553276,27553278,27553279,27553280,27553281,27553282,27553283,27553284,27553285?tags=Carton_brun,autre_refus,cartonnette,mal_croppe,kraft,papier,plastique,Carton_gris,flou,metal,Teint_Dans_La_Masse,environnement your option no_mail is active, we will not send the real mail to your client args[1387927301] : ('0.0',) no score found for photo 1387927301 We are sending mail with results at report@fotonower.com args[1387927274] : ('0.0',) no score found for photo 1387927274 We are sending mail with results at report@fotonower.com args[1387927272] : ('0.0',) no score found for photo 1387927272 We are sending mail with results at report@fotonower.com args[1387927269] : ('0.0',) no score found for photo 1387927269 We are sending mail with results at report@fotonower.com args[1387927267] : ('0.0',) no score found for photo 1387927267 We are sending mail with results at report@fotonower.com args[1387927264] : ('0.0',) no score found for photo 1387927264 We are sending mail with results at report@fotonower.com args[1387927262] : ('0.0',) no score found for photo 1387927262 We are sending mail with results at report@fotonower.com args[1387927257] : ('0.0',) no score found for photo 1387927257 We are sending mail with results at report@fotonower.com args[1387927256] : ('0.0',) no score found for photo 1387927256 We are sending mail with results at report@fotonower.com args[1387927253] : ('0.0',) no score found for photo 1387927253 We are sending mail with results at report@fotonower.com args[1387927251] : ('0.0',) no score found for photo 1387927251 We are sending mail with results at report@fotonower.com args[1387927249] : ('0.0',) no score found for photo 1387927249 We are sending mail with results at report@fotonower.com args[1387927247] : ('0.0',) no score found for photo 1387927247 We are sending mail with results at report@fotonower.com args[1387927244] : ('0.0',) no score found for photo 1387927244 We are sending mail with results at report@fotonower.com args[1387927242] : ('0.0',) no score found for photo 1387927242 We are sending mail with results at report@fotonower.com args[1387927232] : ('0.0',) no score found for photo 1387927232 We are sending mail with results at report@fotonower.com args[1387927230] : ('0.0',) no score found for photo 1387927230 We are sending mail with results at report@fotonower.com args[1387927227] : ('0.0',) no score found for photo 1387927227 We are sending mail with results at report@fotonower.com args[1387927222] : ('0.0',) no score found for photo 1387927222 We are sending mail with results at report@fotonower.com args[1387927220] : ('0.0',) no score found for photo 1387927220 We are sending mail with results at report@fotonower.com args[1387927211] : ('0.0',) no score found for photo 1387927211 We are sending mail with results at report@fotonower.com args[1387927209] : ('0.0',) no score found for photo 1387927209 We are sending mail with results at report@fotonower.com args[1387927204] : ('0.0',) no score found for photo 1387927204 We are sending mail with results at report@fotonower.com args[1387927200] : ('0.0',) no score found for photo 1387927200 We are sending mail with results at report@fotonower.com args[1387927195] : ('0.0',) no score found for photo 1387927195 We are sending mail with results at report@fotonower.com args[1387927191] : ('0.0',) no score found for photo 1387927191 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553244 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_P27553244_07-10-2025_10_37_02.pdf results_Auto_P27553244_07-10-2025_10_37_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27553244_07-10-2025_10_37_02.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','27553244','results_Auto_P27553244_07-10-2025_10_37_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27553244_07-10-2025_10_37_02.pdf','pdf','','0.21','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27553244]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191] map_info['map_portfolio_photo'] : {27553244: [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191, 1387927172, 1387927169, 1387927167, 1387927157, 1387927155, 1387927152, 1387927149, 1387927142, 1387927108, 1387926859, 1387926857, 1387926855, 1387926744, 1387926702, 1387926653, 1387926607, 1387926570, 1387926527, 1387926254, 1387926251, 1387926249, 1387926247, 1387926228, 1387926226, 1387926225, 1387926218, 1387926215, 1387926210, 1387926204, 1387926200, 1387926199, 1387926190, 1387926188, 1387926184, 1387926170, 1387926167, 1387926162, 1387926159, 1387926154, 1387926149, 1387926146, 1387926144, 1387926138, 1387926134, 1387926130, 1387926128, 1387926045, 1387925997, 1387925952, 1387925940, 1387925937]} final : False mtd_id 4302 list_pids : [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191] 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, '3866945') ('4302', '27553244', '1387927301', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927274', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927272', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927269', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927267', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927264', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927262', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927257', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927256', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927253', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927251', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927249', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927247', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927244', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927242', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927232', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927230', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927227', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927222', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927220', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927211', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927209', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927204', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927200', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927195', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927191', None, None, None, None, None, '3866945') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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', '27553244', '1387927301', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927274', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927272', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927269', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927267', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927264', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927262', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927257', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927256', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927253', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927251', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927249', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927247', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927244', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927242', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927232', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927230', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927227', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927222', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927220', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927211', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927209', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927204', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927200', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927195', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927191', None, None, None, None, None, '3866945')] time used for this insertion : 0.03889107704162598 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7745728492736816 time spend to save output : 0.039275169372558594 total time spend for step 4 : 3.8138480186462402 step5:split_time_score Tue Oct 7 10:37:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27553244'] 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 : [('27553244',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27553244) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1387927274: {'path': 'temp/1759826221_2203670_1387927274_fe42d3108cde3fb45a1cee544d63ace9.jpg', 'extension': 'jpg'}, 1387927301: {'path': 'temp/1759826221_2203670_1387927301_8c8af836279e3dc36961653b677de0d9.jpg', 'extension': 'jpg'}, 1387927244: {'path': 'temp/1759826221_2203670_1387927244_aad50ed87e8c39ffc15d727b5b31980d.jpg', 'extension': 'jpg'}, 1387927247: {'path': 'temp/1759826221_2203670_1387927247_210e3a16e6e946b8a12f763a091c0ba4.jpg', 'extension': 'jpg'}, 1387927249: {'path': 'temp/1759826221_2203670_1387927249_a8ff33c90f2d42701a6af51b4c56d3a7.jpg', 'extension': 'jpg'}, 1387927251: {'path': 'temp/1759826221_2203670_1387927251_b960b118b7438c51f6d1dc20c8626c18.jpg', 'extension': 'jpg'}, 1387927253: {'path': 'temp/1759826221_2203670_1387927253_01b2603f1ed872c8cad60cf9c7205ca1.jpg', 'extension': 'jpg'}, 1387927256: {'path': 'temp/1759826221_2203670_1387927256_d87e35291d363c4d8d5a5ba2837e3041.jpg', 'extension': 'jpg'}, 1387927257: {'path': 'temp/1759826221_2203670_1387927257_885695ac6bfe384dff65f8db90362d5d.jpg', 'extension': 'jpg'}, 1387927262: {'path': 'temp/1759826221_2203670_1387927262_bd9e158d1ed37b167affdf739614a244.jpg', 'extension': 'jpg'}, 1387927264: {'path': 'temp/1759826221_2203670_1387927264_fcd528ced96ba6abb239c0ffef016b9d.jpg', 'extension': 'jpg'}, 1387927267: {'path': 'temp/1759826221_2203670_1387927267_3760d39081508ed98d1999d88504a3e8.jpg', 'extension': 'jpg'}, 1387927269: {'path': 'temp/1759826221_2203670_1387927269_6965dba78befad6fc038f87afd755144.jpg', 'extension': 'jpg'}, 1387927272: {'path': 'temp/1759826221_2203670_1387927272_b122e885e3e675965419968c413b949f.jpg', 'extension': 'jpg'}, 1387927191: {'path': 'temp/1759826221_2203670_1387927191_f9e6e71a384345c3ebc1d140f3014364.jpg', 'extension': 'jpg'}, 1387927195: {'path': 'temp/1759826221_2203670_1387927195_49060285110329ff124fc5ce0eb4f392.jpg', 'extension': 'jpg'}, 1387927200: {'path': 'temp/1759826221_2203670_1387927200_43be7da8e6268941e1a8e6c8cddaa6e9.jpg', 'extension': 'jpg'}, 1387927204: {'path': 'temp/1759826221_2203670_1387927204_5ee8e75a96b4bf55827099ce4d0f78b8.jpg', 'extension': 'jpg'}, 1387927209: {'path': 'temp/1759826221_2203670_1387927209_7c901bb0f8ae881d1396adcdb57ce3e5.jpg', 'extension': 'jpg'}, 1387927211: {'path': 'temp/1759826221_2203670_1387927211_2ad2a4efd480000ff0753e14de8bb877.jpg', 'extension': 'jpg'}, 1387927220: {'path': 'temp/1759826221_2203670_1387927220_ff4e6821b1ebcb43341b965bce1d80b9.jpg', 'extension': 'jpg'}, 1387927222: {'path': 'temp/1759826221_2203670_1387927222_b21f09f312d41d294739afb57ead9934.jpg', 'extension': 'jpg'}, 1387927227: {'path': 'temp/1759826221_2203670_1387927227_cdc00c5082067474e7b281635e464f3d.jpg', 'extension': 'jpg'}, 1387927230: {'path': 'temp/1759826221_2203670_1387927230_4a37456060d72a77d38e052677957bfd.jpg', 'extension': 'jpg'}, 1387927232: {'path': 'temp/1759826221_2203670_1387927232_78817ec17d31aa1671a5299f82789e8b.jpg', 'extension': 'jpg'}, 1387927242: {'path': 'temp/1759826221_2203670_1387927242_786f0e2388aa2448a817b0dd470aef9f.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 = 27553244; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27553244 group by h (('10', 77),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27553244 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 (27553244) 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 (27553244) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07102025 27553244 Nombre de photos uploadées : 77 / 23040 (0%) 07102025 27553244 Nombre de photos taguées (types de déchets): 0 / 77 (0%) 07102025 27553244 Nombre de photos taguées (volume) : 0 / 77 (0%) [{'photo_id': 1387926045, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/7/544a0aa052082a1febbc4199205022ef.jpg', 'username': None, 'uploaded_at': 1759824967, 'text': 'image_07102025_10_15_04_10138.jpg'}, {'photo_id': 1387925997, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/7/72305a88b611f2ae215aad536d368c49.jpg', 'username': None, 'uploaded_at': 1759824967, 'text': 'image_07102025_10_15_14_10140.jpg'}, {'photo_id': 1387925952, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/7/cd8dd084cdf5c1be865e63590636d654.jpg', 'username': None, 'uploaded_at': 1759824967, 'text': 'image_07102025_10_15_24_10136.jpg'}, {'photo_id': 1387925940, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/7/443d9367627bded920c0c63b6b6327e6.jpg', 'username': None, 'uploaded_at': 1759824967, 'text': 'image_07102025_10_15_35_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003971576690673828 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 27553244, '2025-10-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2401171,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6403584480285645 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= 2401171 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2401171, 'dashboard_run_id': 2410131, 'mtr_portfolio_id': 27552388, 'dashboard_result_id': 16072168, '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_P27552388_07-10-2025_10_11_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27552408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27552409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27552410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27552411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27552412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27552413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27552414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27552415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27552417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27552418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27552419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27552420, 'pht': 3726}}"}, {'dashboat_entry_day': 2401171, 'dashboard_run_id': 2410131, 'mtr_portfolio_id': 27552797, 'dashboard_result_id': 16072169, '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_P27552797_07-10-2025_10_23_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27552934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27552935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27552936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27552937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27552938, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27552939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27552940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27552941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27552942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27552943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27552944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27552945, 'pht': 3726}}"}, {'dashboat_entry_day': 2401171, 'dashboard_run_id': 2410131, 'mtr_portfolio_id': 27553244, 'dashboard_result_id': 16072170, '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_P27553244_07-10-2025_10_27_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27553260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27553261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27553262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27553263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27553264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27553265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27553266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27553267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27553268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27553269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27553270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27553271, 'pht': 3726}}"}, {'dashboat_entry_day': 2401171, 'dashboard_run_id': 2410131, 'mtr_portfolio_id': 27553588, 'dashboard_result_id': 16072171, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 27552388 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 27552388 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27552388 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27552388 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27552388 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27552388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27552388_07-10-2025_10_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27552388 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_P27552388_07-10-2025_10_11_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27552408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27552409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27552410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27552411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27552412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27552413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27552414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27552415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27552417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27552418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27552419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27552420, 'pht': 3726}}" where mtr_portfolio_id = 27552388 and dashboard_run_id = 2410131 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 = 27552797 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 27552797 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27552797 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27552797 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27552797 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27552797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27552797_07-10-2025_10_23_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27552797 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_P27552797_07-10-2025_10_23_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27552934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27552935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27552936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27552937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27552938, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27552939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27552940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27552941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27552942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27552943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27552944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27552945, 'pht': 3726}}" where mtr_portfolio_id = 27552797 and dashboard_run_id = 2410131 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 = 27553244 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 27553244 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27553244 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27553244 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27553244 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27553244 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27553244_07-10-2025_10_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27553244 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_P27553244_07-10-2025_10_37_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27553260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27553261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27553262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27553263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27553264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27553265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27553266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27553267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27553268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27553269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27553270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27553271, 'pht': 3726}}" where mtr_portfolio_id = 27553244 and dashboard_run_id = 2410131 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 = 27553588 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 27553588 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27553588 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%27553588%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27553588 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 27553588 and dashboard_run_id = 2410131 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27552388,27552797,27553244,27553588) result : ((1387921760,), (1387921762,), (1387921764,), (1387921776,), (1387921778,), (1387921781,), (1387921784,), (1387921789,), (1387921798,), (1387921799,), (1387921800,), (1387921806,), (1387921996,), (1387922037,), (1387922080,), (1387922125,), (1387922577,), (1387922614,), (1387922617,), (1387922620,), (1387922624,), (1387922796,), (1387922809,), (1387922810,), (1387922836,), (1387922839,), (1387922853,), (1387922875,), (1387922876,), (1387922887,), (1387922889,), (1387922890,), (1387922892,), (1387922894,), (1387922901,), (1387922903,), (1387922904,), (1387922907,), (1387922910,), (1387922915,), (1387922922,), (1387922924,), (1387922927,), (1387922929,), (1387922935,), (1387922936,), (1387922937,), (1387922940,), (1387922944,), (1387922952,), (1387922954,), (1387922955,), (1387922957,), (1387922959,), (1387922962,), (1387922985,), (1387923028,), (1387923069,), (1387923115,), (1387923162,), (1387923667,), (1387923714,), (1387923760,), (1387923951,), (1387923940,), (1387923950,), (1387923966,), (1387923968,), (1387923972,), (1387923977,), (1387923982,), (1387924057,), (1387924079,), (1387924091,), (1387924106,), (1387924109,), (1387924112,), (1387924145,), (1387924188,), (1387924410,), (1387924413,), (1387924485,), (1387924486,), (1387924488,), (1387924502,), (1387924503,), (1387924504,), (1387924507,), (1387924511,), (1387924525,), (1387924548,), (1387924594,), (1387924639,), (1387924915,), (1387924976,), (1387925021,), (1387925477,), (1387925520,), (1387925564,), (1387925674,), (1387925679,), (1387925683,), (1387925703,), (1387925745,), (1387925788,), (1387926053,), (1387925937,), (1387925940,), (1387925952,), (1387925997,), (1387926045,), (1387926128,), (1387926130,), (1387926134,), (1387926138,), (1387926144,), (1387926146,), (1387926149,), (1387926154,), (1387926159,), (1387926162,), (1387926167,), (1387926170,), (1387926184,), (1387926188,), (1387926190,), (1387926199,), (1387926200,), (1387926204,), (1387926210,), (1387926215,), (1387926218,), (1387926225,), (1387926226,), (1387926228,), (1387926247,), (1387926249,), (1387926251,), (1387926254,), (1387926527,), (1387926570,), (1387926607,), (1387926653,), (1387926702,), (1387926744,), (1387926855,), (1387926857,), (1387926859,), (1387927108,), (1387927142,), (1387927149,), (1387927152,), (1387927155,), (1387927157,), (1387927167,), (1387927169,), (1387927172,), (1387927191,), (1387927195,), (1387927200,), (1387927204,), (1387927209,), (1387927211,), (1387927220,), (1387927222,), (1387927227,), (1387927230,), (1387927232,), (1387927242,), (1387927244,), (1387927247,), (1387927249,), (1387927251,), (1387927253,), (1387927256,), (1387927257,), (1387927262,), (1387927264,), (1387927267,), (1387927269,), (1387927272,), (1387927274,), (1387927301,), (1387927285,), (1387927297,), (1387927299,), (1387927315,), (1387927317,), (1387927318,), (1387927322,), (1387927333,), (1387927377,), (1387927707,), (1387927752,), (1387927796,), (1387927944,), (1387927946,), (1387927990,), (1387928038,), (1387928088,), (1387928135,), (1387928221,), (1387928242,), (1387928248,), (1387928251,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07102025': {'nb_upload': 77, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27553244]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191] map_info['map_portfolio_photo'] : {27553244: [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191, 1387927172, 1387927169, 1387927167, 1387927157, 1387927155, 1387927152, 1387927149, 1387927142, 1387927108, 1387926859, 1387926857, 1387926855, 1387926744, 1387926702, 1387926653, 1387926607, 1387926570, 1387926527, 1387926254, 1387926251, 1387926249, 1387926247, 1387926228, 1387926226, 1387926225, 1387926218, 1387926215, 1387926210, 1387926204, 1387926200, 1387926199, 1387926190, 1387926188, 1387926184, 1387926170, 1387926167, 1387926162, 1387926159, 1387926154, 1387926149, 1387926146, 1387926144, 1387926138, 1387926134, 1387926130, 1387926128, 1387926045, 1387925997, 1387925952, 1387925940, 1387925937]} final : True mtd_id 4302 list_pids : [1387927301, 1387927274, 1387927272, 1387927269, 1387927267, 1387927264, 1387927262, 1387927257, 1387927256, 1387927253, 1387927251, 1387927249, 1387927247, 1387927244, 1387927242, 1387927232, 1387927230, 1387927227, 1387927222, 1387927220, 1387927211, 1387927209, 1387927204, 1387927200, 1387927195, 1387927191] Looping around the photos to save general results len do output : 1 /27553244Didn'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, '3866945') ('4302', '27553244', '1387927301', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927274', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927272', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927269', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927267', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927264', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927262', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927257', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927256', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927253', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927251', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927249', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927247', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927244', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927242', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927232', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927230', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927227', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927222', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927220', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927211', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927209', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927204', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927200', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927195', None, None, None, None, None, '3866945') ('4302', None, None, None, None, None, None, None, '3866945') ('4302', '27553244', '1387927191', None, None, None, None, None, '3866945') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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, '27553244', 'None', None, None, None, None, '3866945'), ('4302', '27553244', '1387927301', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927274', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927272', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927269', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927267', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927264', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927262', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927257', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927256', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927253', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927251', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927249', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927247', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927244', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927242', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927232', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927230', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927227', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927222', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927220', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927211', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927209', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927204', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927200', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927195', None, None, None, None, None, '3866945'), ('4302', '27553244', '1387927191', None, None, None, None, None, '3866945')] time used for this insertion : 0.0386505126953125 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.014915704727173 time spend to save output : 0.039093971252441406 total time spend for step 5 : 2.0540096759796143 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 (3866945) 2.63user 2.67system 0:12.00elapsed 44%CPU (0avgtext+0avgdata 164516maxresident)k 43368inputs+15200outputs (224major+76783minor)pagefaults 0swaps