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 : 3624419 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 (2693396) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2693396) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735300 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2693396'] with mtr_portfolio_ids : ['21735300'] and first list_photo_ids : [] new path : /proc/3624419/ Name: python3 Umask: 0002 State: R (running) Tgid: 3624419 Ngid: 0 Pid: 3624419 PPid: 3624417 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3624419 NSpid: 3624419 NSpgid: 3620074 NSsid: 3620074 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97548 kB VmRSS: 97548 kB RssAnon: 59796 kB RssFile: 37752 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 100 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3624419', 'Ngid': '0', 'Pid': '3624419', 'PPid': '3624417', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3624419', 'NSpid': '3624419', 'NSpgid': '3620074', 'NSsid': '3620074', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97548 kB', 'VmRSS': '97548 kB', 'RssAnon': '59796 kB', 'RssFile': '37752 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '100'} ('datou_batch_current', '3624419', '1106932', '0', '1106932', '865680', '97548', b'', 'marlene', '2693396') 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 (21735300) 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 (2693396 ) ) 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 (21735300) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347536430, 'portfolio_id': 21735300}, {'photo_id': 1347536428, 'portfolio_id': 21735300}, {'photo_id': 1347536426, 'portfolio_id': 21735300}, {'photo_id': 1347536421, 'portfolio_id': 21735300}, {'photo_id': 1347536204, 'portfolio_id': 21735300}, {'photo_id': 1347536194, 'portfolio_id': 21735300}, {'photo_id': 1347536151, 'portfolio_id': 21735300}, {'photo_id': 1347536137, 'portfolio_id': 21735300}, {'photo_id': 1347536096, 'portfolio_id': 21735300}, {'photo_id': 1347536043, 'portfolio_id': 21735300}, {'photo_id': 1347535723, 'portfolio_id': 21735300}, {'photo_id': 1347535681, 'portfolio_id': 21735300}, {'photo_id': 1347535654, 'portfolio_id': 21735300}, {'photo_id': 1347535542, 'portfolio_id': 21735300}, {'photo_id': 1347535538, 'portfolio_id': 21735300}, {'photo_id': 1347535534, 'portfolio_id': 21735300}, {'photo_id': 1347535530, 'portfolio_id': 21735300}, {'photo_id': 1347535525, 'portfolio_id': 21735300}, {'photo_id': 1347535519, 'portfolio_id': 21735300}, {'photo_id': 1347535226, 'portfolio_id': 21735300}, {'photo_id': 1347535100, 'portfolio_id': 21735300}, {'photo_id': 1347535094, 'portfolio_id': 21735300}] map_portfolio_id_photo_id: {21735300: [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094]} ##### 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.015924453735351562 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 26 16:51:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21735300) 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 : 21735300 get user id for portfolio 21735300 get sub ptf for main ptf 21735300, type 3726 and hashtags ['Carton_gris', 'cartonnette', 'kraft', 'Carton_brun', 'flou', 'autre_refus', 'environnement', 'plastique', 'metal', 'mal_croppe', 'Teint_Dans_La_Masse', 'papier'] 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`=21735300 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','kraft','Carton_brun','flou','autre_refus','environnement','plastique','metal','mal_croppe','Teint_Dans_La_Masse','papier')) 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`=21735300 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','kraft','Carton_brun','flou','autre_refus','environnement','plastique','metal','mal_croppe','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[21735300, 21735301, 3726, 0.5, 2107753020, 979], [21735300, 21735302, 3726, 0.5, 702398920, 979], [21735300, 21735303, 3726, 0.5, 493202403, 979], [21735300, 21735304, 3726, 0.5, 2107753024, 979], [21735300, 21735305, 3726, 0.5, 492777938, 979], [21735300, 21735306, 3726, 0.5, 2107752406, 979], [21735300, 21735307, 3726, 0.5, 493012381, 979], [21735300, 21735308, 3726, 0.5, 492725882, 979], [21735300, 21735309, 3726, 0.5, 492628673, 979], [21735300, 21735310, 3726, 0.5, 2107755527, 979], [21735300, 21735311, 3726, 0.5, 2107752385, 979], [21735300, 21735312, 3726, 0.5, 492668766, 979]] 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`=21735300 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','kraft','Carton_brun','flou','autre_refus','environnement','plastique','metal','mal_croppe','Teint_Dans_La_Masse','papier')) 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`=21735300 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','kraft','Carton_brun','flou','autre_refus','environnement','plastique','metal','mal_croppe','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21735300, 'sub_port_id': 21735301, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260856, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'cartonnette': {'main_port_id': 21735300, 'sub_port_id': 21735302, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260857, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'kraft': {'main_port_id': 21735300, 'sub_port_id': 21735303, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260858, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'Carton_brun': {'main_port_id': 21735300, 'sub_port_id': 21735304, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260859, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'flou': {'main_port_id': 21735300, 'sub_port_id': 21735305, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260860, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'autre_refus': {'main_port_id': 21735300, 'sub_port_id': 21735306, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260861, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'environnement': {'main_port_id': 21735300, 'sub_port_id': 21735307, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260862, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'plastique': {'main_port_id': 21735300, 'sub_port_id': 21735308, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260863, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'metal': {'main_port_id': 21735300, 'sub_port_id': 21735309, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260864, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'mal_croppe': {'main_port_id': 21735300, 'sub_port_id': 21735310, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260865, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21735300, 'sub_port_id': 21735311, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260866, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'papier': {'main_port_id': 21735300, 'sub_port_id': 21735312, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260867, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21735301 , 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=21735300 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 (21735301) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735302 , 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=21735300 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 (21735302) result : ((1347536427,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735303 , 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=21735300 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 (21735303) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735304 , 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=21735300 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 (21735304) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735305 , 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=21735300 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 (21735305) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735306 , 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=21735300 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 (21735306) result : ((1347536425,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735307 , 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=21735300 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 (21735307) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735308 , 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=21735300 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 (21735308) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735309 , 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=21735300 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 (21735309) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735310 , 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=21735300 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 (21735310) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735311 , 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=21735300 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 (21735311) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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 21735312 , 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=21735300 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 (21735312) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) 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 (1347535100) 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`=21735300 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','kraft','Carton_brun','flou','autre_refus','environnement','plastique','metal','mal_croppe','Teint_Dans_La_Masse','papier')) 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`=21735300 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','kraft','Carton_brun','flou','autre_refus','environnement','plastique','metal','mal_croppe','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26032025_16_45_05_10157_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[21735300, 21735313, 4417, 0.5, 2107753020, 979], [21735300, 21735314, 4417, 0.5, 702398920, 979], [21735300, 21735315, 4417, 0.5, 493202403, 979], [21735300, 21735316, 4417, 0.5, 2107753024, 979], [21735300, 21735317, 4417, 0.5, 492777938, 979], [21735300, 21735318, 4417, 0.5, 2107752406, 979], [21735300, 21735319, 4417, 0.5, 493012381, 979], [21735300, 21735320, 4417, 0.5, 492725882, 979], [21735300, 21735321, 4417, 0.5, 492628673, 979], [21735300, 21735322, 4417, 0.5, 2107755527, 979], [21735300, 21735323, 4417, 0.5, 2107752385, 979], [21735300, 21735324, 4417, 0.5, 492668766, 979]] 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`=21735300 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','kraft','Carton_brun','flou','autre_refus','environnement','plastique','metal','mal_croppe','Teint_Dans_La_Masse','papier')) 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`=21735300 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','kraft','Carton_brun','flou','autre_refus','environnement','plastique','metal','mal_croppe','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21735300, 'sub_port_id': 21735313, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260868, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'cartonnette': {'main_port_id': 21735300, 'sub_port_id': 21735314, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260869, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'kraft': {'main_port_id': 21735300, 'sub_port_id': 21735315, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260870, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'Carton_brun': {'main_port_id': 21735300, 'sub_port_id': 21735316, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260871, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'flou': {'main_port_id': 21735300, 'sub_port_id': 21735317, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260872, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'autre_refus': {'main_port_id': 21735300, 'sub_port_id': 21735318, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260873, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'environnement': {'main_port_id': 21735300, 'sub_port_id': 21735319, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260874, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'plastique': {'main_port_id': 21735300, 'sub_port_id': 21735320, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260875, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'metal': {'main_port_id': 21735300, 'sub_port_id': 21735321, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260876, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'mal_croppe': {'main_port_id': 21735300, 'sub_port_id': 21735322, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260877, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'Teint_Dans_La_Masse': {'main_port_id': 21735300, 'sub_port_id': 21735323, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260878, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'papier': {'main_port_id': 21735300, 'sub_port_id': 21735324, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260879, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735313,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735301 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735302 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735306 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735319,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735307 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735320,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735308 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735321,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735309 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735312 lien utilise dans velours : https://www.fotonower.com/velours/21735313,21735314,21735315,21735316,21735317,21735318,21735319,21735320,21735321,21735322,21735323,21735324?tags=Carton_gris,cartonnette,kraft,Carton_brun,flou,autre_refus,environnement,plastique,metal,mal_croppe,Teint_Dans_La_Masse,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21735300]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094] map_info['map_portfolio_photo'] : {21735300: [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094]} final : False mtd_id 4302 list_pids : [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094] Looping around the photos to save general results len do output : 1 /21735300. 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, '2693396') ('4302', '21735300', '1347536430', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536428', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536426', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536421', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536204', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536194', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536151', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536137', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536096', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536043', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535723', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535681', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535654', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535542', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535538', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535534', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535530', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535525', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535519', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535226', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535100', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535094', None, None, None, None, None, '2693396') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '21735300', "{'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312}", None, None, None, None, '2693396'), ('4302', '21735300', '1347536430', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536428', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536426', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536421', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536204', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536194', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536151', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536137', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536096', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536043', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535723', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535681', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535654', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535542', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535538', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535534', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535530', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535525', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535519', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535226', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535100', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535094', None, None, None, None, None, '2693396')] time used for this insertion : 0.017806291580200195 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1572010517120361 time spend to save output : 0.01816868782043457 total time spend for step 1 : 1.1753697395324707 step2:final Wed Mar 26 16:52:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21735300) 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 21735300 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347535226,1347535100,1347535094,1347535542,1347535538,1347535534,1347535530,1347535525,1347535519,1347535723,1347535681,1347535654,1347536204,1347536194,1347536151,1347536137,1347536096,1347536043,1347536430,1347536428,1347536426,1347536421); 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([21735300]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} new output for save of step final : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094] map_info['map_portfolio_photo'] : {21735300: [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094]} final : False mtd_id 4302 list_pids : [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094] Looping around the photos to save general results len do output : 22 /1347536430.Didn't retrieve data . /1347536428.Didn't retrieve data . /1347536426.Didn't retrieve data . /1347536421.Didn't retrieve data . /1347536204.Didn't retrieve data . /1347536194.Didn't retrieve data . /1347536151.Didn't retrieve data . /1347536137.Didn't retrieve data . /1347536096.Didn't retrieve data . /1347536043.Didn't retrieve data . /1347535723.Didn't retrieve data . /1347535681.Didn't retrieve data . /1347535654.Didn't retrieve data . /1347535542.Didn't retrieve data . /1347535538.Didn't retrieve data . /1347535534.Didn't retrieve data . /1347535530.Didn't retrieve data . /1347535525.Didn't retrieve data . /1347535519.Didn't retrieve data . /1347535226.Didn't retrieve data . /1347535100.Didn't retrieve data . /1347535094.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, '2693396') ('4302', '21735300', '1347536430', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536428', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536426', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536421', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536204', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536194', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536151', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536137', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536096', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536043', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535723', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535681', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535654', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535542', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535538', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535534', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535530', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535525', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535519', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535226', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535100', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535094', None, None, None, None, None, '2693396') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 66 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', '21735300', '1347536430', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347536428', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347536426', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347536421', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347536204', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347536194', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347536151', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347536137', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347536096', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347536043', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535723', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535681', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535654', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535542', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535538', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535534', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535530', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535525', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535519', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535226', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535100', '0.024601566295766795', None, None, None, None, '2693396'), ('4302', '21735300', '1347535094', '0.024601566295766795', None, None, None, None, '2693396')] time used for this insertion : 0.01699542999267578 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.030871152877807617 time spend to save output : 0.017947912216186523 total time spend for step 2 : 0.04881906509399414 step3:velours_tree Wed Mar 26 16:52:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21735300: [{'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312}]} input_args_next_step : {21735300: ()} output_args : {21735300: [{'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312}]} args : 21735300 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21735300) 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([21735300]) 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.42211103439331055 time spend to save output : 5.602836608886719e-05 total time spend for step 3 : 0.4221670627593994 step4:send_mail_cod Wed Mar 26 16:52:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} input_args_next_step : {1347536430: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347536430 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347536428 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347536426 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347536421 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347536204 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347536194 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347536151 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347536137 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347536096 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347536043 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535723 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535681 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535654 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535542 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535538 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535534 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535530 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535525 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535519 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535226 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535100 depend.output_id : 0 input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ()} output_args : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',)} args : 1347535094 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 : {21735300: [{'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312}]} input_args_next_step : {1347536430: ('0.024601566295766795',), 1347536428: ('0.024601566295766795',), 1347536426: ('0.024601566295766795',), 1347536421: ('0.024601566295766795',), 1347536204: ('0.024601566295766795',), 1347536194: ('0.024601566295766795',), 1347536151: ('0.024601566295766795',), 1347536137: ('0.024601566295766795',), 1347536096: ('0.024601566295766795',), 1347536043: ('0.024601566295766795',), 1347535723: ('0.024601566295766795',), 1347535681: ('0.024601566295766795',), 1347535654: ('0.024601566295766795',), 1347535542: ('0.024601566295766795',), 1347535538: ('0.024601566295766795',), 1347535534: ('0.024601566295766795',), 1347535530: ('0.024601566295766795',), 1347535525: ('0.024601566295766795',), 1347535519: ('0.024601566295766795',), 1347535226: ('0.024601566295766795',), 1347535100: ('0.024601566295766795',), 1347535094: ('0.024601566295766795',), 21735300: ()} output_args : {21735300: [{'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312}]} args : 21735300 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 :23, first value : ('0.024601566295766795',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21735300) 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 (1347536430,1347536428,1347536426,1347536421,1347536204,1347536194,1347536151,1347536137,1347536096,1347536043,1347535723,1347535681,1347535654,1347535542,1347535538,1347535534,1347535530,1347535525,1347535519,1347535226,1347535100,1347535094) Found this number of photos: 22 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347535094 begin to download photo : 1347535530 begin to download photo : 1347535681 begin to download photo : 1347536151 begin to download photo : 1347536428 download finish for photo 1347535094 begin to download photo : 1347535100 download finish for photo 1347536428 begin to download photo : 1347536430 download finish for photo 1347535681 begin to download photo : 1347535723 download finish for photo 1347536151 begin to download photo : 1347536194 download finish for photo 1347535530 begin to download photo : 1347535534 download finish for photo 1347536430 download finish for photo 1347535100 begin to download photo : 1347535226 download finish for photo 1347535723 begin to download photo : 1347536043 download finish for photo 1347536194 begin to download photo : 1347536204 download finish for photo 1347535534 begin to download photo : 1347535538 download finish for photo 1347536043 begin to download photo : 1347536096 download finish for photo 1347535226 begin to download photo : 1347535519 download finish for photo 1347536204 begin to download photo : 1347536421 download finish for photo 1347535538 begin to download photo : 1347535542 download finish for photo 1347536096 begin to download photo : 1347536137 download finish for photo 1347535519 begin to download photo : 1347535525 download finish for photo 1347536421 begin to download photo : 1347536426 download finish for photo 1347535542 begin to download photo : 1347535654 download finish for photo 1347535525 download finish for photo 1347536137 download finish for photo 1347536426 download finish for photo 1347535654 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 22 ; length of list_pids : 22 ; length of list_args : 22 results_Auto_P21735300_26-03-2025_16_52_01.pdf 21735302 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=21735302 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347536427: '1743004252_1895947_1347535654_af4af0113caec059381837608acd53bf_rle_crop_3731394414_0.png'} change filename to text .imagette217353021743004321/ imagette217353021743004321/1743004252_1895947_1347535654_af4af0113caec059381837608acd53bf_rle_crop_3731394414_0.png.png imagette217353031743004321/ imagette217353051743004322/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6cb291433afe665b85b04e7020d87d2a_8215097.png imagette217353021743004321 21735303 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=21735303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217353031743004321 21735305 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=21735305 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217353051743004322 21735306 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=21735306 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347536425: '1743004252_1895947_1347535654_af4af0113caec059381837608acd53bf_rle_crop_3731394411_0.png'} change filename to text .imagette217353061743004322/ imagette217353061743004322/1743004252_1895947_1347535654_af4af0113caec059381837608acd53bf_rle_crop_3731394411_0.png.png imagette217353081743004322/ imagette217353091743004322/ imagette217353101743004322/ imagette217353011743004322/ imagette217353041743004322/ imagette217353111743004322/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2eb570e6ed6d1c61446861c4f3a4b410_1955012.png imagette217353061743004322 21735308 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=21735308 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217353081743004322 21735309 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=21735309 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217353091743004322 21735310 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=21735310 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217353101743004322 21735301 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=21735301 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217353011743004322 21735304 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=21735304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217353041743004322 21735311 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=21735311 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217353111743004322 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21735300 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21735313,21735314,21735315,21735316,21735317,21735318,21735319,21735320,21735321,21735322,21735323,21735324?tags=Carton_gris,cartonnette,kraft,Carton_brun,flou,autre_refus,environnement,plastique,metal,mal_croppe,Teint_Dans_La_Masse,papier your option no_mail is active, we will not send the real mail to your client args[1347536430] : ('0.024601566295766795',) no score found for photo 1347536430 We are sending mail with results at report@fotonower.com args[1347536428] : ('0.024601566295766795',) no score found for photo 1347536428 We are sending mail with results at report@fotonower.com args[1347536426] : ('0.024601566295766795',) no score found for photo 1347536426 We are sending mail with results at report@fotonower.com args[1347536421] : ('0.024601566295766795',) no score found for photo 1347536421 We are sending mail with results at report@fotonower.com args[1347536204] : ('0.024601566295766795',) no score found for photo 1347536204 We are sending mail with results at report@fotonower.com args[1347536194] : ('0.024601566295766795',) no score found for photo 1347536194 We are sending mail with results at report@fotonower.com args[1347536151] : ('0.024601566295766795',) no score found for photo 1347536151 We are sending mail with results at report@fotonower.com args[1347536137] : ('0.024601566295766795',) no score found for photo 1347536137 We are sending mail with results at report@fotonower.com args[1347536096] : ('0.024601566295766795',) no score found for photo 1347536096 We are sending mail with results at report@fotonower.com args[1347536043] : ('0.024601566295766795',) no score found for photo 1347536043 We are sending mail with results at report@fotonower.com args[1347535723] : ('0.024601566295766795',) no score found for photo 1347535723 We are sending mail with results at report@fotonower.com args[1347535681] : ('0.024601566295766795',) no score found for photo 1347535681 We are sending mail with results at report@fotonower.com args[1347535654] : ('0.024601566295766795',) no score found for photo 1347535654 We are sending mail with results at report@fotonower.com args[1347535542] : ('0.024601566295766795',) no score found for photo 1347535542 We are sending mail with results at report@fotonower.com args[1347535538] : ('0.024601566295766795',) no score found for photo 1347535538 We are sending mail with results at report@fotonower.com args[1347535534] : ('0.024601566295766795',) no score found for photo 1347535534 We are sending mail with results at report@fotonower.com args[1347535530] : ('0.024601566295766795',) no score found for photo 1347535530 We are sending mail with results at report@fotonower.com args[1347535525] : ('0.024601566295766795',) no score found for photo 1347535525 We are sending mail with results at report@fotonower.com args[1347535519] : ('0.024601566295766795',) no score found for photo 1347535519 We are sending mail with results at report@fotonower.com args[1347535226] : ('0.024601566295766795',) no score found for photo 1347535226 We are sending mail with results at report@fotonower.com args[1347535100] : ('0.024601566295766795',) no score found for photo 1347535100 We are sending mail with results at report@fotonower.com args[1347535094] : ('0.024601566295766795',) no score found for photo 1347535094 We are sending mail with results at report@fotonower.com refus_total : 0.024601566295766795 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=21735300 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_P21735300_26-03-2025_16_52_01.pdf results_Auto_P21735300_26-03-2025_16_52_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21735300_26-03-2025_16_52_01.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','21735300','results_Auto_P21735300_26-03-2025_16_52_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21735300_26-03-2025_16_52_01.pdf','pdf','','0.18','0.024601566295766795') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21735300]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094] map_info['map_portfolio_photo'] : {21735300: [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094]} final : False mtd_id 4302 list_pids : [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094] 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, '2693396') ('4302', '21735300', '1347536430', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536428', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536426', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536421', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536204', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536194', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536151', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536137', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536096', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536043', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535723', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535681', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535654', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535542', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535538', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535534', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535530', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535525', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535519', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535226', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535100', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535094', None, None, None, None, None, '2693396') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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', '21735300', '1347536430', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536428', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536426', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536421', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536204', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536194', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536151', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536137', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536096', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536043', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535723', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535681', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535654', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535542', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535538', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535534', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535530', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535525', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535519', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535226', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535100', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535094', None, None, None, None, None, '2693396')] time used for this insertion : 0.01818394660949707 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.445701837539673 time spend to save output : 0.01881575584411621 total time spend for step 4 : 2.464517593383789 step5:split_time_score Wed Mar 26 16:52:03 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 : ['21735300'] 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 : [('21735300',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21735300) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347536428: {'path': 'temp/1743004321_3624419_1347536428_3b11f4c439bb1658c235a6b5ccbb49a9.jpg', 'extension': 'jpg'}, 1347536430: {'path': 'temp/1743004321_3624419_1347536430_22e217c486024d7e47c62b9e96ef67ee.jpg', 'extension': 'jpg'}, 1347535094: {'path': 'temp/1743004321_3624419_1347535094_1cd9a44b42ff4c7e756b040431325576.jpg', 'extension': 'jpg'}, 1347535100: {'path': 'temp/1743004321_3624419_1347535100_978887f110842f4fe863a6e9a68dd1a3.jpg', 'extension': 'jpg'}, 1347535226: {'path': 'temp/1743004321_3624419_1347535226_7a0998ae473dcc93c417bfb4701f149a.jpg', 'extension': 'jpg'}, 1347535519: {'path': 'temp/1743004321_3624419_1347535519_ce1f74f2f9174eb20ce014eef9d909b3.jpg', 'extension': 'jpg'}, 1347535525: {'path': 'temp/1743004321_3624419_1347535525_4418300ece5a9efd426c0f65e8161ba6.jpg', 'extension': 'jpg'}, 1347535681: {'path': 'temp/1743004321_3624419_1347535681_06b5d520e5ba34256d6229a83b9472fd.jpg', 'extension': 'jpg'}, 1347535723: {'path': 'temp/1743004321_3624419_1347535723_2b2c915710dbf8eda65601d39177edae.jpg', 'extension': 'jpg'}, 1347536043: {'path': 'temp/1743004321_3624419_1347536043_21a745b839f98d70ede705292a3ee058.jpg', 'extension': 'jpg'}, 1347536096: {'path': 'temp/1743004321_3624419_1347536096_b03f136cb52a1c39e59d8fd19e78872c.jpg', 'extension': 'jpg'}, 1347536137: {'path': 'temp/1743004321_3624419_1347536137_df0b8ebb77c4edebf74cd1c08863238f.jpg', 'extension': 'jpg'}, 1347536151: {'path': 'temp/1743004321_3624419_1347536151_b30bda4bb1fd4822652c4f25ed1c22bb.jpg', 'extension': 'jpg'}, 1347536194: {'path': 'temp/1743004321_3624419_1347536194_5c604e802b081b4b51b2f455e56c98df.jpg', 'extension': 'jpg'}, 1347536204: {'path': 'temp/1743004321_3624419_1347536204_9fb44f70ff93c21e06eb6e707707f089.jpg', 'extension': 'jpg'}, 1347536421: {'path': 'temp/1743004321_3624419_1347536421_131695f02b28702e387e31f62d21abbe.jpg', 'extension': 'jpg'}, 1347536426: {'path': 'temp/1743004321_3624419_1347536426_288524cc62fa66e1a3667758d7676dfc.jpg', 'extension': 'jpg'}, 1347535530: {'path': 'temp/1743004321_3624419_1347535530_1e9ee76753921fac1d1412d384a349ce.jpg', 'extension': 'jpg'}, 1347535534: {'path': 'temp/1743004321_3624419_1347535534_72dba394ad0f3521664d06cc1e82d080.jpg', 'extension': 'jpg'}, 1347535538: {'path': 'temp/1743004321_3624419_1347535538_30fc60044e8f1a92c6294302e885be79.jpg', 'extension': 'jpg'}, 1347535542: {'path': 'temp/1743004321_3624419_1347535542_0c862e1d86426bf18a70d7b8209f6bae.jpg', 'extension': 'jpg'}, 1347535654: {'path': 'temp/1743004321_3624419_1347535654_af4af0113caec059381837608acd53bf.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 = 21735300; (('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 = 21735300 group by h (('16', 22),) 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=21735300 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 (21735300) 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 (21735300) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26032025 21735300 Nombre de photos uploadées : 22 / 23040 (0%) 26032025 21735300 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 26032025 21735300 Nombre de photos taguées (volume) : 0 / 22 (0%) [{'photo_id': 1347535226, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7a0998ae473dcc93c417bfb4701f149a.jpg', 'username': None, 'uploaded_at': 1743004034, 'text': 'image_26032025_16_45_05_10155.jpg'}, {'photo_id': 1347535100, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/978887f110842f4fe863a6e9a68dd1a3.jpg', 'username': None, 'uploaded_at': 1743004034, 'text': 'image_26032025_16_45_15_10133.jpg'}, {'photo_id': 1347535094, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1cd9a44b42ff4c7e756b040431325576.jpg', 'username': None, 'uploaded_at': 1743004034, 'text': 'image_26032025_16_45_45_10133.jpg'}, {'photo_id': 1347535542, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0c862e1d86426bf18a70d7b8209f6bae.jpg', 'username': None, 'uploaded_at': 1743004094, 'text': 'image_26032025_16_45_54_9123.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.3113021850585938e-05 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00135040283203125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21735300, '2025-03-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1689284,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02358698844909668 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= 1689284 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698244, 'mtr_portfolio_id': 21732332, 'dashboard_result_id': 9638999, '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_P21732332_26-03-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21732337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21732338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21732339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21732341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21732342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21732344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21732346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21732348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21732349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21732350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21732352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21732353, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698244, 'mtr_portfolio_id': 21733447, 'dashboard_result_id': 9639000, '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_P21733447_26-03-2025_16_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21733450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21733451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21733452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21733453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21733454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21733455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21733456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21733457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21733458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21733459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21733460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21733461, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698244, 'mtr_portfolio_id': 21734263, 'dashboard_result_id': 9639003, '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_P21734263_26-03-2025_16_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21734264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21734265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21734266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21734267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21734268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21734269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21734271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21734272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21734273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21734274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21734275, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698244, 'mtr_portfolio_id': 21735300, 'dashboard_result_id': 9639006, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21732332 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': 2693048, 'mtr_portfolio_id': 21732332, 'created_at': datetime.datetime(2025, 3, 26, 16, 18, 58), 'result': '0.039183224057331524', 'result_long': None, 'result_double': None}] Qualite : 0.039183224057331524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21732332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21732332_26-03-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21732332 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_P21732332_26-03-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21732337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21732338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21732339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21732341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21732342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21732344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21732346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21732348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21732349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21732350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21732352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21732353, 'pht': 3726}}" where mtr_portfolio_id = 21732332 and dashboard_run_id = 1698244 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`=21732332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9638999, 0.039183224057331524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21732332_26-03-2025_16_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21732337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21732338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21732339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21732341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21732342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21732344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21732346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21732348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21732349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21732350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21732352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21732353, '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 = 21733447 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': 2693209, 'mtr_portfolio_id': 21733447, 'created_at': datetime.datetime(2025, 3, 26, 16, 32, 58), 'result': '0.04344358042473777', 'result_long': None, 'result_double': None}] Qualite : 0.04344358042473777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21733447 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21733447_26-03-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21733447 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_P21733447_26-03-2025_16_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21733450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21733451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21733452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21733453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21733454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21733455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21733456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21733457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21733458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21733459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21733460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21733461, 'pht': 3726}}" where mtr_portfolio_id = 21733447 and dashboard_run_id = 1698244 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`=21733447 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9639000, 0.04344358042473777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21733447_26-03-2025_16_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21733450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21733451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21733452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21733453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21733454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21733455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21733456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21733457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21733458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21733459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21733460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21733461, '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 = 21734263 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': 2693323, 'mtr_portfolio_id': 21734263, 'created_at': datetime.datetime(2025, 3, 26, 16, 47, 59), 'result': '0.035100811440391545', 'result_long': None, 'result_double': None}] Qualite : 0.035100811440391545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21734263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21734263_26-03-2025_16_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21734263 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_P21734263_26-03-2025_16_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21734264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21734265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21734266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21734267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21734268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21734269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21734271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21734272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21734273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21734274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21734275, 'pht': 3726}}" where mtr_portfolio_id = 21734263 and dashboard_run_id = 1698244 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`=21734263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9639003, 0.035100811440391545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21734263_26-03-2025_16_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21734264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21734265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21734266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21734267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21734268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21734269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21734271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21734272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21734273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21734274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21734275, '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 = 21735300 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': 2693396, 'mtr_portfolio_id': 21735300, 'created_at': datetime.datetime(2025, 3, 26, 16, 52), 'result': '0.024601566295766795', 'result_long': None, 'result_double': None}] Qualite : 0.024601566295766795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21735300 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21735300_26-03-2025_16_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21735300 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_P21735300_26-03-2025_16_52_01.pdf'}" where mtr_portfolio_id = 21735300 and dashboard_run_id = 1698244 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`=21735300 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9639006, 0.024601566295766795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21735300_26-03-2025_16_52_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21735301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21735302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21735303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21735304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21735305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21735306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21735307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21735308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21735309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21735310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21735311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21735312, '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 (21732332,21733447,21734263,21735300) result : ((1347516430,), (1347516494,), (1347517168,), (1347517207,), (1347517256,), (1347517315,), (1347517354,), (1347517493,), (1347518352,), (1347518386,), (1347518451,), (1347518489,), (1347518509,), (1347518584,), (1347519313,), (1347519403,), (1347519517,), (1347519593,), (1347519926,), (1347519939,), (1347519966,), (1347520027,), (1347520084,), (1347520100,), (1347520481,), (1347520545,), (1347520606,), (1347520631,), (1347520997,), (1347521037,), (1347521062,), (1347521074,), (1347521101,), (1347521139,), (1347521443,), (1347521482,), (1347521627,), (1347521692,), (1347522090,), (1347522114,), (1347522157,), (1347522198,), (1347522259,), (1347522298,), (1347522712,), (1347522776,), (1347522844,), (1347523472,), (1347524436,), (1347524477,), (1347524771,), (1347524813,), (1347524835,), (1347524859,), (1347524882,), (1347524909,), (1347525108,), (1347525135,), (1347525152,), (1347525469,), (1347525486,), (1347525513,), (1347525543,), (1347525568,), (1347525825,), (1347525708,), (1347525712,), (1347525738,), (1347525763,), (1347525790,), (1347526360,), (1347526810,), (1347526879,), (1347526984,), (1347527040,), (1347527197,), (1347527199,), (1347527207,), (1347527276,), (1347527320,), (1347527346,), (1347527792,), (1347527818,), (1347527854,), (1347527886,), (1347528091,), (1347528095,), (1347528105,), (1347528109,), (1347528112,), (1347528117,), (1347528178,), (1347528181,), (1347528201,), (1347528485,), (1347528500,), (1347528504,), (1347528509,), (1347528662,), (1347528680,), (1347528738,), (1347528748,), (1347528755,), (1347528771,), (1347528787,), (1347528817,), (1347528830,), (1347528844,), (1347528852,), (1347528871,), (1347528903,), (1347528909,), (1347528914,), (1347528917,), (1347528921,), (1347528984,), (1347529001,), (1347529006,), (1347529015,), (1347529030,), (1347529034,), (1347529057,), (1347529060,), (1347529062,), (1347529185,), (1347529197,), (1347529208,), (1347529238,), (1347529267,), (1347529333,), (1347529475,), (1347529483,), (1347529500,), (1347529507,), (1347529657,), (1347529660,), (1347529674,), (1347529677,), (1347529732,), (1347529704,), (1347529709,), (1347529717,), (1347529722,), (1347529726,), (1347529784,), (1347529789,), (1347529806,), (1347529885,), (1347530182,), (1347530210,), (1347530235,), (1347530258,), (1347530284,), (1347530315,), (1347530357,), (1347530408,), (1347530467,), (1347530499,), (1347530532,), (1347530575,), (1347530834,), (1347530862,), (1347530892,), (1347530915,), (1347531202,), (1347531244,), (1347531289,), (1347531379,), (1347531428,), (1347531541,), (1347531544,), (1347531547,), (1347531629,), (1347531663,), (1347531715,), (1347531735,), (1347531795,), (1347532165,), (1347532235,), (1347532277,), (1347532327,), (1347532476,), (1347532818,), (1347532853,), (1347532908,), (1347532956,), (1347532992,), (1347533057,), (1347533409,), (1347533472,), (1347533502,), (1347533519,), (1347533546,), (1347533961,), (1347534005,), (1347534055,), (1347534094,), (1347534134,), (1347534174,), (1347534438,), (1347534488,), (1347534536,), (1347534559,), (1347534789,), (1347534818,), (1347534852,), (1347534880,), (1347534911,), (1347534934,), (1347535242,), (1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21735300]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094] map_info['map_portfolio_photo'] : {21735300: [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094]} final : True mtd_id 4302 list_pids : [1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094] Looping around the photos to save general results len do output : 1 /21735300Didn'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, '2693396') ('4302', '21735300', '1347536430', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536428', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536426', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536421', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536204', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536194', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536151', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536137', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536096', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347536043', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535723', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535681', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535654', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535542', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535538', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535534', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535530', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535525', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535519', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535226', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535100', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347535094', None, None, None, None, None, '2693396') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '21735300', 'None', None, None, None, None, '2693396'), ('4302', '21735300', '1347536430', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536428', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536426', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536421', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536204', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536194', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536151', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536137', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536096', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347536043', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535723', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535681', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535654', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535542', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535538', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535534', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535530', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535525', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535519', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535226', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535100', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347535094', None, None, None, None, None, '2693396')] time used for this insertion : 0.018049955368041992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33844876289367676 time spend to save output : 0.018419504165649414 total time spend for step 5 : 0.35686826705932617 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 (2693396) 2.38user 2.49system 0:09.56elapsed 50%CPU (0avgtext+0avgdata 160768maxresident)k 51168inputs+12104outputs (201major+75089minor)pagefaults 0swaps