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 : 3887446 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 (2657348) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2657348) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268290 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2657348'] with mtr_portfolio_ids : ['21268290'] and first list_photo_ids : [] new path : /proc/3887446/ Name: python3 Umask: 0002 State: R (running) Tgid: 3887446 Ngid: 0 Pid: 3887446 PPid: 3887445 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3887446 NSpid: 3887446 NSpgid: 3883493 NSsid: 3883493 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98928 kB VmRSS: 98928 kB RssAnon: 59768 kB RssFile: 39160 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 50 nonvoluntary_ctxt_switches: 117 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3887446', 'Ngid': '0', 'Pid': '3887446', 'PPid': '3887445', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3887446', 'NSpid': '3887446', 'NSpgid': '3883493', 'NSsid': '3883493', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98928 kB', 'VmRSS': '98928 kB', 'RssAnon': '59768 kB', 'RssFile': '39160 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '50', 'nonvoluntary_ctxt_switches': '117'} ('datou_batch_current', '3887446', '1106844', '0', '1106844', '865592', '98928', b'', 'marlene', '2657348') 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 (21268290) 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 (2657348 ) ) 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 (21268290) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342879061, 'portfolio_id': 21268290}, {'photo_id': 1342879008, 'portfolio_id': 21268290}, {'photo_id': 1342878946, 'portfolio_id': 21268290}, {'photo_id': 1342878907, 'portfolio_id': 21268290}, {'photo_id': 1342878862, 'portfolio_id': 21268290}, {'photo_id': 1342878669, 'portfolio_id': 21268290}, {'photo_id': 1342878605, 'portfolio_id': 21268290}, {'photo_id': 1342878557, 'portfolio_id': 21268290}, {'photo_id': 1342878493, 'portfolio_id': 21268290}, {'photo_id': 1342878457, 'portfolio_id': 21268290}, {'photo_id': 1342878392, 'portfolio_id': 21268290}, {'photo_id': 1342878373, 'portfolio_id': 21268290}, {'photo_id': 1342878354, 'portfolio_id': 21268290}, {'photo_id': 1342878349, 'portfolio_id': 21268290}, {'photo_id': 1342878281, 'portfolio_id': 21268290}, {'photo_id': 1342878268, 'portfolio_id': 21268290}, {'photo_id': 1342878190, 'portfolio_id': 21268290}, {'photo_id': 1342878176, 'portfolio_id': 21268290}, {'photo_id': 1342878167, 'portfolio_id': 21268290}, {'photo_id': 1342877925, 'portfolio_id': 21268290}, {'photo_id': 1342877896, 'portfolio_id': 21268290}] map_portfolio_id_photo_id: {21268290: [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896]} ##### 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.015978097915649414 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Mar 11 08:52:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21268290) 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 : 21268290 get user id for portfolio 21268290 get sub ptf for main ptf 21268290, type 3726 and hashtags ['environnement', 'Teint_Dans_La_Masse', 'mal_croppe', 'metal', 'autre_refus', 'papier', 'cartonnette', 'kraft', 'Carton_gris', 'Carton_brun', 'plastique', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21268290 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','mal_croppe','metal','autre_refus','papier','cartonnette','kraft','Carton_gris','Carton_brun','plastique','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21268290 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','mal_croppe','metal','autre_refus','papier','cartonnette','kraft','Carton_gris','Carton_brun','plastique','flou')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_3726_flou_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)[[21268290, 21268340, 3726, 0.5, 493012381, 979], [21268290, 21268341, 3726, 0.5, 2107752385, 979], [21268290, 21268342, 3726, 0.5, 2107755527, 979], [21268290, 21268343, 3726, 0.5, 492628673, 979], [21268290, 21268344, 3726, 0.5, 2107752406, 979], [21268290, 21268345, 3726, 0.5, 492668766, 979], [21268290, 21268346, 3726, 0.5, 702398920, 979], [21268290, 21268347, 3726, 0.5, 493202403, 979], [21268290, 21268348, 3726, 0.5, 2107753020, 979], [21268290, 21268349, 3726, 0.5, 2107753024, 979], [21268290, 21268350, 3726, 0.5, 492725882, 979], [21268290, 21268351, 3726, 0.5, 492777938, 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`=21268290 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','mal_croppe','metal','autre_refus','papier','cartonnette','kraft','Carton_gris','Carton_brun','plastique','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21268290 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','mal_croppe','metal','autre_refus','papier','cartonnette','kraft','Carton_gris','Carton_brun','plastique','flou')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21268290, 'sub_port_id': 21268340, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855427, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21268290, 'sub_port_id': 21268341, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855428, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'mal_croppe': {'main_port_id': 21268290, 'sub_port_id': 21268342, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855429, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'metal': {'main_port_id': 21268290, 'sub_port_id': 21268343, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855430, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'autre_refus': {'main_port_id': 21268290, 'sub_port_id': 21268344, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855431, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'papier': {'main_port_id': 21268290, 'sub_port_id': 21268345, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855432, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'cartonnette': {'main_port_id': 21268290, 'sub_port_id': 21268346, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855433, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'kraft': {'main_port_id': 21268290, 'sub_port_id': 21268347, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855434, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'Carton_gris': {'main_port_id': 21268290, 'sub_port_id': 21268348, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855435, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'Carton_brun': {'main_port_id': 21268290, 'sub_port_id': 21268349, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855436, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'plastique': {'main_port_id': 21268290, 'sub_port_id': 21268350, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855437, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}, 'flou': {'main_port_id': 21268290, 'sub_port_id': 21268351, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855438, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268340 , 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=21268290 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 (21268340) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268341 , 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=21268290 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 (21268341) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268342 , 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=21268290 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 (21268342) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268343 , 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=21268290 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 (21268343) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268344 , 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=21268290 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 (21268344) result : ((1342878478,), (1342878480,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268345 , 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=21268290 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 (21268345) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268346 , 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=21268290 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 (21268346) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268347 , 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=21268290 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 (21268347) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268348 , 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=21268290 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 (21268348) result : ((1342878486,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268349 , 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=21268290 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 (21268349) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268350 , 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=21268290 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 (21268350) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21268351 , 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=21268290 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 (21268351) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21268290) result : ((1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=21268290 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','mal_croppe','metal','autre_refus','papier','cartonnette','kraft','Carton_gris','Carton_brun','plastique','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21268290 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','mal_croppe','metal','autre_refus','papier','cartonnette','kraft','Carton_gris','Carton_brun','plastique','flou')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_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__11032025_08_45_35_10136_4417_flou_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)[[21268290, 21268354, 4417, 0.5, 493012381, 979], [21268290, 21268356, 4417, 0.5, 2107752385, 979], [21268290, 21268357, 4417, 0.5, 2107755527, 979], [21268290, 21268358, 4417, 0.5, 492628673, 979], [21268290, 21268359, 4417, 0.5, 2107752406, 979], [21268290, 21268361, 4417, 0.5, 492668766, 979], [21268290, 21268362, 4417, 0.5, 702398920, 979], [21268290, 21268363, 4417, 0.5, 493202403, 979], [21268290, 21268364, 4417, 0.5, 2107753020, 979], [21268290, 21268366, 4417, 0.5, 2107753024, 979], [21268290, 21268367, 4417, 0.5, 492725882, 979], [21268290, 21268368, 4417, 0.5, 492777938, 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`=21268290 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','mal_croppe','metal','autre_refus','papier','cartonnette','kraft','Carton_gris','Carton_brun','plastique','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21268290 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','mal_croppe','metal','autre_refus','papier','cartonnette','kraft','Carton_gris','Carton_brun','plastique','flou')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21268290, 'sub_port_id': 21268354, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855439, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21268290, 'sub_port_id': 21268356, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855440, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'mal_croppe': {'main_port_id': 21268290, 'sub_port_id': 21268357, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855441, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'metal': {'main_port_id': 21268290, 'sub_port_id': 21268358, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855442, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'autre_refus': {'main_port_id': 21268290, 'sub_port_id': 21268359, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855443, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'papier': {'main_port_id': 21268290, 'sub_port_id': 21268361, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855444, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'cartonnette': {'main_port_id': 21268290, 'sub_port_id': 21268362, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855445, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'kraft': {'main_port_id': 21268290, 'sub_port_id': 21268363, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855446, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'Carton_gris': {'main_port_id': 21268290, 'sub_port_id': 21268364, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855447, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'Carton_brun': {'main_port_id': 21268290, 'sub_port_id': 21268366, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855448, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'plastique': {'main_port_id': 21268290, 'sub_port_id': 21268367, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855449, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}, 'flou': {'main_port_id': 21268290, 'sub_port_id': 21268368, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13855450, 'last_updated_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 8, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 8, 52, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268362,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268346 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268363,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268347 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268364,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268348 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268366,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268349 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268367,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268350 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21268368,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21268351 lien utilise dans velours : https://www.fotonower.com/velours/21268354,21268356,21268357,21268358,21268359,21268361,21268362,21268363,21268364,21268366,21268367,21268368?tags=environnement,Teint_Dans_La_Masse,mal_croppe,metal,autre_refus,papier,cartonnette,kraft,Carton_gris,Carton_brun,plastique,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21268290]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896] map_info['map_portfolio_photo'] : {21268290: [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896]} final : False mtd_id 4302 list_pids : [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896] Looping around the photos to save general results len do output : 1 /21268290. 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, '2657348') ('4302', '21268290', '1342879061', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342879008', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878946', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878907', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878862', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878669', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878605', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878557', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878493', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878457', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878392', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878373', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878354', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878349', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878281', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878268', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878190', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878176', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878167', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342877925', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342877896', None, None, None, None, None, '2657348') 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', None, '21268290', "{'environnement': 21268340, 'Teint_Dans_La_Masse': 21268341, 'mal_croppe': 21268342, 'metal': 21268343, 'autre_refus': 21268344, 'papier': 21268345, 'cartonnette': 21268346, 'kraft': 21268347, 'Carton_gris': 21268348, 'Carton_brun': 21268349, 'plastique': 21268350, 'flou': 21268351}", None, None, None, None, '2657348'), ('4302', '21268290', '1342879061', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342879008', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878946', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878907', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878862', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878669', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878605', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878557', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878493', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878457', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878392', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878373', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878354', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878349', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878281', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878268', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878190', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878176', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878167', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342877925', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342877896', None, None, None, None, None, '2657348')] time used for this insertion : 0.015487432479858398 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.515458822250366 time spend to save output : 0.015997886657714844 total time spend for step 1 : 2.531456708908081 step2:final Tue Mar 11 08:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21268290) 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 21268290 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342877925,1342877896,1342878190,1342878176,1342878167,1342878281,1342878268,1342878392,1342878373,1342878354,1342878349,1342878669,1342878605,1342878557,1342878493,1342878457,1342879061,1342879008,1342878946,1342878907,1342878862); 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([21268290]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} new output for save of step final : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896] map_info['map_portfolio_photo'] : {21268290: [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896]} final : False mtd_id 4302 list_pids : [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896] Looping around the photos to save general results len do output : 21 /1342879061.Didn't retrieve data . /1342879008.Didn't retrieve data . /1342878946.Didn't retrieve data . /1342878907.Didn't retrieve data . /1342878862.Didn't retrieve data . /1342878669.Didn't retrieve data . /1342878605.Didn't retrieve data . /1342878557.Didn't retrieve data . /1342878493.Didn't retrieve data . /1342878457.Didn't retrieve data . /1342878392.Didn't retrieve data . /1342878373.Didn't retrieve data . /1342878354.Didn't retrieve data . /1342878349.Didn't retrieve data . /1342878281.Didn't retrieve data . /1342878268.Didn't retrieve data . /1342878190.Didn't retrieve data . /1342878176.Didn't retrieve data . /1342878167.Didn't retrieve data . /1342877925.Didn't retrieve data . /1342877896.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, '2657348') ('4302', '21268290', '1342879061', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342879008', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878946', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878907', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878862', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878669', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878605', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878557', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878493', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878457', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878392', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878373', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878354', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878349', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878281', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878268', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878190', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878176', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878167', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342877925', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342877896', None, None, None, None, None, '2657348') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '21268290', '1342879061', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342879008', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878946', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878907', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878862', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878669', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878605', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878557', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878493', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878457', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878392', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878373', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878354', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878349', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878281', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878268', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878190', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878176', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342878167', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342877925', '0.04031746768985403', None, None, None, None, '2657348'), ('4302', '21268290', '1342877896', '0.04031746768985403', None, None, None, None, '2657348')] time used for this insertion : 0.016931772232055664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.027032852172851562 time spend to save output : 0.0179135799407959 total time spend for step 2 : 0.04494643211364746 step3:velours_tree Tue Mar 11 08:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21268290: [{'environnement': 21268340, 'Teint_Dans_La_Masse': 21268341, 'mal_croppe': 21268342, 'metal': 21268343, 'autre_refus': 21268344, 'papier': 21268345, 'cartonnette': 21268346, 'kraft': 21268347, 'Carton_gris': 21268348, 'Carton_brun': 21268349, 'plastique': 21268350, 'flou': 21268351}]} input_args_next_step : {21268290: ()} output_args : {21268290: [{'environnement': 21268340, 'Teint_Dans_La_Masse': 21268341, 'mal_croppe': 21268342, 'metal': 21268343, 'autre_refus': 21268344, 'papier': 21268345, 'cartonnette': 21268346, 'kraft': 21268347, 'Carton_gris': 21268348, 'Carton_brun': 21268349, 'plastique': 21268350, 'flou': 21268351}]} args : 21268290 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 : ({'environnement': 21268340, 'Teint_Dans_La_Masse': 21268341, 'mal_croppe': 21268342, 'metal': 21268343, 'autre_refus': 21268344, 'papier': 21268345, 'cartonnette': 21268346, 'kraft': 21268347, 'Carton_gris': 21268348, 'Carton_brun': 21268349, 'plastique': 21268350, 'flou': 21268351},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21268290) 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([21268290]) 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.36695146560668945 time spend to save output : 5.5789947509765625e-05 total time spend for step 3 : 0.3670072555541992 step4:send_mail_cod Tue Mar 11 08:53:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} input_args_next_step : {1342879061: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342879061 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342879008 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878946 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878907 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878862 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878669 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878605 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878557 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878493 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878457 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878392 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878373 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878354 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878349 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878281 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878268 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878190 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878176 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342878167 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342877925 depend.output_id : 0 input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ()} output_args : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',)} args : 1342877896 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 : {21268290: [{'environnement': 21268340, 'Teint_Dans_La_Masse': 21268341, 'mal_croppe': 21268342, 'metal': 21268343, 'autre_refus': 21268344, 'papier': 21268345, 'cartonnette': 21268346, 'kraft': 21268347, 'Carton_gris': 21268348, 'Carton_brun': 21268349, 'plastique': 21268350, 'flou': 21268351}]} input_args_next_step : {1342879061: ('0.04031746768985403',), 1342879008: ('0.04031746768985403',), 1342878946: ('0.04031746768985403',), 1342878907: ('0.04031746768985403',), 1342878862: ('0.04031746768985403',), 1342878669: ('0.04031746768985403',), 1342878605: ('0.04031746768985403',), 1342878557: ('0.04031746768985403',), 1342878493: ('0.04031746768985403',), 1342878457: ('0.04031746768985403',), 1342878392: ('0.04031746768985403',), 1342878373: ('0.04031746768985403',), 1342878354: ('0.04031746768985403',), 1342878349: ('0.04031746768985403',), 1342878281: ('0.04031746768985403',), 1342878268: ('0.04031746768985403',), 1342878190: ('0.04031746768985403',), 1342878176: ('0.04031746768985403',), 1342878167: ('0.04031746768985403',), 1342877925: ('0.04031746768985403',), 1342877896: ('0.04031746768985403',), 21268290: ()} output_args : {21268290: [{'environnement': 21268340, 'Teint_Dans_La_Masse': 21268341, 'mal_croppe': 21268342, 'metal': 21268343, 'autre_refus': 21268344, 'papier': 21268345, 'cartonnette': 21268346, 'kraft': 21268347, 'Carton_gris': 21268348, 'Carton_brun': 21268349, 'plastique': 21268350, 'flou': 21268351}]} args : 21268290 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 :22, first value : ('0.04031746768985403',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21268290) 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 (1342879061,1342879008,1342878946,1342878907,1342878862,1342878669,1342878605,1342878557,1342878493,1342878457,1342878392,1342878373,1342878354,1342878349,1342878281,1342878268,1342878190,1342878176,1342878167,1342877925,1342877896) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342877896 begin to download photo : 1342878268 begin to download photo : 1342878392 begin to download photo : 1342878669 begin to download photo : 1342879061 download finish for photo 1342879061 download finish for photo 1342878669 begin to download photo : 1342878862 download finish for photo 1342878268 begin to download photo : 1342878281 download finish for photo 1342878392 begin to download photo : 1342878457 download finish for photo 1342877896 begin to download photo : 1342877925 download finish for photo 1342878862 begin to download photo : 1342878907 download finish for photo 1342878281 begin to download photo : 1342878349 download finish for photo 1342878457 begin to download photo : 1342878493 download finish for photo 1342877925 begin to download photo : 1342878167 download finish for photo 1342878907 begin to download photo : 1342878946 download finish for photo 1342878349 begin to download photo : 1342878354 download finish for photo 1342878493 begin to download photo : 1342878557 download finish for photo 1342878167 begin to download photo : 1342878176 download finish for photo 1342878946 begin to download photo : 1342879008 download finish for photo 1342878354 begin to download photo : 1342878373 download finish for photo 1342878557 begin to download photo : 1342878605 download finish for photo 1342878176 begin to download photo : 1342878190 download finish for photo 1342879008 download finish for photo 1342878373 download finish for photo 1342878605 download finish for photo 1342878190 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette212683421741679580/ imagette212683431741679580/ length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P21268290_11-03-2025_08_53_00.pdf 21268342 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=21268342 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212683421741679580 21268343 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=21268343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212683431741679580 21268344 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=21268344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342878478: '1741679332_779014_1342877925_e9edf6d7bd3ce9edee5a8aad14ee9a77_rle_crop_3704575314_0.png', 1342878480: '1741679332_779014_1342877896_5d6e1b584187d55961c714828b63b3e5_rle_crop_3704575424_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/983572916fa210b1cfe9fecb7fc9ec0d_8970922.png change filename to text .imagette212683441741679580/ imagette212683441741679580/1741679332_779014_1342877896_5d6e1b584187d55961c714828b63b3e5_rle_crop_3704575424_0.png.png imagette212683441741679580/1741679332_779014_1342877925_e9edf6d7bd3ce9edee5a8aad14ee9a77_rle_crop_3704575314_0.png.png imagette212683461741679580/ imagette212683471741679580/ imagette212683501741679580/ imagette212683511741679580/ imagette212683411741679580/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/cc88e9746618ef997ebdb61b7dbda199_32204845.png imagette212683441741679580 21268346 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=21268346 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212683461741679580 21268347 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=21268347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212683471741679580 21268350 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=21268350 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212683501741679580 21268351 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=21268351 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212683511741679580 21268341 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=21268341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212683411741679580 21268348 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=21268348 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342878486: '1741679332_779014_1342877896_5d6e1b584187d55961c714828b63b3e5_rle_crop_3704575418_0.png'} change filename to text .imagette212683481741679580/ imagette212683481741679580/1741679332_779014_1342877896_5d6e1b584187d55961c714828b63b3e5_rle_crop_3704575418_0.png.png imagette212683491741679580/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/065c2f6d6ba9c67a7251839b390eb2f1_78092571.png imagette212683481741679580 21268349 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=21268349 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212683491741679580 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21268290 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21268354,21268356,21268357,21268358,21268359,21268361,21268362,21268363,21268364,21268366,21268367,21268368?tags=environnement,Teint_Dans_La_Masse,mal_croppe,metal,autre_refus,papier,cartonnette,kraft,Carton_gris,Carton_brun,plastique,flou your option no_mail is active, we will not send the real mail to your client args[1342879061] : ('0.04031746768985403',) no score found for photo 1342879061 We are sending mail with results at report@fotonower.com args[1342879008] : ('0.04031746768985403',) no score found for photo 1342879008 We are sending mail with results at report@fotonower.com args[1342878946] : ('0.04031746768985403',) no score found for photo 1342878946 We are sending mail with results at report@fotonower.com args[1342878907] : ('0.04031746768985403',) no score found for photo 1342878907 We are sending mail with results at report@fotonower.com args[1342878862] : ('0.04031746768985403',) no score found for photo 1342878862 We are sending mail with results at report@fotonower.com args[1342878669] : ('0.04031746768985403',) no score found for photo 1342878669 We are sending mail with results at report@fotonower.com args[1342878605] : ('0.04031746768985403',) no score found for photo 1342878605 We are sending mail with results at report@fotonower.com args[1342878557] : ('0.04031746768985403',) no score found for photo 1342878557 We are sending mail with results at report@fotonower.com args[1342878493] : ('0.04031746768985403',) no score found for photo 1342878493 We are sending mail with results at report@fotonower.com args[1342878457] : ('0.04031746768985403',) no score found for photo 1342878457 We are sending mail with results at report@fotonower.com args[1342878392] : ('0.04031746768985403',) no score found for photo 1342878392 We are sending mail with results at report@fotonower.com args[1342878373] : ('0.04031746768985403',) no score found for photo 1342878373 We are sending mail with results at report@fotonower.com args[1342878354] : ('0.04031746768985403',) no score found for photo 1342878354 We are sending mail with results at report@fotonower.com args[1342878349] : ('0.04031746768985403',) no score found for photo 1342878349 We are sending mail with results at report@fotonower.com args[1342878281] : ('0.04031746768985403',) no score found for photo 1342878281 We are sending mail with results at report@fotonower.com args[1342878268] : ('0.04031746768985403',) no score found for photo 1342878268 We are sending mail with results at report@fotonower.com args[1342878190] : ('0.04031746768985403',) no score found for photo 1342878190 We are sending mail with results at report@fotonower.com args[1342878176] : ('0.04031746768985403',) no score found for photo 1342878176 We are sending mail with results at report@fotonower.com args[1342878167] : ('0.04031746768985403',) no score found for photo 1342878167 We are sending mail with results at report@fotonower.com args[1342877925] : ('0.04031746768985403',) no score found for photo 1342877925 We are sending mail with results at report@fotonower.com args[1342877896] : ('0.04031746768985403',) no score found for photo 1342877896 We are sending mail with results at report@fotonower.com refus_total : 0.04031746768985403 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=21268290 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_P21268290_11-03-2025_08_53_00.pdf results_Auto_P21268290_11-03-2025_08_53_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21268290_11-03-2025_08_53_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21268290','results_Auto_P21268290_11-03-2025_08_53_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21268290_11-03-2025_08_53_00.pdf','pdf','','0.19','0.04031746768985403') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21268290]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896] map_info['map_portfolio_photo'] : {21268290: [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896]} final : False mtd_id 4302 list_pids : [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896] 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, '2657348') ('4302', '21268290', '1342879061', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342879008', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878946', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878907', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878862', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878669', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878605', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878557', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878493', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878457', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878392', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878373', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878354', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878349', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878281', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878268', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878190', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878176', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878167', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342877925', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342877896', None, None, None, None, None, '2657348') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21268290', '1342879061', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342879008', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878946', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878907', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878862', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878669', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878605', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878557', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878493', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878457', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878392', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878373', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878354', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878349', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878281', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878268', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878190', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878176', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878167', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342877925', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342877896', None, None, None, None, None, '2657348')] time used for this insertion : 0.014370203018188477 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.224452495574951 time spend to save output : 0.014626741409301758 total time spend for step 4 : 2.239079236984253 step5:split_time_score Tue Mar 11 08:53:02 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 : ['21268290'] 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 : [('21268290',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21268290) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342879061: {'path': 'temp/1741679580_3887446_1342879061_cd77055bfce9be836b1e4e765dc109f1.jpg', 'extension': 'jpg'}, 1342878669: {'path': 'temp/1741679580_3887446_1342878669_23ac084f28aaacdf5277aa77e845ffb4.jpg', 'extension': 'jpg'}, 1342878862: {'path': 'temp/1741679580_3887446_1342878862_eb212f4414f651ca3f915597c03beb5c.jpg', 'extension': 'jpg'}, 1342878907: {'path': 'temp/1741679580_3887446_1342878907_fe765ab0114e77dd6df3796b68a908f7.jpg', 'extension': 'jpg'}, 1342878946: {'path': 'temp/1741679580_3887446_1342878946_0a14e715369e4c6a36337a70b6588a6a.jpg', 'extension': 'jpg'}, 1342879008: {'path': 'temp/1741679580_3887446_1342879008_145ff166c87ce15aacf6b255a6e36efe.jpg', 'extension': 'jpg'}, 1342878268: {'path': 'temp/1741679580_3887446_1342878268_0fd9375bb03efe0826ee84484e895266.jpg', 'extension': 'jpg'}, 1342878281: {'path': 'temp/1741679580_3887446_1342878281_08d8c757fb4dfe6f5882536712bed8e4.jpg', 'extension': 'jpg'}, 1342878349: {'path': 'temp/1741679580_3887446_1342878349_9219280faffb3454004ffb6e8c6b248a.jpg', 'extension': 'jpg'}, 1342878354: {'path': 'temp/1741679580_3887446_1342878354_24ef49fb2922a78edc41495732c8090e.jpg', 'extension': 'jpg'}, 1342878373: {'path': 'temp/1741679580_3887446_1342878373_08bf8a8f0cacd8c75a0962130580772f.jpg', 'extension': 'jpg'}, 1342878392: {'path': 'temp/1741679580_3887446_1342878392_0c48984ac3ca98909f45b985d3befb9e.jpg', 'extension': 'jpg'}, 1342878457: {'path': 'temp/1741679580_3887446_1342878457_10bdd6187c3fb02dbfde060f6939e8f5.jpg', 'extension': 'jpg'}, 1342878493: {'path': 'temp/1741679580_3887446_1342878493_994dc3a357eac9ae177f47d32e1cda4a.jpg', 'extension': 'jpg'}, 1342878557: {'path': 'temp/1741679580_3887446_1342878557_75d5ef44ea8205b4e49a6394c39eb64c.jpg', 'extension': 'jpg'}, 1342878605: {'path': 'temp/1741679580_3887446_1342878605_f5c2596f353c4608a57f77fa4efd9ee0.jpg', 'extension': 'jpg'}, 1342877896: {'path': 'temp/1741679580_3887446_1342877896_5d6e1b584187d55961c714828b63b3e5.jpg', 'extension': 'jpg'}, 1342877925: {'path': 'temp/1741679580_3887446_1342877925_e9edf6d7bd3ce9edee5a8aad14ee9a77.jpg', 'extension': 'jpg'}, 1342878167: {'path': 'temp/1741679580_3887446_1342878167_296c2113ee338c6b07fcb5ed91317f6f.jpg', 'extension': 'jpg'}, 1342878176: {'path': 'temp/1741679580_3887446_1342878176_2aa22765e9c1b4d4caf09b999f0b9a66.jpg', 'extension': 'jpg'}, 1342878190: {'path': 'temp/1741679580_3887446_1342878190_cb1feb7c0d8c552010528e21bc7129e8.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 = 21268290; (('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 = 21268290 group by h (('08', 21),) 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=21268290 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 (21268290) 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 (21268290) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21268290 Nombre de photos uploadées : 21 / 23040 (0%) 11032025 21268290 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 11032025 21268290 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1342877925, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e9edf6d7bd3ce9edee5a8aad14ee9a77.jpg', 'username': None, 'uploaded_at': 1741679198, 'text': 'image_11032025_08_45_35_10135.jpg'}, {'photo_id': 1342877896, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5d6e1b584187d55961c714828b63b3e5.jpg', 'username': None, 'uploaded_at': 1741679198, 'text': 'image_11032025_08_45_44_9125.jpg'}, {'photo_id': 1342878190, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/cb1feb7c0d8c552010528e21bc7129e8.jpg', 'username': None, 'uploaded_at': 1741679257, 'text': 'image_11032025_08_45_54_10139.jpg'}, {'photo_id': 1342878176, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2aa22765e9c1b4d4caf09b999f0b9a66.jpg', 'username': None, 'uploaded_at': 1741679257, 'text': 'image_11032025_08_46_15_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0013580322265625e-05 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011372566223144531 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21268290, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0216829776763916 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665479, 'mtr_portfolio_id': 21265740, 'dashboard_result_id': 9339216, '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_P21265740_11-03-2025_08_20_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21265765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21265766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21265767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21265768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21265769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21265770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21265771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21265772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21265773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21265774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21265775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21265776, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665479, 'mtr_portfolio_id': 21266677, 'dashboard_result_id': 9339217, '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_P21266677_11-03-2025_08_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21266680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21266681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21266682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21266683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21266684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21266685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21266686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21266687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21266688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21266689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21266690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21266691, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665479, 'mtr_portfolio_id': 21267494, 'dashboard_result_id': 9339218, '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_P21267494_11-03-2025_08_50_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21267519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21267520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21267521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21267522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21267523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21267524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21267525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21267526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21267527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21267528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21267529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21267530, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665479, 'mtr_portfolio_id': 21268290, 'dashboard_result_id': 9339219, '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 = 21265740 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': 2657206, 'mtr_portfolio_id': 21265740, 'created_at': datetime.datetime(2025, 3, 11, 8, 20), 'result': '0.059354371774589625', 'result_long': None, 'result_double': None}] Qualite : 0.059354371774589625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21265740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21265740_11-03-2025_08_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21265740 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_P21265740_11-03-2025_08_20_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21265765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21265766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21265767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21265768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21265769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21265770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21265771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21265772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21265773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21265774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21265775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21265776, 'pht': 3726}}" where mtr_portfolio_id = 21265740 and dashboard_run_id = 1665479 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`=21265740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9339216, 0.059354371774589625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21265740_11-03-2025_08_20_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21265765, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21265766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21265767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21265768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21265769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21265770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21265771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21265772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21265773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21265774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21265775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21265776, '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 = 21266677 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': 2657239, 'mtr_portfolio_id': 21266677, 'created_at': datetime.datetime(2025, 3, 11, 8, 33, 3), 'result': '0.10244795674945671', 'result_long': None, 'result_double': None}] Qualite : 0.10244795674945671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21266677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21266677_11-03-2025_08_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21266677 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_P21266677_11-03-2025_08_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21266680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21266681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21266682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21266683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21266684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21266685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21266686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21266687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21266688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21266689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21266690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21266691, 'pht': 3726}}" where mtr_portfolio_id = 21266677 and dashboard_run_id = 1665479 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`=21266677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9339217, 0.10244795674945671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21266677_11-03-2025_08_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21266680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21266681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21266682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21266683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21266684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21266685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21266686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21266687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21266688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21266689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21266690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21266691, '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 = 21267494 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': 2657304, 'mtr_portfolio_id': 21267494, 'created_at': datetime.datetime(2025, 3, 11, 8, 49, 59), 'result': '0.07430089774800909', 'result_long': None, 'result_double': None}] Qualite : 0.07430089774800909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21267494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21267494_11-03-2025_08_50_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21267494 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_P21267494_11-03-2025_08_50_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21267519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21267520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21267521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21267522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21267523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21267524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21267525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21267526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21267527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21267528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21267529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21267530, 'pht': 3726}}" where mtr_portfolio_id = 21267494 and dashboard_run_id = 1665479 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`=21267494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9339218, 0.07430089774800909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21267494_11-03-2025_08_50_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21267519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21267520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21267521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21267522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21267523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21267524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21267525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21267526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21267527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21267528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21267529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21267530, '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 = 21268290 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': 2657348, 'mtr_portfolio_id': 21268290, 'created_at': datetime.datetime(2025, 3, 11, 8, 52, 59), 'result': '0.04031746768985403', 'result_long': None, 'result_double': None}] Qualite : 0.04031746768985403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21268290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21268290_11-03-2025_08_53_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21268290 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_P21268290_11-03-2025_08_53_00.pdf'}" where mtr_portfolio_id = 21268290 and dashboard_run_id = 1665479 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`=21268290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9339219, 0.04031746768985403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21268290_11-03-2025_08_53_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21268340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21268341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21268342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21268343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21268344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21268345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21268346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21268347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21268348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21268349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21268350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21268351, '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 (21265740,21266677,21267494,21268290) result : ((1342865840,), (1342865873,), (1342866658,), (1342866704,), (1342867389,), (1342867394,), (1342867433,), (1342867462,), (1342867482,), (1342867518,), (1342867844,), (1342867873,), (1342867920,), (1342868002,), (1342868688,), (1342868761,), (1342868846,), (1342868881,), (1342868927,), (1342869234,), (1342869280,), (1342869309,), (1342869341,), (1342869385,), (1342869763,), (1342869803,), (1342869839,), (1342869865,), (1342869890,), (1342870276,), (1342870280,), (1342870285,), (1342870289,), (1342870336,), (1342870341,), (1342870348,), (1342870355,), (1342870361,), (1342870403,), (1342870408,), (1342870426,), (1342870430,), (1342870444,), (1342870456,), (1342870554,), (1342870595,), (1342870634,), (1342870822,), (1342870851,), (1342870868,), (1342870915,), (1342870943,), (1342871007,), (1342871225,), (1342871235,), (1342871261,), (1342871298,), (1342871588,), (1342871773,), (1342871948,), (1342871993,), (1342872062,), (1342872536,), (1342872460,), (1342872517,), (1342872698,), (1342872728,), (1342872732,), (1342872734,), (1342872738,), (1342872741,), (1342872773,), (1342872779,), (1342872801,), (1342872850,), (1342872921,), (1342872981,), (1342873003,), (1342873014,), (1342873017,), (1342873020,), (1342873256,), (1342873276,), (1342873303,), (1342873322,), (1342873344,), (1342873375,), (1342873379,), (1342873431,), (1342873445,), (1342874003,), (1342874018,), (1342874064,), (1342874069,), (1342874072,), (1342874199,), (1342874238,), (1342874605,), (1342874657,), (1342874678,), (1342874707,), (1342874949,), (1342874957,), (1342874969,), (1342874974,), (1342874990,), (1342875021,), (1342875026,), (1342875036,), (1342875041,), (1342875046,), (1342875189,), (1342875068,), (1342875093,), (1342875172,), (1342875345,), (1342875780,), (1342875783,), (1342875793,), (1342875803,), (1342876010,), (1342876018,), (1342876028,), (1342876070,), (1342876076,), (1342876082,), (1342876088,), (1342876137,), (1342876149,), (1342876155,), (1342876172,), (1342876243,), (1342876249,), (1342876281,), (1342876286,), (1342876300,), (1342876371,), (1342876379,), (1342876384,), (1342876446,), (1342876458,), (1342876500,), (1342876523,), (1342876532,), (1342876556,), (1342876567,), (1342876571,), (1342876578,), (1342876584,), (1342876635,), (1342876639,), (1342876647,), (1342876803,), (1342876809,), (1342876814,), (1342876820,), (1342876922,), (1342876975,), (1342877023,), (1342877040,), (1342877045,), (1342877100,), (1342877124,), (1342877185,), (1342877207,), (1342877527,), (1342877564,), (1342877595,), (1342877618,), (1342877948,), (1342877896,), (1342877925,), (1342878167,), (1342878176,), (1342878190,), (1342878268,), (1342878281,), (1342878349,), (1342878354,), (1342878373,), (1342878392,), (1342878457,), (1342878493,), (1342878557,), (1342878605,), (1342878669,), (1342878862,), (1342878907,), (1342878946,), (1342879008,), (1342879061,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21268290]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896] map_info['map_portfolio_photo'] : {21268290: [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896]} final : True mtd_id 4302 list_pids : [1342879061, 1342879008, 1342878946, 1342878907, 1342878862, 1342878669, 1342878605, 1342878557, 1342878493, 1342878457, 1342878392, 1342878373, 1342878354, 1342878349, 1342878281, 1342878268, 1342878190, 1342878176, 1342878167, 1342877925, 1342877896] Looping around the photos to save general results len do output : 1 /21268290Didn'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, '2657348') ('4302', '21268290', '1342879061', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342879008', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878946', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878907', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878862', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878669', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878605', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878557', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878493', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878457', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878392', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878373', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878354', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878349', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878281', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878268', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878190', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878176', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342878167', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342877925', None, None, None, None, None, '2657348') ('4302', None, None, None, None, None, None, None, '2657348') ('4302', '21268290', '1342877896', None, None, None, None, None, '2657348') 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', None, '21268290', 'None', None, None, None, None, '2657348'), ('4302', '21268290', '1342879061', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342879008', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878946', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878907', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878862', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878669', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878605', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878557', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878493', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878457', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878392', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878373', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878354', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878349', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878281', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878268', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878190', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878176', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342878167', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342877925', None, None, None, None, None, '2657348'), ('4302', '21268290', '1342877896', None, None, None, None, None, '2657348')] time used for this insertion : 0.01520085334777832 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33557915687561035 time spend to save output : 0.015549421310424805 total time spend for step 5 : 0.35112857818603516 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 (2657348) 2.40user 2.38system 0:08.24elapsed 58%CPU (0avgtext+0avgdata 161824maxresident)k 28416inputs+13280outputs (110major+74713minor)pagefaults 0swaps