Commit 285d845a authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Refresh the status of jobs from SGE before listing them

parent 6609ab6d
......@@ -205,6 +205,9 @@ def run_scheduler(args):
def list(args):
"""Lists the jobs in the given database."""
jm = setup(args)
if not args.local:
# update the status of jobs from SGE before listing them.
jm.communicate(job_ids=get_ids(args.job_ids))
jm.list(job_ids=get_ids(args.job_ids), print_array_jobs=args.print_array_jobs, print_dependencies=args.print_dependencies, status=args.status, long=args.long, print_times=args.print_times, ids_only=args.ids_only, names=args.names)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment