Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
File Transfer Service
fts-rest
Commits
f067d8da
Commit
f067d8da
authored
Nov 30, 2018
by
Andrea Manzi
Browse files
FTS-1338
: add wrapper to inquirer.get_jobs_statuses in state.py
parent
1c276df5
Pipeline
#611658
passed with stage
in 1 minute and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fts3/rest/client/easy/state.py
View file @
f067d8da
...
...
@@ -48,3 +48,18 @@ def get_job_status(context, job_id, list_files=False):
"""
inquirer
=
Inquirer
(
context
)
return
inquirer
.
get_job_status
(
job_id
,
list_files
)
def
get_jobs_statuses
(
context
,
job_ids
,
list_files
=
False
):
"""
Get status for a list of jobs
Args:
context: fts3.rest.client.context.Context instance
job_ids: The job list
list_files: If True, the status of each individual file will be queried
Returns:
Decoded JSON message returned by the server (job status plus, optionally, list of files)
"""
inquirer
=
Inquirer
(
context
)
return
inquirer
.
get_jobs_statuses
(
job_ids
,
list_files
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment