Skip to content
Snippets Groups Projects
Commit c88f3de6 authored by Francesco Siddi's avatar Francesco Siddi
Browse files

Manager: use proper endpoint for retrieving jobfile

parent 99573660
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ task_fields = { ...@@ -66,7 +66,7 @@ task_fields = {
class TaskFileApi(Resource): class TaskFileApi(Resource):
def get(self, job_id): def get(self, job_id):
"""Check if the Manager already have the file """Check if the Manager already has the file
""" """
managerstorage = app.config['MANAGER_STORAGE'] managerstorage = app.config['MANAGER_STORAGE']
jobpath = os.path.join(managerstorage, str(job_id)) jobpath = os.path.join(managerstorage, str(job_id))
...@@ -164,9 +164,9 @@ class TaskCompiledApi(Resource): ...@@ -164,9 +164,9 @@ class TaskCompiledApi(Resource):
f.write("locked") f.write("locked")
r = requests.get( r = requests.get(
#'http://{0}/jobs/file/{1}'.format( 'http://{0}/jobs/file/{1}'.format(
'http://{0}/static/storage/{1}/{2}/jobfile_{2}.zip'.format( #'http://{0}/static/storage/{1}/{2}/jobfile_{2}.zip'.format(
app.config['FLAMENCO_SERVER'], task['project_id'], task['job_id']), app.config['FLAMENCO_SERVER'], task['job_id']),
stream=True stream=True
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment