Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
Adding the job class
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhil Singh committed Dec 15, 2011
1 parent e77e35b commit ed09ed1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions job.py
@@ -0,0 +1,21 @@
#!/usr/bin/env python
import os
import sys

#
# Job class
#
class Job:

def __init__(self, job_id, timeout, retries, success_constraint
parallelism, command, hosts):
self._job_id = job_id
self._timeout = timeout
self._retries = retries
self._success_constraint = success_constraint
self._parallelism = parallelism
self._command = command
self._hosts = hosts
self._rcs = {} # Individual return codes for each host
self._output = {} # Ouputs per host in the job
self._success = False

0 comments on commit ed09ed1

Please sign in to comment.