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 : 3631584 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 (2721869) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2721869) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032110 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2721869'] with mtr_portfolio_ids : ['22032110'] and first list_photo_ids : [] new path : /proc/3631584/ Name: python3 Umask: 0002 State: R (running) Tgid: 3631584 Ngid: 0 Pid: 3631584 PPid: 3631583 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3631584 NSpid: 3631584 NSpgid: 3628127 NSsid: 3628127 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99500 kB VmRSS: 99500 kB RssAnon: 59764 kB RssFile: 39736 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 64 nonvoluntary_ctxt_switches: 167 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3631584', 'Ngid': '0', 'Pid': '3631584', 'PPid': '3631583', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3631584', 'NSpid': '3631584', 'NSpgid': '3628127', 'NSsid': '3628127', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99500 kB', 'VmRSS': '99500 kB', 'RssAnon': '59764 kB', 'RssFile': '39736 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '64', 'nonvoluntary_ctxt_switches': '167'} ('datou_batch_current', '3631584', '1106844', '0', '1106844', '865592', '99500', b'', 'marlene', '2721869') 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 (22032110) 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 (2721869 ) ) 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 (22032110) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349903052, 'portfolio_id': 22032110}, {'photo_id': 1349903049, 'portfolio_id': 22032110}, {'photo_id': 1349903047, 'portfolio_id': 22032110}, {'photo_id': 1349903044, 'portfolio_id': 22032110}, {'photo_id': 1349903040, 'portfolio_id': 22032110}, {'photo_id': 1349903038, 'portfolio_id': 22032110}, {'photo_id': 1349903036, 'portfolio_id': 22032110}, {'photo_id': 1349903034, 'portfolio_id': 22032110}, {'photo_id': 1349903030, 'portfolio_id': 22032110}, {'photo_id': 1349903029, 'portfolio_id': 22032110}, {'photo_id': 1349902951, 'portfolio_id': 22032110}, {'photo_id': 1349902946, 'portfolio_id': 22032110}, {'photo_id': 1349902944, 'portfolio_id': 22032110}, {'photo_id': 1349902936, 'portfolio_id': 22032110}, {'photo_id': 1349902927, 'portfolio_id': 22032110}, {'photo_id': 1349902895, 'portfolio_id': 22032110}, {'photo_id': 1349902749, 'portfolio_id': 22032110}, {'photo_id': 1349902725, 'portfolio_id': 22032110}, {'photo_id': 1349902701, 'portfolio_id': 22032110}, {'photo_id': 1349902588, 'portfolio_id': 22032110}, {'photo_id': 1349902576, 'portfolio_id': 22032110}, {'photo_id': 1349902561, 'portfolio_id': 22032110}, {'photo_id': 1349902532, 'portfolio_id': 22032110}] map_portfolio_id_photo_id: {22032110: [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532]} ##### 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.014783620834350586 #### 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 Apr 15 14:51:29 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 (22032110) 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 : 22032110 get user id for portfolio 22032110 get sub ptf for main ptf 22032110, type 3726 and hashtags ['Carton_gris', 'flou', 'kraft', 'mal_croppe', 'papier', 'metal', 'environnement', 'Carton_brun', 'plastique', 'Teint_Dans_La_Masse', 'cartonnette', 'autre_refus'] 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`=22032110 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','kraft','mal_croppe','papier','metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','cartonnette','autre_refus')) 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`=22032110 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','kraft','mal_croppe','papier','metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__15042025_14_45_14_10142_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__15042025_14_45_14_10142_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_3726_autre_refus_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)[[22032110, 22032151, 3726, 0.5, 2107753020, 979], [22032110, 22032152, 3726, 0.5, 492777938, 979], [22032110, 22032153, 3726, 0.5, 493202403, 979], [22032110, 22032154, 3726, 0.5, 2107755527, 979], [22032110, 22032155, 3726, 0.5, 492668766, 979], [22032110, 22032156, 3726, 0.5, 492628673, 979], [22032110, 22032157, 3726, 0.5, 493012381, 979], [22032110, 22032158, 3726, 0.5, 2107753024, 979], [22032110, 22032159, 3726, 0.5, 492725882, 979], [22032110, 22032160, 3726, 0.5, 2107752385, 979], [22032110, 22032161, 3726, 0.5, 702398920, 979], [22032110, 22032162, 3726, 0.5, 2107752406, 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`=22032110 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','kraft','mal_croppe','papier','metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','cartonnette','autre_refus')) 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`=22032110 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','kraft','mal_croppe','papier','metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22032110, 'sub_port_id': 22032151, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524768, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'flou': {'main_port_id': 22032110, 'sub_port_id': 22032152, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524769, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'kraft': {'main_port_id': 22032110, 'sub_port_id': 22032153, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524770, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'mal_croppe': {'main_port_id': 22032110, 'sub_port_id': 22032154, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524771, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'papier': {'main_port_id': 22032110, 'sub_port_id': 22032155, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524772, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'metal': {'main_port_id': 22032110, 'sub_port_id': 22032156, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524773, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'environnement': {'main_port_id': 22032110, 'sub_port_id': 22032157, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524774, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'Carton_brun': {'main_port_id': 22032110, 'sub_port_id': 22032158, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524775, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'plastique': {'main_port_id': 22032110, 'sub_port_id': 22032159, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524776, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22032110, 'sub_port_id': 22032160, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524777, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'cartonnette': {'main_port_id': 22032110, 'sub_port_id': 22032161, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524778, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}, 'autre_refus': {'main_port_id': 22032110, 'sub_port_id': 22032162, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524779, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22032151 , 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=22032110 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 (22032151) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032152 , 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=22032110 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 (22032152) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032153 , 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=22032110 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 (22032153) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032154 , 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=22032110 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 (22032154) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032155 , 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=22032110 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 (22032155) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032156 , 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=22032110 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 (22032156) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032157 , 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=22032110 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 (22032157) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032158 , 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=22032110 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 (22032158) result : ((1349903151,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032159 , 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=22032110 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 (22032159) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032160 , 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=22032110 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 (22032160) result : ((1349903145,), (1349903146,), (1349903147,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032161 , 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=22032110 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 (22032161) result : ((1349903148,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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 22032162 , 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=22032110 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 (22032162) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032110) result : ((1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) 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`=22032110 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','kraft','mal_croppe','papier','metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','cartonnette','autre_refus')) 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`=22032110 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','kraft','mal_croppe','papier','metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__15042025_14_45_14_10142_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__15042025_14_45_14_10142_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_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__15042025_14_45_14_10142_4417_autre_refus_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)[[22032110, 22032163, 4417, 0.5, 2107753020, 979], [22032110, 22032164, 4417, 0.5, 492777938, 979], [22032110, 22032165, 4417, 0.5, 493202403, 979], [22032110, 22032166, 4417, 0.5, 2107755527, 979], [22032110, 22032167, 4417, 0.5, 492668766, 979], [22032110, 22032168, 4417, 0.5, 492628673, 979], [22032110, 22032169, 4417, 0.5, 493012381, 979], [22032110, 22032170, 4417, 0.5, 2107753024, 979], [22032110, 22032171, 4417, 0.5, 492725882, 979], [22032110, 22032172, 4417, 0.5, 2107752385, 979], [22032110, 22032173, 4417, 0.5, 702398920, 979], [22032110, 22032174, 4417, 0.5, 2107752406, 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`=22032110 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','kraft','mal_croppe','papier','metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','cartonnette','autre_refus')) 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`=22032110 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','kraft','mal_croppe','papier','metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','cartonnette','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22032110, 'sub_port_id': 22032163, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524780, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'flou': {'main_port_id': 22032110, 'sub_port_id': 22032164, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524781, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'kraft': {'main_port_id': 22032110, 'sub_port_id': 22032165, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524782, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'mal_croppe': {'main_port_id': 22032110, 'sub_port_id': 22032166, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524783, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'papier': {'main_port_id': 22032110, 'sub_port_id': 22032167, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524784, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'metal': {'main_port_id': 22032110, 'sub_port_id': 22032168, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524785, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'environnement': {'main_port_id': 22032110, 'sub_port_id': 22032169, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524786, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'Carton_brun': {'main_port_id': 22032110, 'sub_port_id': 22032170, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524787, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'plastique': {'main_port_id': 22032110, 'sub_port_id': 22032171, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524788, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 22032110, 'sub_port_id': 22032172, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524789, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'cartonnette': {'main_port_id': 22032110, 'sub_port_id': 22032173, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524790, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}, 'autre_refus': {'main_port_id': 22032110, 'sub_port_id': 22032174, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524791, 'last_updated_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 14, 51, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 14, 51, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032151 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032152 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032165,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032153 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032166,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032154 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032155 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032168,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032156 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032169,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032157 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032158 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032171,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032159 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032172,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032160 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032173,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032161 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032174,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032162 lien utilise dans velours : https://www.fotonower.com/velours/22032163,22032164,22032165,22032166,22032167,22032168,22032169,22032170,22032171,22032172,22032173,22032174?tags=Carton_gris,flou,kraft,mal_croppe,papier,metal,environnement,Carton_brun,plastique,Teint_Dans_La_Masse,cartonnette,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22032110]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532] map_info['map_portfolio_photo'] : {22032110: [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532]} final : False mtd_id 4302 list_pids : [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532] Looping around the photos to save general results len do output : 1 /22032110. 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, '2721869') ('4302', '22032110', '1349903052', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903049', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903047', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903044', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903040', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903038', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903036', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903034', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903030', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903029', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902951', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902946', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902944', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902936', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902927', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902895', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902749', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902725', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902701', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902588', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902576', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902561', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902532', None, None, None, None, None, '2721869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '22032110', "{'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162}", None, None, None, None, '2721869'), ('4302', '22032110', '1349903052', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903049', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903047', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903044', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903040', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903038', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903036', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903034', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903030', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903029', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902951', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902946', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902944', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902936', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902927', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902895', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902749', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902725', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902701', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902588', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902576', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902561', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902532', None, None, None, None, None, '2721869')] time used for this insertion : 0.015991926193237305 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.97243070602417 time spend to save output : 0.016461610794067383 total time spend for step 1 : 1.9888923168182373 step2:final Tue Apr 15 14:51:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22032110) 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 22032110 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349902588,1349902576,1349902561,1349902532,1349902749,1349902725,1349902701,1349902951,1349902946,1349902944,1349902936,1349902927,1349902895,1349903049,1349903052,1349903044,1349903047,1349903038,1349903040,1349903034,1349903036,1349903029,1349903030); 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([22032110]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} new output for save of step final : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532] map_info['map_portfolio_photo'] : {22032110: [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532]} final : False mtd_id 4302 list_pids : [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532] Looping around the photos to save general results len do output : 23 /1349903052.Didn't retrieve data . /1349903049.Didn't retrieve data . /1349903047.Didn't retrieve data . /1349903044.Didn't retrieve data . /1349903040.Didn't retrieve data . /1349903038.Didn't retrieve data . /1349903036.Didn't retrieve data . /1349903034.Didn't retrieve data . /1349903030.Didn't retrieve data . /1349903029.Didn't retrieve data . /1349902951.Didn't retrieve data . /1349902946.Didn't retrieve data . /1349902944.Didn't retrieve data . /1349902936.Didn't retrieve data . /1349902927.Didn't retrieve data . /1349902895.Didn't retrieve data . /1349902749.Didn't retrieve data . /1349902725.Didn't retrieve data . /1349902701.Didn't retrieve data . /1349902588.Didn't retrieve data . /1349902576.Didn't retrieve data . /1349902561.Didn't retrieve data . /1349902532.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, '2721869') ('4302', '22032110', '1349903052', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903049', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903047', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903044', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903040', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903038', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903036', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903034', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903030', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903029', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902951', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902946', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902944', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902936', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902927', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902895', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902749', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902725', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902701', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902588', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902576', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902561', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902532', None, None, None, None, None, '2721869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 69 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', '22032110', '1349903052', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349903049', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349903047', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349903044', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349903040', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349903038', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349903036', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349903034', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349903030', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349903029', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902951', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902946', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902944', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902936', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902927', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902895', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902749', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902725', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902701', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902588', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902576', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902561', '0.017809580753475194', None, None, None, None, '2721869'), ('4302', '22032110', '1349902532', '0.017809580753475194', None, None, None, None, '2721869')] time used for this insertion : 0.01917576789855957 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.027982711791992188 time spend to save output : 0.020437002182006836 total time spend for step 2 : 0.04841971397399902 step3:velours_tree Tue Apr 15 14:51:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22032110: [{'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162}]} input_args_next_step : {22032110: ()} output_args : {22032110: [{'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162}]} args : 22032110 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22032110) 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([22032110]) 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.5593209266662598 time spend to save output : 6.985664367675781e-05 total time spend for step 3 : 0.5593907833099365 step4:send_mail_cod Tue Apr 15 14:51:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} input_args_next_step : {1349903052: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349903052 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349903049 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349903047 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349903044 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349903040 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349903038 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349903036 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349903034 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349903030 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349903029 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902951 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902946 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902944 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902936 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902927 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902895 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902749 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902725 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902701 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902588 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902576 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902561 depend.output_id : 0 input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ()} output_args : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',)} args : 1349902532 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 : {22032110: [{'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162}]} input_args_next_step : {1349903052: ('0.017809580753475194',), 1349903049: ('0.017809580753475194',), 1349903047: ('0.017809580753475194',), 1349903044: ('0.017809580753475194',), 1349903040: ('0.017809580753475194',), 1349903038: ('0.017809580753475194',), 1349903036: ('0.017809580753475194',), 1349903034: ('0.017809580753475194',), 1349903030: ('0.017809580753475194',), 1349903029: ('0.017809580753475194',), 1349902951: ('0.017809580753475194',), 1349902946: ('0.017809580753475194',), 1349902944: ('0.017809580753475194',), 1349902936: ('0.017809580753475194',), 1349902927: ('0.017809580753475194',), 1349902895: ('0.017809580753475194',), 1349902749: ('0.017809580753475194',), 1349902725: ('0.017809580753475194',), 1349902701: ('0.017809580753475194',), 1349902588: ('0.017809580753475194',), 1349902576: ('0.017809580753475194',), 1349902561: ('0.017809580753475194',), 1349902532: ('0.017809580753475194',), 22032110: ()} output_args : {22032110: [{'Carton_gris': 22032151, 'flou': 22032152, 'kraft': 22032153, 'mal_croppe': 22032154, 'papier': 22032155, 'metal': 22032156, 'environnement': 22032157, 'Carton_brun': 22032158, 'plastique': 22032159, 'Teint_Dans_La_Masse': 22032160, 'cartonnette': 22032161, 'autre_refus': 22032162}]} args : 22032110 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 :24, first value : ('0.017809580753475194',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22032110) 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 (1349903052,1349903049,1349903047,1349903044,1349903040,1349903038,1349903036,1349903034,1349903030,1349903029,1349902951,1349902946,1349902944,1349902936,1349902927,1349902895,1349902749,1349902725,1349902701,1349902588,1349902576,1349902561,1349902532) Found this number of photos: 23 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349902532 begin to download photo : 1349902725 begin to download photo : 1349902944 begin to download photo : 1349903034 begin to download photo : 1349903047 download finish for photo 1349902725 begin to download photo : 1349902749 download finish for photo 1349902532 begin to download photo : 1349902561 download finish for photo 1349903047 begin to download photo : 1349903049 download finish for photo 1349903034 begin to download photo : 1349903036 download finish for photo 1349902944 begin to download photo : 1349902946 download finish for photo 1349902749 begin to download photo : 1349902895 download finish for photo 1349902561 begin to download photo : 1349902576 download finish for photo 1349903036 begin to download photo : 1349903038 download finish for photo 1349902946 begin to download photo : 1349902951 download finish for photo 1349903049 begin to download photo : 1349903052 download finish for photo 1349902895 begin to download photo : 1349902927 download finish for photo 1349902576 begin to download photo : 1349902588 download finish for photo 1349903038 begin to download photo : 1349903040 download finish for photo 1349902951 begin to download photo : 1349903029 download finish for photo 1349903052 download finish for photo 1349902927 begin to download photo : 1349902936 download finish for photo 1349903040 begin to download photo : 1349903044 download finish for photo 1349902588 begin to download photo : 1349902701 download finish for photo 1349903029 begin to download photo : 1349903030 download finish for photo 1349902936 download finish for photo 1349902701 download finish for photo 1349903044 download finish for photo 1349903030 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220321521744721492/ imagette220321531744721492/ imagette220321541744721492/ imagette220321561744721492/ imagette220321591744721492/ length of list_filenames : 23 ; length of list_pids : 23 ; length of list_args : 23 results_Auto_P22032110_15-04-2025_14_51_32.pdf 22032152 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=22032152 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220321521744721492 22032153 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=22032153 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220321531744721492 22032154 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=22032154 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220321541744721492 22032156 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=22032156 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220321561744721492 22032159 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=22032159 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220321591744721492 22032161 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=22032161 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349903148: '1744721381_887960_1349902749_fe323c06017e1467ae4d3537e4c034ad_rle_crop_3746701429_0.png'} change filename to text .imagette220321611744721492/ imagette220321611744721492/1744721381_887960_1349902749_fe323c06017e1467ae4d3537e4c034ad_rle_crop_3746701429_0.png.png imagette220321621744721492/ imagette220321511744721492/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a11afcb9776eb3450420d693fe3847df_63972499.png imagette220321611744721492 22032162 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=22032162 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220321621744721492 22032151 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=22032151 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220321511744721492 22032158 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=22032158 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349903151: '1744721381_887960_1349902588_2ba6a878f27891a2738b4fb10028e517_rle_crop_3746701444_0.png'} change filename to text .imagette220321581744721492/ imagette220321581744721492/1744721381_887960_1349902588_2ba6a878f27891a2738b4fb10028e517_rle_crop_3746701444_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/7dbb40b8603382fa25543d3fdd5d207d_87239561.png imagette220321581744721492 22032160 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=22032160 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349903145: '1744721381_887960_1349902749_fe323c06017e1467ae4d3537e4c034ad_rle_crop_3746701432_0.png', 1349903146: '1744721381_887960_1349902588_2ba6a878f27891a2738b4fb10028e517_rle_crop_3746701446_0.png', 1349903147: '1744721381_887960_1349902576_554374420dbe849b1848af685336f755_rle_crop_3746701455_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/3fb816ebbef101b3e96d8412a3e78bd6_4361599.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b6a34ac06819c52bcc2af5c2beccf031_92625921.png change filename to text .imagette220321601744721492/ imagette220321601744721492/1744721381_887960_1349902588_2ba6a878f27891a2738b4fb10028e517_rle_crop_3746701446_0.png.png imagette220321601744721492/1744721381_887960_1349902749_fe323c06017e1467ae4d3537e4c034ad_rle_crop_3746701432_0.png.png imagette220321601744721492/1744721381_887960_1349902576_554374420dbe849b1848af685336f755_rle_crop_3746701455_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/602dc0678136e25eded86cc383278907_26259981.png imagette220321601744721492 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22032110 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22032163,22032164,22032165,22032166,22032167,22032168,22032169,22032170,22032171,22032172,22032173,22032174?tags=Carton_gris,flou,kraft,mal_croppe,papier,metal,environnement,Carton_brun,plastique,Teint_Dans_La_Masse,cartonnette,autre_refus your option no_mail is active, we will not send the real mail to your client args[1349903052] : ('0.017809580753475194',) no score found for photo 1349903052 We are sending mail with results at report@fotonower.com args[1349903049] : ('0.017809580753475194',) no score found for photo 1349903049 We are sending mail with results at report@fotonower.com args[1349903047] : ('0.017809580753475194',) no score found for photo 1349903047 We are sending mail with results at report@fotonower.com args[1349903044] : ('0.017809580753475194',) no score found for photo 1349903044 We are sending mail with results at report@fotonower.com args[1349903040] : ('0.017809580753475194',) no score found for photo 1349903040 We are sending mail with results at report@fotonower.com args[1349903038] : ('0.017809580753475194',) no score found for photo 1349903038 We are sending mail with results at report@fotonower.com args[1349903036] : ('0.017809580753475194',) no score found for photo 1349903036 We are sending mail with results at report@fotonower.com args[1349903034] : ('0.017809580753475194',) no score found for photo 1349903034 We are sending mail with results at report@fotonower.com args[1349903030] : ('0.017809580753475194',) no score found for photo 1349903030 We are sending mail with results at report@fotonower.com args[1349903029] : ('0.017809580753475194',) no score found for photo 1349903029 We are sending mail with results at report@fotonower.com args[1349902951] : ('0.017809580753475194',) no score found for photo 1349902951 We are sending mail with results at report@fotonower.com args[1349902946] : ('0.017809580753475194',) no score found for photo 1349902946 We are sending mail with results at report@fotonower.com args[1349902944] : ('0.017809580753475194',) no score found for photo 1349902944 We are sending mail with results at report@fotonower.com args[1349902936] : ('0.017809580753475194',) no score found for photo 1349902936 We are sending mail with results at report@fotonower.com args[1349902927] : ('0.017809580753475194',) no score found for photo 1349902927 We are sending mail with results at report@fotonower.com args[1349902895] : ('0.017809580753475194',) no score found for photo 1349902895 We are sending mail with results at report@fotonower.com args[1349902749] : ('0.017809580753475194',) no score found for photo 1349902749 We are sending mail with results at report@fotonower.com args[1349902725] : ('0.017809580753475194',) no score found for photo 1349902725 We are sending mail with results at report@fotonower.com args[1349902701] : ('0.017809580753475194',) no score found for photo 1349902701 We are sending mail with results at report@fotonower.com args[1349902588] : ('0.017809580753475194',) no score found for photo 1349902588 We are sending mail with results at report@fotonower.com args[1349902576] : ('0.017809580753475194',) no score found for photo 1349902576 We are sending mail with results at report@fotonower.com args[1349902561] : ('0.017809580753475194',) no score found for photo 1349902561 We are sending mail with results at report@fotonower.com args[1349902532] : ('0.017809580753475194',) no score found for photo 1349902532 We are sending mail with results at report@fotonower.com refus_total : 0.017809580753475194 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=22032110 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_P22032110_15-04-2025_14_51_32.pdf results_Auto_P22032110_15-04-2025_14_51_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_14_51_32.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22032110','results_Auto_P22032110_15-04-2025_14_51_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_14_51_32.pdf','pdf','','0.2','0.017809580753475194') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22032110]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532] map_info['map_portfolio_photo'] : {22032110: [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532]} final : False mtd_id 4302 list_pids : [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532] 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, '2721869') ('4302', '22032110', '1349903052', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903049', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903047', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903044', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903040', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903038', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903036', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903034', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903030', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903029', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902951', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902946', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902944', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902936', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902927', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902895', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902749', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902725', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902701', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902588', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902576', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902561', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902532', None, None, None, None, None, '2721869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22032110', '1349903052', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903049', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903047', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903044', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903040', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903038', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903036', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903034', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903030', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903029', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902951', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902946', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902944', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902936', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902927', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902895', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902749', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902725', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902701', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902588', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902576', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902561', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902532', None, None, None, None, None, '2721869')] time used for this insertion : 0.017621517181396484 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8299918174743652 time spend to save output : 0.018039464950561523 total time spend for step 4 : 2.8480312824249268 step5:split_time_score Tue Apr 15 14:51:34 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 : ['22032110'] 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 : [('22032110',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22032110) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349903047: {'path': 'temp/1744721492_3631584_1349903047_68c8cc68bac964ec92b833e2de69b392.jpg', 'extension': 'jpg'}, 1349903049: {'path': 'temp/1744721492_3631584_1349903049_71451074bbd6b6f36b488c6fc055f55e.jpg', 'extension': 'jpg'}, 1349903052: {'path': 'temp/1744721492_3631584_1349903052_e5593a3636d02bf9a39ce7c5c1e8c362.jpg', 'extension': 'jpg'}, 1349902725: {'path': 'temp/1744721492_3631584_1349902725_2c16fdc224b8b24f7192c69218e038a7.jpg', 'extension': 'jpg'}, 1349902749: {'path': 'temp/1744721492_3631584_1349902749_fe323c06017e1467ae4d3537e4c034ad.jpg', 'extension': 'jpg'}, 1349902895: {'path': 'temp/1744721492_3631584_1349902895_a0870730df27b477277767ca7fbe52f0.jpg', 'extension': 'jpg'}, 1349902927: {'path': 'temp/1744721492_3631584_1349902927_60f71f19465d219f98628189693714be.jpg', 'extension': 'jpg'}, 1349902936: {'path': 'temp/1744721492_3631584_1349902936_2119599a5bfa6f1866fbc5ff2ca29725.jpg', 'extension': 'jpg'}, 1349902532: {'path': 'temp/1744721492_3631584_1349902532_2a18f2952d36f007b02d9538257fcc8b.jpg', 'extension': 'jpg'}, 1349902561: {'path': 'temp/1744721492_3631584_1349902561_46072e9516d5946ca05c6ba64f552bbe.jpg', 'extension': 'jpg'}, 1349902576: {'path': 'temp/1744721492_3631584_1349902576_554374420dbe849b1848af685336f755.jpg', 'extension': 'jpg'}, 1349902588: {'path': 'temp/1744721492_3631584_1349902588_2ba6a878f27891a2738b4fb10028e517.jpg', 'extension': 'jpg'}, 1349902701: {'path': 'temp/1744721492_3631584_1349902701_5718b6778d78349e2555578ecb6824ef.jpg', 'extension': 'jpg'}, 1349903034: {'path': 'temp/1744721492_3631584_1349903034_6ac5f179fa38c52e93d7c8b18545e5bd.jpg', 'extension': 'jpg'}, 1349903036: {'path': 'temp/1744721492_3631584_1349903036_a8adb757f85105a9d0fa82183251d589.jpg', 'extension': 'jpg'}, 1349903038: {'path': 'temp/1744721492_3631584_1349903038_510dff8e31d4aa004f9ae20c63bd827b.jpg', 'extension': 'jpg'}, 1349903040: {'path': 'temp/1744721492_3631584_1349903040_14e89340e34151d9ae9c458a8bc1b364.jpg', 'extension': 'jpg'}, 1349903044: {'path': 'temp/1744721492_3631584_1349903044_f32604b822b514c8e1d06c61d711845c.jpg', 'extension': 'jpg'}, 1349902944: {'path': 'temp/1744721492_3631584_1349902944_5948b6793117d5b66ed62d87fba7d1e3.jpg', 'extension': 'jpg'}, 1349902946: {'path': 'temp/1744721492_3631584_1349902946_4c61a72ec6bba3a0ec867768db8f3fad.jpg', 'extension': 'jpg'}, 1349902951: {'path': 'temp/1744721492_3631584_1349902951_6712d32be4605608d6d369b82a1a5a28.jpg', 'extension': 'jpg'}, 1349903029: {'path': 'temp/1744721492_3631584_1349903029_88adc82bddde9d90c6ba0f720cb4ad37.jpg', 'extension': 'jpg'}, 1349903030: {'path': 'temp/1744721492_3631584_1349903030_14b054d2a844c61ccb2eb5b022537b48.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 = 22032110; (('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 = 22032110 group by h (('14', 23),) 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=22032110 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 (22032110) 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 (22032110) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15042025 22032110 Nombre de photos uploadées : 23 / 23040 (0%) 15042025 22032110 Nombre de photos taguées (types de déchets): 0 / 23 (0%) 15042025 22032110 Nombre de photos taguées (volume) : 0 / 23 (0%) [{'photo_id': 1349902588, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/2ba6a878f27891a2738b4fb10028e517.jpg', 'username': None, 'uploaded_at': 1744721182, 'text': 'image_15042025_14_45_14_10141.jpg'}, {'photo_id': 1349902576, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/554374420dbe849b1848af685336f755.jpg', 'username': None, 'uploaded_at': 1744721182, 'text': 'image_15042025_14_45_24_10135.jpg'}, {'photo_id': 1349902561, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/46072e9516d5946ca05c6ba64f552bbe.jpg', 'username': None, 'uploaded_at': 1744721182, 'text': 'image_15042025_14_45_34_10135.jpg'}, {'photo_id': 1349902532, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/2a18f2952d36f007b02d9538257fcc8b.jpg', 'username': None, 'uploaded_at': 1744721182, 'text': 'image_15042025_14_45_44_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ??????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024275779724121094 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22032110, '2025-04-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1714503,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029405832290649414 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= 1714503 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1714503, 'dashboard_run_id': 1722959, 'mtr_portfolio_id': 22030089, 'dashboard_result_id': 9851741, '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_P22030089_15-04-2025_14_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030103, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1722959, 'mtr_portfolio_id': 22030731, 'dashboard_result_id': 9851742, '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_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1722959, 'mtr_portfolio_id': 22031305, 'dashboard_result_id': 9851743, '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_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1722959, 'mtr_portfolio_id': 22032110, 'dashboard_result_id': 9851744, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}] 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 = 22030089 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': 2721688, 'mtr_portfolio_id': 22030089, 'created_at': datetime.datetime(2025, 4, 15, 14, 18, 59), 'result': '0.037908939042679515', 'result_long': None, 'result_double': None}] Qualite : 0.037908939042679515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22030089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030089_15-04-2025_14_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22030089 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_P22030089_15-04-2025_14_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030103, 'pht': 3726}}" where mtr_portfolio_id = 22030089 and dashboard_run_id = 1722959 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`=22030089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9851741, 0.037908939042679515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030089_15-04-2025_14_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030103, '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 = 22030731 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': 2721734, 'mtr_portfolio_id': 22030731, 'created_at': datetime.datetime(2025, 4, 15, 14, 32, 58), 'result': '0.03468246754841509', 'result_long': None, 'result_double': None}] Qualite : 0.03468246754841509 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22030731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030731_15-04-2025_14_33_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22030731 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_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, 'pht': 3726}}" where mtr_portfolio_id = 22030731 and dashboard_run_id = 1722959 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`=22030731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9851742, 0.03468246754841509, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, '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 = 22031305 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': 2721809, 'mtr_portfolio_id': 22031305, 'created_at': datetime.datetime(2025, 4, 15, 14, 50, 58), 'result': '0.07490852493073792', 'result_long': None, 'result_double': None}] Qualite : 0.07490852493073792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22031305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031305_15-04-2025_14_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22031305 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_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, 'pht': 3726}}" where mtr_portfolio_id = 22031305 and dashboard_run_id = 1722959 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`=22031305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9851743, 0.07490852493073792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, '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 = 22032110 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': 2721869, 'mtr_portfolio_id': 22032110, 'created_at': datetime.datetime(2025, 4, 15, 14, 51, 31), 'result': '0.017809580753475194', 'result_long': None, 'result_double': None}] Qualite : 0.017809580753475194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22032110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_14_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22032110 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_P22032110_15-04-2025_14_51_32.pdf'}" where mtr_portfolio_id = 22032110 and dashboard_run_id = 1722959 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`=22032110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9851744, 0.017809580753475194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_14_51_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, '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 (22030089,22030731,22031305,22032110) result : ((1349892466,), (1349892545,), (1349892585,), (1349893318,), (1349893388,), (1349893459,), (1349893549,), (1349893656,), (1349893749,), (1349894500,), (1349894543,), (1349894578,), (1349895031,), (1349895061,), (1349895090,), (1349895118,), (1349895143,), (1349895169,), (1349895587,), (1349895617,), (1349895644,), (1349895680,), (1349895711,), (1349895741,), (1349895860,), (1349895908,), (1349895996,), (1349896512,), (1349896666,), (1349896813,), (1349896920,), (1349896966,), (1349896992,), (1349897135,), (1349897138,), (1349897142,), (1349897146,), (1349897152,), (1349897197,), (1349897202,), (1349897204,), (1349897209,), (1349897261,), (1349897266,), (1349897268,), (1349897271,), (1349897274,), (1349897378,), (1349897380,), (1349897395,), (1349897400,), (1349897404,), (1349897409,), (1349897412,), (1349897415,), (1349897555,), (1349897584,), (1349897612,), (1349897671,), (1349897672,), (1349897679,), (1349897680,), (1349897685,), (1349897686,), (1349897748,), (1349897749,), (1349897753,), (1349897754,), (1349897757,), (1349897758,), (1349897764,), (1349897765,), (1349897822,), (1349897824,), (1349897829,), (1349897831,), (1349897836,), (1349897837,), (1349897842,), (1349897843,), (1349897926,), (1349897929,), (1349897908,), (1349897910,), (1349897911,), (1349897914,), (1349897915,), (1349897917,), (1349897921,), (1349897922,), (1349897969,), (1349897973,), (1349897977,), (1349898125,), (1349898135,), (1349898149,), (1349898155,), (1349898171,), (1349898308,), (1349898312,), (1349898316,), (1349898320,), (1349898365,), (1349898368,), (1349898372,), (1349898377,), (1349898433,), (1349898436,), (1349898439,), (1349898521,), (1349898527,), (1349898532,), (1349898537,), (1349898541,), (1349898667,), (1349898673,), (1349898678,), (1349898682,), (1349898687,), (1349898691,), (1349898774,), (1349898777,), (1349898779,), (1349898782,), (1349898801,), (1349898947,), (1349898951,), (1349898957,), (1349898959,), (1349898963,), (1349898982,), (1349898985,), (1349898996,), (1349899326,), (1349899422,), (1349899520,), (1349899568,), (1349899580,), (1349899601,), (1349899646,), (1349899669,), (1349899712,), (1349899724,), (1349899861,), (1349899865,), (1349899871,), (1349899874,), (1349899878,), (1349899882,), (1349900004,), (1349900048,), (1349900222,), (1349900228,), (1349900236,), (1349900239,), (1349900246,), (1349900251,), (1349900329,), (1349900307,), (1349900313,), (1349900319,), (1349900324,), (1349900426,), (1349900427,), (1349900432,), (1349900434,), (1349900436,), (1349900437,), (1349900451,), (1349900454,), (1349900783,), (1349900796,), (1349900806,), (1349900819,), (1349900866,), (1349900876,), (1349900891,), (1349900898,), (1349900913,), (1349900981,), (1349901012,), (1349901018,), (1349901023,), (1349901068,), (1349901101,), (1349901198,), (1349901224,), (1349901229,), (1349901234,), (1349901279,), (1349901284,), (1349901293,), (1349901347,), (1349901351,), (1349901355,), (1349901377,), (1349901383,), (1349901388,), (1349901399,), (1349901403,), (1349901406,), (1349901485,), (1349901487,), (1349901492,), (1349901884,), (1349902184,), (1349902209,), (1349902235,), (1349902240,), (1349902244,), (1349902383,), (1349902406,), (1349902409,), (1349902599,), (1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15042025': {'nb_upload': 23, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22032110]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532] map_info['map_portfolio_photo'] : {22032110: [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532]} final : True mtd_id 4302 list_pids : [1349903052, 1349903049, 1349903047, 1349903044, 1349903040, 1349903038, 1349903036, 1349903034, 1349903030, 1349903029, 1349902951, 1349902946, 1349902944, 1349902936, 1349902927, 1349902895, 1349902749, 1349902725, 1349902701, 1349902588, 1349902576, 1349902561, 1349902532] Looping around the photos to save general results len do output : 1 /22032110Didn'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, '2721869') ('4302', '22032110', '1349903052', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903049', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903047', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903044', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903040', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903038', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903036', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903034', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903030', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349903029', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902951', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902946', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902944', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902936', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902927', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902895', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902749', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902725', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902701', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902588', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902576', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902561', None, None, None, None, None, '2721869') ('4302', None, None, None, None, None, None, None, '2721869') ('4302', '22032110', '1349902532', None, None, None, None, None, '2721869') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '22032110', 'None', None, None, None, None, '2721869'), ('4302', '22032110', '1349903052', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903049', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903047', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903044', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903040', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903038', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903036', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903034', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903030', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349903029', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902951', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902946', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902944', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902936', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902927', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902895', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902749', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902725', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902701', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902588', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902576', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902561', None, None, None, None, None, '2721869'), ('4302', '22032110', '1349902532', None, None, None, None, None, '2721869')] time used for this insertion : 0.019257545471191406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.336270809173584 time spend to save output : 0.019736528396606445 total time spend for step 5 : 0.35600733757019043 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 (2721869) 2.95user 2.40system 0:10.01elapsed 53%CPU (0avgtext+0avgdata 162704maxresident)k 58416inputs+14264outputs (228major+77455minor)pagefaults 0swaps