Skip to content

Commit

Permalink
Added isTaskFinished
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewssobral committed Mar 27, 2024
1 parent dff3588 commit 111cbca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions proactive/ProactiveGateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,16 @@ def isJobFinished(self, job_id):
"""
return self.proactive_scheduler_client.isJobFinished(str(job_id))

def isTaskFinished(self, job_id, task_name):
"""
Verify if a task is finished
:param job_id: A valid job ID
:param task_name: A valid task name
:return: True or False
"""
return self.proactive_scheduler_client.isTaskFinished(str(job_id), task_name)

def getJobInfo(self, job_id):
"""
Get the job info
Expand Down

0 comments on commit 111cbca

Please sign in to comment.