Fix up log reporting
This commit is contained in:
parent
0c1d0c6f33
commit
ee6a4f808c
@ -190,7 +190,7 @@ def push_file(job_log_dir, file_path, publish_config):
|
|||||||
""" Push a log file to a server. Returns the public URL """
|
""" Push a log file to a server. Returns the public URL """
|
||||||
method = publish_config['type'] + '_push_file'
|
method = publish_config['type'] + '_push_file'
|
||||||
if method in globals() and hasattr(globals()[method], '__call__'):
|
if method in globals() and hasattr(globals()[method], '__call__'):
|
||||||
return globals()[method](dest_dir, file_path, publish_config)
|
return globals()[method](job_log_dir, file_path, publish_config)
|
||||||
|
|
||||||
|
|
||||||
def swift_push_file(job_log_dir, file_path, swift_config):
|
def swift_push_file(job_log_dir, file_path, swift_config):
|
||||||
|
@ -56,7 +56,8 @@ def generate_push_results(datasets, publish_config):
|
|||||||
""" Generates and pushes results """
|
""" Generates and pushes results """
|
||||||
|
|
||||||
for i, dataset in enumerate(datasets):
|
for i, dataset in enumerate(datasets):
|
||||||
result_uri = push_file(dataset['job_log_file_path'],
|
result_uri = push_file(dataset['determined_path'],
|
||||||
|
dataset['job_log_file_path'],
|
||||||
publish_config)
|
publish_config)
|
||||||
datasets[i]['result_uri'] = result_uri
|
datasets[i]['result_uri'] = result_uri
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user