-
Notifications
You must be signed in to change notification settings - Fork 1
Node Server API
zygoth edited this page Apr 18, 2014
·
9 revisions
##Done class JobInformationAPI:
-
String submitTestJob(String output, int waitTime, int numTasks)
-
String submitRandomizedTestJob(String desiredOutput, int maxWaitTime, int numTasks)
- Each task in the job will wait for a random number from 0 to maxWaitTime seconds
- The tasks in a RandomizedJob will fail 30% of the time.
- @Throws Exception if an error occured while creating the job.
- @Returns the ID of the Job that was created
-
String getStatus(String jobID)
- @Returns "SUBMITTED", "PENDING", "EXECUTING", "COMPLETE", "FAILED", or "NONEXISTENT" if the job doesn't exist
-
boolean cancelJob(String jobID)
-
int getTotalTasks(String jobID);
-
int getNumCompleteTasks(String jobID);
- public String[] getTaskStatuses(String jobID)
- @Returns a list of the statuses of all tasks in the specified job.
##Not Done report(job_id, task_id=None, [key1, key2, ... ]):
- return json dictionary string
- success or fail?
- task time
- node list
- resources consumed
- ...