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 : 3528674 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 (2876277) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2876277) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057413 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2876277'] with mtr_portfolio_ids : ['23057413'] and first list_photo_ids : [] new path : /proc/3528674/ Name: python3 Umask: 0002 State: R (running) Tgid: 3528674 Ngid: 0 Pid: 3528674 PPid: 3528673 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3528674 NSpid: 3528674 NSpgid: 3525186 NSsid: 3525186 VmPeak: 1107748 kB VmSize: 1107748 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98052 kB VmRSS: 98052 kB RssAnon: 60468 kB RssFile: 37584 kB RssShmem: 0 kB VmData: 866496 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 60 nonvoluntary_ctxt_switches: 105 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3528674', 'Ngid': '0', 'Pid': '3528674', 'PPid': '3528673', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3528674', 'NSpid': '3528674', 'NSpgid': '3525186', 'NSsid': '3525186', 'VmPeak': '1107748 kB', 'VmSize': '1107748 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98052 kB', 'VmRSS': '98052 kB', 'RssAnon': '60468 kB', 'RssFile': '37584 kB', 'RssShmem': '0 kB', 'VmData': '866496 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '60', 'nonvoluntary_ctxt_switches': '105'} ('datou_batch_current', '3528674', '1107748', '0', '1107748', '866496', '98052', b'', 'marlene', '2876277') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (23057413) 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 (2876277 ) ) 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 (23057413) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1358896961, 'portfolio_id': 23057413}, {'photo_id': 1358896935, 'portfolio_id': 23057413}, {'photo_id': 1358896931, 'portfolio_id': 23057413}, {'photo_id': 1358896927, 'portfolio_id': 23057413}, {'photo_id': 1358896922, 'portfolio_id': 23057413}, {'photo_id': 1358896917, 'portfolio_id': 23057413}, {'photo_id': 1358896271, 'portfolio_id': 23057413}, {'photo_id': 1358896201, 'portfolio_id': 23057413}, {'photo_id': 1358896194, 'portfolio_id': 23057413}, {'photo_id': 1358896191, 'portfolio_id': 23057413}, {'photo_id': 1358896187, 'portfolio_id': 23057413}, {'photo_id': 1358896184, 'portfolio_id': 23057413}, {'photo_id': 1358896165, 'portfolio_id': 23057413}, {'photo_id': 1358896162, 'portfolio_id': 23057413}, {'photo_id': 1358896159, 'portfolio_id': 23057413}, {'photo_id': 1358896155, 'portfolio_id': 23057413}, {'photo_id': 1358896151, 'portfolio_id': 23057413}, {'photo_id': 1358896132, 'portfolio_id': 23057413}, {'photo_id': 1358896129, 'portfolio_id': 23057413}, {'photo_id': 1358896127, 'portfolio_id': 23057413}, {'photo_id': 1358896043, 'portfolio_id': 23057413}, {'photo_id': 1358895930, 'portfolio_id': 23057413}, {'photo_id': 1358895907, 'portfolio_id': 23057413}, {'photo_id': 1358895878, 'portfolio_id': 23057413}, {'photo_id': 1358895851, 'portfolio_id': 23057413}, {'photo_id': 1358895763, 'portfolio_id': 23057413}, {'photo_id': 1358895748, 'portfolio_id': 23057413}, {'photo_id': 1358895712, 'portfolio_id': 23057413}, {'photo_id': 1358895678, 'portfolio_id': 23057413}, {'photo_id': 1358895579, 'portfolio_id': 23057413}, {'photo_id': 1358895575, 'portfolio_id': 23057413}, {'photo_id': 1358895571, 'portfolio_id': 23057413}, {'photo_id': 1358895544, 'portfolio_id': 23057413}, {'photo_id': 1358895199, 'portfolio_id': 23057413}, {'photo_id': 1358895169, 'portfolio_id': 23057413}, {'photo_id': 1358895140, 'portfolio_id': 23057413}, {'photo_id': 1358894863, 'portfolio_id': 23057413}, {'photo_id': 1358894828, 'portfolio_id': 23057413}, {'photo_id': 1358894775, 'portfolio_id': 23057413}, {'photo_id': 1358894724, 'portfolio_id': 23057413}, {'photo_id': 1358894673, 'portfolio_id': 23057413}, {'photo_id': 1358894415, 'portfolio_id': 23057413}, {'photo_id': 1358894411, 'portfolio_id': 23057413}, {'photo_id': 1358894402, 'portfolio_id': 23057413}, {'photo_id': 1358894392, 'portfolio_id': 23057413}, {'photo_id': 1358894389, 'portfolio_id': 23057413}, {'photo_id': 1358894361, 'portfolio_id': 23057413}, {'photo_id': 1358894358, 'portfolio_id': 23057413}, {'photo_id': 1358894355, 'portfolio_id': 23057413}, {'photo_id': 1358894351, 'portfolio_id': 23057413}, {'photo_id': 1358894343, 'portfolio_id': 23057413}, {'photo_id': 1358893987, 'portfolio_id': 23057413}, {'photo_id': 1358893984, 'portfolio_id': 23057413}, {'photo_id': 1358893975, 'portfolio_id': 23057413}, {'photo_id': 1358893947, 'portfolio_id': 23057413}, {'photo_id': 1358893942, 'portfolio_id': 23057413}, {'photo_id': 1358893939, 'portfolio_id': 23057413}, {'photo_id': 1358893935, 'portfolio_id': 23057413}, {'photo_id': 1358893932, 'portfolio_id': 23057413}, {'photo_id': 1358893903, 'portfolio_id': 23057413}, {'photo_id': 1358893900, 'portfolio_id': 23057413}, {'photo_id': 1358893896, 'portfolio_id': 23057413}, {'photo_id': 1358893891, 'portfolio_id': 23057413}, {'photo_id': 1358893886, 'portfolio_id': 23057413}] map_portfolio_id_photo_id: {23057413: [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127, 1358896043, 1358895930, 1358895907, 1358895878, 1358895851, 1358895763, 1358895748, 1358895712, 1358895678, 1358895579, 1358895575, 1358895571, 1358895544, 1358895199, 1358895169, 1358895140, 1358894863, 1358894828, 1358894775, 1358894724, 1358894673, 1358894415, 1358894411, 1358894402, 1358894392, 1358894389, 1358894361, 1358894358, 1358894355, 1358894351, 1358894343, 1358893987, 1358893984, 1358893975, 1358893947, 1358893942, 1358893939, 1358893935, 1358893932, 1358893903, 1358893900, 1358893896, 1358893891, 1358893886]} ##### 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.01644158363342285 #### 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 Fri May 16 11:00:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23057413) 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 : 23057413 get user id for portfolio 23057413 get sub ptf for main ptf 23057413, type 3726 and hashtags ['autre_refus', 'metal', 'Carton_brun', 'Teint_Dans_La_Masse', 'kraft', 'plastique', 'environnement', 'papier', 'mal_croppe', 'cartonnette', 'flou', 'Carton_gris'] 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`=23057413 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','Carton_brun','Teint_Dans_La_Masse','kraft','plastique','environnement','papier','mal_croppe','cartonnette','flou','Carton_gris')) 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`=23057413 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','Carton_brun','Teint_Dans_La_Masse','kraft','plastique','environnement','papier','mal_croppe','cartonnette','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 23057413, 'sub_port_id': 23057451, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388984, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'Carton_brun': {'main_port_id': 23057413, 'sub_port_id': 23057452, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388985, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'Carton_gris': {'main_port_id': 23057413, 'sub_port_id': 23057453, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388986, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'metal': {'main_port_id': 23057413, 'sub_port_id': 23057454, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388987, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'mal_croppe': {'main_port_id': 23057413, 'sub_port_id': 23057455, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388988, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'environnement': {'main_port_id': 23057413, 'sub_port_id': 23057456, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388989, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'cartonnette': {'main_port_id': 23057413, 'sub_port_id': 23057457, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388990, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'papier': {'main_port_id': 23057413, 'sub_port_id': 23057458, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388991, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'kraft': {'main_port_id': 23057413, 'sub_port_id': 23057459, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388992, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 23057413, 'sub_port_id': 23057460, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388993, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'plastique': {'main_port_id': 23057413, 'sub_port_id': 23057461, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388994, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}, 'flou': {'main_port_id': 23057413, 'sub_port_id': 23057462, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388995, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23057451 , 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=23057413 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 (23057451) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057452 , 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=23057413 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 (23057452) result : ((1358896764,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057453 , 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=23057413 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 (23057453) result : ((1358896744,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057454 , 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=23057413 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 (23057454) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057455 , 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=23057413 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 (23057455) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057456 , 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=23057413 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 (23057456) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057457 , 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=23057413 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 (23057457) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057458 , 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=23057413 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 (23057458) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057459 , 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=23057413 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 (23057459) result : ((1358896783,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057460 , 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=23057413 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 (23057460) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057461 , 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=23057413 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 (23057461) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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 23057462 , 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=23057413 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 (23057462) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23057413) result : ((1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) 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 (1358893900) 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`=23057413 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','Carton_brun','Teint_Dans_La_Masse','kraft','plastique','environnement','papier','mal_croppe','cartonnette','flou','Carton_gris')) 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`=23057413 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','Carton_brun','Teint_Dans_La_Masse','kraft','plastique','environnement','papier','mal_croppe','cartonnette','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 23057413, 'sub_port_id': 23057465, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388996, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'Carton_brun': {'main_port_id': 23057413, 'sub_port_id': 23057466, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388997, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'Carton_gris': {'main_port_id': 23057413, 'sub_port_id': 23057467, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388998, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'metal': {'main_port_id': 23057413, 'sub_port_id': 23057468, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15388999, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'mal_croppe': {'main_port_id': 23057413, 'sub_port_id': 23057469, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15389000, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'environnement': {'main_port_id': 23057413, 'sub_port_id': 23057470, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15389001, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'cartonnette': {'main_port_id': 23057413, 'sub_port_id': 23057471, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15389002, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'papier': {'main_port_id': 23057413, 'sub_port_id': 23057472, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15389003, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'kraft': {'main_port_id': 23057413, 'sub_port_id': 23057473, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15389004, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 23057413, 'sub_port_id': 23057474, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15389005, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'plastique': {'main_port_id': 23057413, 'sub_port_id': 23057475, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15389006, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}, 'flou': {'main_port_id': 23057413, 'sub_port_id': 23057476, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15389007, 'last_updated_at': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 16, 10, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 16, 10, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057465,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057451 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057466,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057452 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057467,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057453 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057468,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057454 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057455 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057456 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23057476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23057462 lien utilise dans velours : https://www.fotonower.com/velours/23057465,23057466,23057467,23057468,23057469,23057470,23057471,23057472,23057473,23057474,23057475,23057476?tags=autre_refus,Carton_brun,Carton_gris,metal,mal_croppe,environnement,cartonnette,papier,kraft,Teint_Dans_La_Masse,plastique,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23057413]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127] map_info['map_portfolio_photo'] : {23057413: [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127, 1358896043, 1358895930, 1358895907, 1358895878, 1358895851, 1358895763, 1358895748, 1358895712, 1358895678, 1358895579, 1358895575, 1358895571, 1358895544, 1358895199, 1358895169, 1358895140, 1358894863, 1358894828, 1358894775, 1358894724, 1358894673, 1358894415, 1358894411, 1358894402, 1358894392, 1358894389, 1358894361, 1358894358, 1358894355, 1358894351, 1358894343, 1358893987, 1358893984, 1358893975, 1358893947, 1358893942, 1358893939, 1358893935, 1358893932, 1358893903, 1358893900, 1358893896, 1358893891, 1358893886]} final : False mtd_id 4302 list_pids : [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127] Looping around the photos to save general results len do output : 1 /23057413. 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, '2876277') ('4302', '23057413', '1358896961', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896935', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896931', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896927', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896922', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896917', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896271', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896201', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896194', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896191', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896187', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896184', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896165', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896162', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896159', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896155', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896151', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896132', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896129', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896127', None, None, None, None, None, '2876277') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '23057413', "{'autre_refus': 23057451, 'Carton_brun': 23057452, 'Carton_gris': 23057453, 'metal': 23057454, 'mal_croppe': 23057455, 'environnement': 23057456, 'cartonnette': 23057457, 'papier': 23057458, 'kraft': 23057459, 'Teint_Dans_La_Masse': 23057460, 'plastique': 23057461, 'flou': 23057462}", None, None, None, None, '2876277'), ('4302', '23057413', '1358896961', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896935', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896931', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896927', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896922', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896917', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896271', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896201', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896194', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896191', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896187', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896184', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896165', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896162', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896159', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896155', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896151', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896132', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896129', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896127', None, None, None, None, None, '2876277')] time used for this insertion : 0.08098554611206055 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4883096218109131 time spend to save output : 0.08127021789550781 total time spend for step 1 : 0.5695798397064209 step2:final Fri May 16 11:00:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (23057413) 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 23057413 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1358893903,1358893900,1358893896,1358893891,1358893886,1358893947,1358893942,1358893939,1358893935,1358893932,1358893987,1358893984,1358893975,1358894361,1358894358,1358894355,1358894351,1358894343,1358894415,1358894411,1358894402,1358894392,1358894389,1358894863,1358894828,1358894775,1358894724,1358894673,1358895199,1358895169,1358895140,1358895579,1358895575,1358895571,1358895544,1358895763,1358895748,1358895712,1358895678,1358895930,1358895907,1358895878,1358895851,1358896132,1358896129,1358896127,1358896165,1358896043,1358896162,1358896159,1358896155,1358896151,1358896271,1358896201,1358896194,1358896191,1358896187,1358896184,1358896961,1358896935,1358896931,1358896927,1358896922,1358896917); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23057413]) Inside saveOutput : final : False verbose : True original output for save of step final : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} new output for save of step final : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127] map_info['map_portfolio_photo'] : {23057413: [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127, 1358896043, 1358895930, 1358895907, 1358895878, 1358895851, 1358895763, 1358895748, 1358895712, 1358895678, 1358895579, 1358895575, 1358895571, 1358895544, 1358895199, 1358895169, 1358895140, 1358894863, 1358894828, 1358894775, 1358894724, 1358894673, 1358894415, 1358894411, 1358894402, 1358894392, 1358894389, 1358894361, 1358894358, 1358894355, 1358894351, 1358894343, 1358893987, 1358893984, 1358893975, 1358893947, 1358893942, 1358893939, 1358893935, 1358893932, 1358893903, 1358893900, 1358893896, 1358893891, 1358893886]} final : False mtd_id 4302 list_pids : [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127] Looping around the photos to save general results len do output : 20 /1358896961.Didn't retrieve data . /1358896935.Didn't retrieve data . /1358896931.Didn't retrieve data . /1358896927.Didn't retrieve data . /1358896922.Didn't retrieve data . /1358896917.Didn't retrieve data . /1358896271.Didn't retrieve data . /1358896201.Didn't retrieve data . /1358896194.Didn't retrieve data . /1358896191.Didn't retrieve data . /1358896187.Didn't retrieve data . /1358896184.Didn't retrieve data . /1358896165.Didn't retrieve data . /1358896162.Didn't retrieve data . /1358896159.Didn't retrieve data . /1358896155.Didn't retrieve data . /1358896151.Didn't retrieve data . /1358896132.Didn't retrieve data . /1358896129.Didn't retrieve data . /1358896127.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, '2876277') ('4302', '23057413', '1358896961', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896935', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896931', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896927', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896922', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896917', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896271', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896201', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896194', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896191', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896187', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896184', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896165', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896162', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896159', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896155', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896151', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896132', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896129', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896127', None, None, None, None, None, '2876277') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 60 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', '23057413', '1358896961', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896935', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896931', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896927', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896922', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896917', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896271', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896201', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896194', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896191', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896187', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896184', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896165', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896162', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896159', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896155', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896151', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896132', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896129', '0.06621200508956282', None, None, None, None, '2876277'), ('4302', '23057413', '1358896127', '0.06621200508956282', None, None, None, None, '2876277')] time used for this insertion : 0.11916971206665039 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.12065505981445312 time spend to save output : 0.1199193000793457 total time spend for step 2 : 0.24057435989379883 step3:velours_tree Fri May 16 11:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23057413: [{'autre_refus': 23057451, 'Carton_brun': 23057452, 'Carton_gris': 23057453, 'metal': 23057454, 'mal_croppe': 23057455, 'environnement': 23057456, 'cartonnette': 23057457, 'papier': 23057458, 'kraft': 23057459, 'Teint_Dans_La_Masse': 23057460, 'plastique': 23057461, 'flou': 23057462}]} input_args_next_step : {23057413: ()} output_args : {23057413: [{'autre_refus': 23057451, 'Carton_brun': 23057452, 'Carton_gris': 23057453, 'metal': 23057454, 'mal_croppe': 23057455, 'environnement': 23057456, 'cartonnette': 23057457, 'papier': 23057458, 'kraft': 23057459, 'Teint_Dans_La_Masse': 23057460, 'plastique': 23057461, 'flou': 23057462}]} args : 23057413 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 : ({'autre_refus': 23057451, 'Carton_brun': 23057452, 'Carton_gris': 23057453, 'metal': 23057454, 'mal_croppe': 23057455, 'environnement': 23057456, 'cartonnette': 23057457, 'papier': 23057458, 'kraft': 23057459, 'Teint_Dans_La_Masse': 23057460, 'plastique': 23057461, 'flou': 23057462},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23057413) 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([23057413]) 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.316697359085083 time spend to save output : 4.3392181396484375e-05 total time spend for step 3 : 0.3167407512664795 step4:send_mail_cod Fri May 16 11:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} input_args_next_step : {1358896961: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896961 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896935 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896931 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896927 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896922 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896917 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896271 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896201 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896194 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896191 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896187 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896184 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896165 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896162 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896159 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896155 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896151 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896132 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896129 depend.output_id : 0 input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ()} output_args : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',)} args : 1358896127 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 : {23057413: [{'autre_refus': 23057451, 'Carton_brun': 23057452, 'Carton_gris': 23057453, 'metal': 23057454, 'mal_croppe': 23057455, 'environnement': 23057456, 'cartonnette': 23057457, 'papier': 23057458, 'kraft': 23057459, 'Teint_Dans_La_Masse': 23057460, 'plastique': 23057461, 'flou': 23057462}]} input_args_next_step : {1358896961: ('0.06621200508956282',), 1358896935: ('0.06621200508956282',), 1358896931: ('0.06621200508956282',), 1358896927: ('0.06621200508956282',), 1358896922: ('0.06621200508956282',), 1358896917: ('0.06621200508956282',), 1358896271: ('0.06621200508956282',), 1358896201: ('0.06621200508956282',), 1358896194: ('0.06621200508956282',), 1358896191: ('0.06621200508956282',), 1358896187: ('0.06621200508956282',), 1358896184: ('0.06621200508956282',), 1358896165: ('0.06621200508956282',), 1358896162: ('0.06621200508956282',), 1358896159: ('0.06621200508956282',), 1358896155: ('0.06621200508956282',), 1358896151: ('0.06621200508956282',), 1358896132: ('0.06621200508956282',), 1358896129: ('0.06621200508956282',), 1358896127: ('0.06621200508956282',), 23057413: ()} output_args : {23057413: [{'autre_refus': 23057451, 'Carton_brun': 23057452, 'Carton_gris': 23057453, 'metal': 23057454, 'mal_croppe': 23057455, 'environnement': 23057456, 'cartonnette': 23057457, 'papier': 23057458, 'kraft': 23057459, 'Teint_Dans_La_Masse': 23057460, 'plastique': 23057461, 'flou': 23057462}]} args : 23057413 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 :21, first value : ('0.06621200508956282',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23057413) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1358896961,1358896935,1358896931,1358896927,1358896922,1358896917,1358896271,1358896201,1358896194,1358896191,1358896187,1358896184,1358896165,1358896162,1358896159,1358896155,1358896151,1358896132,1358896129,1358896127) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1358896127 begin to download photo : 1358896159 begin to download photo : 1358896191 begin to download photo : 1358896922 download finish for photo 1358896159 begin to download photo : 1358896162 download finish for photo 1358896127 begin to download photo : 1358896129 download finish for photo 1358896922 begin to download photo : 1358896927 download finish for photo 1358896191 begin to download photo : 1358896194 download finish for photo 1358896162 begin to download photo : 1358896165 download finish for photo 1358896194 begin to download photo : 1358896201 download finish for photo 1358896927 begin to download photo : 1358896931 download finish for photo 1358896129 begin to download photo : 1358896132 download finish for photo 1358896165 begin to download photo : 1358896184 download finish for photo 1358896931 begin to download photo : 1358896935 download finish for photo 1358896201 begin to download photo : 1358896271 download finish for photo 1358896132 begin to download photo : 1358896151 download finish for photo 1358896184 begin to download photo : 1358896187 download finish for photo 1358896935 begin to download photo : 1358896961 download finish for photo 1358896151 begin to download photo : 1358896155 download finish for photo 1358896271 begin to download photo : 1358896917 download finish for photo 1358896187 download finish for photo 1358896155 download finish for photo 1358896961 download finish for photo 1358896917 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette230574511747386059/ imagette230574541747386059/ imagette230574551747386059/ imagette230574571747386059/ length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P23057413_16-05-2025_11_00_59.pdf 23057451 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057451 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230574511747386059 23057454 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057454 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230574541747386059 23057455 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057455 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230574551747386059 23057457 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230574571747386059 23057459 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057459 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358896783: '1747385906_451844_1358895140_5d74284f6f7d1152a76ee2a7ba186afc_rle_crop_3801369955_0.png'} change filename to text .imagette230574591747386059/ imagette230574591747386059/1747385906_451844_1358895140_5d74284f6f7d1152a76ee2a7ba186afc_rle_crop_3801369955_0.png.png imagette230574611747386059/ imagette230574621747386059/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/605a20dd4403e5aa2ff11252fea17646_96357672.png imagette230574591747386059 23057461 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230574611747386059 23057462 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230574621747386059 23057452 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057452 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358896764: '1747385906_451844_1358895140_5d74284f6f7d1152a76ee2a7ba186afc_rle_crop_3801369961_0.png'} change filename to text .imagette230574521747386059/ imagette230574521747386059/1747385906_451844_1358895140_5d74284f6f7d1152a76ee2a7ba186afc_rle_crop_3801369961_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/9cecd55e733ae5c6589c77196caa50b7_15113669.png imagette230574521747386059 23057453 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057453 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358896744: '1747385906_451844_1358895169_a7c79150da9b5fc17984a00d8b0204ac_rle_crop_3801369947_0.png'} change filename to text .imagette230574531747386059/ imagette230574531747386059/1747385906_451844_1358895169_a7c79150da9b5fc17984a00d8b0204ac_rle_crop_3801369947_0.png.png imagette230574601747386059/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/5cd99baf5b0e042cb26ffe5aa30844eb_35699658.png imagette230574531747386059 23057460 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057460 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette230574601747386059 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23057413 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23057465,23057466,23057467,23057468,23057469,23057470,23057471,23057472,23057473,23057474,23057475,23057476?tags=autre_refus,Carton_brun,Carton_gris,metal,mal_croppe,environnement,cartonnette,papier,kraft,Teint_Dans_La_Masse,plastique,flou your option no_mail is active, we will not send the real mail to your client args[1358896961] : ('0.06621200508956282',) no score found for photo 1358896961 We are sending mail with results at report@fotonower.com args[1358896935] : ('0.06621200508956282',) no score found for photo 1358896935 We are sending mail with results at report@fotonower.com args[1358896931] : ('0.06621200508956282',) no score found for photo 1358896931 We are sending mail with results at report@fotonower.com args[1358896927] : ('0.06621200508956282',) no score found for photo 1358896927 We are sending mail with results at report@fotonower.com args[1358896922] : ('0.06621200508956282',) no score found for photo 1358896922 We are sending mail with results at report@fotonower.com args[1358896917] : ('0.06621200508956282',) no score found for photo 1358896917 We are sending mail with results at report@fotonower.com args[1358896271] : ('0.06621200508956282',) no score found for photo 1358896271 We are sending mail with results at report@fotonower.com args[1358896201] : ('0.06621200508956282',) no score found for photo 1358896201 We are sending mail with results at report@fotonower.com args[1358896194] : ('0.06621200508956282',) no score found for photo 1358896194 We are sending mail with results at report@fotonower.com args[1358896191] : ('0.06621200508956282',) no score found for photo 1358896191 We are sending mail with results at report@fotonower.com args[1358896187] : ('0.06621200508956282',) no score found for photo 1358896187 We are sending mail with results at report@fotonower.com args[1358896184] : ('0.06621200508956282',) no score found for photo 1358896184 We are sending mail with results at report@fotonower.com args[1358896165] : ('0.06621200508956282',) no score found for photo 1358896165 We are sending mail with results at report@fotonower.com args[1358896162] : ('0.06621200508956282',) no score found for photo 1358896162 We are sending mail with results at report@fotonower.com args[1358896159] : ('0.06621200508956282',) no score found for photo 1358896159 We are sending mail with results at report@fotonower.com args[1358896155] : ('0.06621200508956282',) no score found for photo 1358896155 We are sending mail with results at report@fotonower.com args[1358896151] : ('0.06621200508956282',) no score found for photo 1358896151 We are sending mail with results at report@fotonower.com args[1358896132] : ('0.06621200508956282',) no score found for photo 1358896132 We are sending mail with results at report@fotonower.com args[1358896129] : ('0.06621200508956282',) no score found for photo 1358896129 We are sending mail with results at report@fotonower.com args[1358896127] : ('0.06621200508956282',) no score found for photo 1358896127 We are sending mail with results at report@fotonower.com refus_total : 0.06621200508956282 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057413 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_P23057413_16-05-2025_11_00_59.pdf results_Auto_P23057413_16-05-2025_11_00_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_16-05-2025_11_00_59.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','23057413','results_Auto_P23057413_16-05-2025_11_00_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_16-05-2025_11_00_59.pdf','pdf','','0.17','0.06621200508956282') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23057413]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127] map_info['map_portfolio_photo'] : {23057413: [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127, 1358896043, 1358895930, 1358895907, 1358895878, 1358895851, 1358895763, 1358895748, 1358895712, 1358895678, 1358895579, 1358895575, 1358895571, 1358895544, 1358895199, 1358895169, 1358895140, 1358894863, 1358894828, 1358894775, 1358894724, 1358894673, 1358894415, 1358894411, 1358894402, 1358894392, 1358894389, 1358894361, 1358894358, 1358894355, 1358894351, 1358894343, 1358893987, 1358893984, 1358893975, 1358893947, 1358893942, 1358893939, 1358893935, 1358893932, 1358893903, 1358893900, 1358893896, 1358893891, 1358893886]} final : False mtd_id 4302 list_pids : [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127] 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, '2876277') ('4302', '23057413', '1358896961', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896935', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896931', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896927', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896922', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896917', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896271', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896201', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896194', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896191', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896187', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896184', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896165', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896162', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896159', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896155', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896151', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896132', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896129', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896127', None, None, None, None, None, '2876277') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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', '23057413', '1358896961', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896935', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896931', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896927', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896922', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896917', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896271', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896201', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896194', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896191', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896187', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896184', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896165', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896162', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896159', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896155', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896151', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896132', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896129', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896127', None, None, None, None, None, '2876277')] time used for this insertion : 0.08350896835327148 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.611602783203125 time spend to save output : 0.08397865295410156 total time spend for step 4 : 2.6955814361572266 step5:split_time_score Fri May 16 11:01: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 : ['23057413'] 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 : [('23057413',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23057413) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1358896159: {'path': 'temp/1747386058_3528674_1358896159_4d2cb2582e4015898a947b69de4072f6.jpg', 'extension': 'jpg'}, 1358896162: {'path': 'temp/1747386058_3528674_1358896162_a5df1ceabeed4304c6b19acaa70a0786.jpg', 'extension': 'jpg'}, 1358896165: {'path': 'temp/1747386058_3528674_1358896165_e263b09cd1087b097b11d56572c89e9a.jpg', 'extension': 'jpg'}, 1358896184: {'path': 'temp/1747386058_3528674_1358896184_423f0e257240c1bbed9c1120274ce263.jpg', 'extension': 'jpg'}, 1358896187: {'path': 'temp/1747386058_3528674_1358896187_75aeb75df7745bc3e3b918cf5fd549a0.jpg', 'extension': 'jpg'}, 1358896127: {'path': 'temp/1747386058_3528674_1358896127_5cca12ea030d1eb336368bb8579d1d00.jpg', 'extension': 'jpg'}, 1358896129: {'path': 'temp/1747386058_3528674_1358896129_44463260688b6872663a48d1119c1543.jpg', 'extension': 'jpg'}, 1358896132: {'path': 'temp/1747386058_3528674_1358896132_76c95d3282b732e153145d9e305fbaa8.jpg', 'extension': 'jpg'}, 1358896151: {'path': 'temp/1747386058_3528674_1358896151_d1dbb6e2383e8cf81c26c3937d9ce7b0.jpg', 'extension': 'jpg'}, 1358896155: {'path': 'temp/1747386058_3528674_1358896155_2d586e98a33cf532f0a7d25be72f65a6.jpg', 'extension': 'jpg'}, 1358896922: {'path': 'temp/1747386058_3528674_1358896922_d7e939cc838cfb164c9cf7aa0d7d7c75.jpg', 'extension': 'jpg'}, 1358896927: {'path': 'temp/1747386058_3528674_1358896927_9a716c1e31a197bb313d3cedbbced486.jpg', 'extension': 'jpg'}, 1358896931: {'path': 'temp/1747386058_3528674_1358896931_858d28c54703c426904d5c82ceff2efd.jpg', 'extension': 'jpg'}, 1358896935: {'path': 'temp/1747386058_3528674_1358896935_b42ccfb55e57d6f47295b4bd1565451f.jpg', 'extension': 'jpg'}, 1358896961: {'path': 'temp/1747386058_3528674_1358896961_5104fb8947d98c2f2906945fe807a983.jpg', 'extension': 'jpg'}, 1358896191: {'path': 'temp/1747386058_3528674_1358896191_8c44b5e8cdcf7e162da395c02587f34b.jpg', 'extension': 'jpg'}, 1358896194: {'path': 'temp/1747386058_3528674_1358896194_92019f245e324135bf96b5dd3dfccb00.jpg', 'extension': 'jpg'}, 1358896201: {'path': 'temp/1747386058_3528674_1358896201_3b6f91e470443dee25e9bd7861e1609e.jpg', 'extension': 'jpg'}, 1358896271: {'path': 'temp/1747386058_3528674_1358896271_baccb7ed9ee3fe3f79b30c5e439cc97c.jpg', 'extension': 'jpg'}, 1358896917: {'path': 'temp/1747386058_3528674_1358896917_41e2a524bcc990e4112feb133bfc8c84.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 = 23057413; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 23057413 group by h (('10', 64),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23057413 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 (23057413) 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 (23057413) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16052025 23057413 Nombre de photos uploadées : 64 / 23040 (0%) 16052025 23057413 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 16052025 23057413 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1358893903, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/6788eb740f4873af450856a05f370f93.jpg', 'username': None, 'uploaded_at': 1747385167, 'text': 'image_16052025_10_45_04_10162.jpg'}, {'photo_id': 1358893900, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/3a13ba4916a5afd6fd37edfd4971015c.jpg', 'username': None, 'uploaded_at': 1747385167, 'text': 'image_16052025_10_45_14_10143.jpg'}, {'photo_id': 1358893896, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/9d37e8b716e883a9758224f55a21ee68.jpg', 'username': None, 'uploaded_at': 1747385167, 'text': 'image_16052025_10_45_25_10140.jpg'}, {'photo_id': 1358893891, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/16/96cb9ed28632a4cba091ce96f3cb46be.jpg', 'username': None, 'uploaded_at': 1747385167, 'text': 'image_16052025_10_45_35_10146.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ???????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.005583763122558594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23057413, '2025-05-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1811648,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03438591957092285 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= 1811648 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1811648, 'dashboard_run_id': 1820677, 'mtr_portfolio_id': 23055623, 'dashboard_result_id': 10622903, '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_P23055623_16-05-2025_10_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23055682, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1820677, 'mtr_portfolio_id': 23056122, 'dashboard_result_id': 10622904, '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_P23056122_16-05-2025_10_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056143, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1820677, 'mtr_portfolio_id': 23056830, 'dashboard_result_id': 10622905, '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_P23056830_16-05-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056871, 'pht': 3726}}"}, {'dashboat_entry_day': 1811648, 'dashboard_run_id': 1820677, 'mtr_portfolio_id': 23057413, 'dashboard_result_id': 10622906, '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_P23057413_16-05-2025_10_56_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057462, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23055623 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 = 23055623 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 = 23055623 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23055623 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 = 23055623 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 = 23055623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23055623_16-05-2025_10_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23055623 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_P23055623_16-05-2025_10_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23055671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23055672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23055673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23055674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23055675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23055676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23055677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23055678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23055679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23055680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23055681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23055682, 'pht': 3726}}" where mtr_portfolio_id = 23055623 and dashboard_run_id = 1820677 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 = 23056122 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2875711, 'mtr_portfolio_id': 23056122, 'created_at': datetime.datetime(2025, 5, 16, 10, 33, 1), 'result': '0.027822660909577458', 'result_long': None, 'result_double': None}] Qualite : 0.027822660909577458 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23056122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056122_16-05-2025_10_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23056122 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_P23056122_16-05-2025_10_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056143, 'pht': 3726}}" where mtr_portfolio_id = 23056122 and dashboard_run_id = 1820678 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23056122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10622904, 0.027822660909577458, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056122_16-05-2025_10_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056134, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056143, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23056830 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2875983, 'mtr_portfolio_id': 23056830, 'created_at': datetime.datetime(2025, 5, 16, 10, 48, 57), 'result': '0.08722601268207716', 'result_long': None, 'result_double': None}] Qualite : 0.08722601268207716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23056830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056830_16-05-2025_10_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23056830 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_P23056830_16-05-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056871, 'pht': 3726}}" where mtr_portfolio_id = 23056830 and dashboard_run_id = 1820678 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23056830 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10622905, 0.08722601268207716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23056830_16-05-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23056859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23056860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23056861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23056862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23056863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23056864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23056865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23056867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23056868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23056869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23056870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23056871, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23057413 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2876277, 'mtr_portfolio_id': 23057413, 'created_at': datetime.datetime(2025, 5, 16, 11, 0, 58), 'result': '0.06621200508956282', 'result_long': None, 'result_double': None}] Qualite : 0.06621200508956282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23057413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_16-05-2025_11_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23057413 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_P23057413_16-05-2025_11_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057462, 'pht': 3726}}" where mtr_portfolio_id = 23057413 and dashboard_run_id = 1820678 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23057413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10622906, 0.06621200508956282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23057413_16-05-2025_11_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23057451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23057452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23057453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23057454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23057455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23057456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23057457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23057458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23057459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23057460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23057461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23057462, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23055623,23056122,23056830,23057413) result : ((1358884192,), (1358884226,), (1358884256,), (1358884287,), (1358884323,), (1358884622,), (1358884652,), (1358884679,), (1358884705,), (1358884738,), (1358885041,), (1358885073,), (1358885102,), (1358885129,), (1358885247,), (1358885250,), (1358885253,), (1358885263,), (1358885292,), (1358885321,), (1358885534,), (1358885539,), (1358885544,), (1358885574,), (1358885756,), (1358885760,), (1358885765,), (1358885769,), (1358885773,), (1358885777,), (1358885799,), (1358885804,), (1358885809,), (1358885815,), (1358885820,), (1358885844,), (1358885848,), (1358885852,), (1358885894,), (1358885898,), (1358885903,), (1358885906,), (1358885908,), (1358885911,), (1358885948,), (1358885951,), (1358885954,), (1358886008,), (1358886300,), (1358886373,), (1358886431,), (1358886491,), (1358886556,), (1358886720,), (1358886750,), (1358886783,), (1358886814,), (1358886845,), (1358886876,), (1358887122,), (1358887125,), (1358887129,), (1358887132,), (1358887137,), (1358887142,), (1358887252,), (1358887311,), (1358887368,), (1358887826,), (1358887866,), (1358887913,), (1358887955,), (1358888016,), (1358888572,), (1358888369,), (1358888401,), (1358888434,), (1358888500,), (1358888537,), (1358888823,), (1358888850,), (1358888880,), (1358888907,), (1358889110,), (1358889137,), (1358889175,), (1358889226,), (1358889286,), (1358889339,), (1358889529,), (1358889556,), (1358889560,), (1358889565,), (1358889570,), (1358889732,), (1358889737,), (1358889741,), (1358889744,), (1358889748,), (1358889799,), (1358889803,), (1358889808,), (1358889812,), (1358889816,), (1358889895,), (1358889922,), (1358889951,), (1358889977,), (1358890010,), (1358890041,), (1358890296,), (1358890328,), (1358890357,), (1358890394,), (1358890425,), (1358890721,), (1358890748,), (1358890777,), (1358890780,), (1358890783,), (1358890950,), (1358890954,), (1358890957,), (1358890959,), (1358890963,), (1358891465,), (1358891467,), (1358891470,), (1358891746,), (1358891772,), (1358891777,), (1358891783,), (1358891786,), (1358891789,), (1358891826,), (1358891870,), (1358891873,), (1358891879,), (1358891928,), (1358891979,), (1358892016,), (1358892020,), (1358892078,), (1358892106,), (1358892264,), (1358892250,), (1358892257,), (1358892261,), (1358892412,), (1358892419,), (1358892424,), (1358892430,), (1358892467,), (1358892469,), (1358892472,), (1358892508,), (1358892510,), (1358892513,), (1358892515,), (1358892528,), (1358892539,), (1358892565,), (1358892566,), (1358892567,), (1358892569,), (1358892571,), (1358892574,), (1358892599,), (1358892603,), (1358892651,), (1358892653,), (1358892669,), (1358892671,), (1358892672,), (1358892678,), (1358892787,), (1358892814,), (1358892818,), (1358892849,), (1358892964,), (1358892990,), (1358893054,), (1358893115,), (1358893310,), (1358893313,), (1358893317,), (1358893451,), (1358893455,), (1358893459,), (1358893562,), (1358893578,), (1358893607,), (1358893633,), (1358893645,), (1358893656,), (1358893774,), (1358893777,), (1358893781,), (1358893818,), (1358893822,), (1358893849,), (1358893852,), (1358893854,), (1358893857,), (1358893907,), (1358893886,), (1358893891,), (1358893896,), (1358893900,), (1358893903,), (1358893932,), (1358893935,), (1358893939,), (1358893942,), (1358893947,), (1358893975,), (1358893984,), (1358893987,), (1358894343,), (1358894351,), (1358894355,), (1358894358,), (1358894361,), (1358894389,), (1358894392,), (1358894402,), (1358894411,), (1358894415,), (1358894673,), (1358894724,), (1358894775,), (1358894828,), (1358894863,), (1358895140,), (1358895169,), (1358895199,), (1358895544,), (1358895571,), (1358895575,), (1358895579,), (1358895678,), (1358895712,), (1358895748,), (1358895763,), (1358895851,), (1358895878,), (1358895907,), (1358895930,), (1358896043,), (1358896127,), (1358896129,), (1358896132,), (1358896151,), (1358896155,), (1358896159,), (1358896162,), (1358896165,), (1358896184,), (1358896187,), (1358896191,), (1358896194,), (1358896201,), (1358896271,), (1358896917,), (1358896922,), (1358896927,), (1358896931,), (1358896935,), (1358896961,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16052025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23057413]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127] map_info['map_portfolio_photo'] : {23057413: [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127, 1358896043, 1358895930, 1358895907, 1358895878, 1358895851, 1358895763, 1358895748, 1358895712, 1358895678, 1358895579, 1358895575, 1358895571, 1358895544, 1358895199, 1358895169, 1358895140, 1358894863, 1358894828, 1358894775, 1358894724, 1358894673, 1358894415, 1358894411, 1358894402, 1358894392, 1358894389, 1358894361, 1358894358, 1358894355, 1358894351, 1358894343, 1358893987, 1358893984, 1358893975, 1358893947, 1358893942, 1358893939, 1358893935, 1358893932, 1358893903, 1358893900, 1358893896, 1358893891, 1358893886]} final : True mtd_id 4302 list_pids : [1358896961, 1358896935, 1358896931, 1358896927, 1358896922, 1358896917, 1358896271, 1358896201, 1358896194, 1358896191, 1358896187, 1358896184, 1358896165, 1358896162, 1358896159, 1358896155, 1358896151, 1358896132, 1358896129, 1358896127] Looping around the photos to save general results len do output : 1 /23057413Didn'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, '2876277') ('4302', '23057413', '1358896961', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896935', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896931', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896927', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896922', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896917', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896271', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896201', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896194', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896191', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896187', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896184', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896165', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896162', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896159', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896155', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896151', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896132', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896129', None, None, None, None, None, '2876277') ('4302', None, None, None, None, None, None, None, '2876277') ('4302', '23057413', '1358896127', None, None, None, None, None, '2876277') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '23057413', 'None', None, None, None, None, '2876277'), ('4302', '23057413', '1358896961', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896935', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896931', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896927', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896922', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896917', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896271', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896201', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896194', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896191', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896187', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896184', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896165', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896162', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896159', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896155', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896151', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896132', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896129', None, None, None, None, None, '2876277'), ('4302', '23057413', '1358896127', None, None, None, None, None, '2876277')] time used for this insertion : 0.09244942665100098 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3719139099121094 time spend to save output : 0.09288144111633301 total time spend for step 5 : 0.4647953510284424 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 (2876277) 2.50user 2.85system 0:06.14elapsed 87%CPU (0avgtext+0avgdata 160216maxresident)k 6320inputs+11512outputs (6major+78697minor)pagefaults 0swaps