HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
task.py
Go to the documentation of this file.
1 #!/usr/bin/python
2 
3 
4 """@package docstring
5  @file task.py
6  @author Oleksii <developers.hce@gmail.com>
7  @link http://hierarchical-cluster-engine.com/
8  @copyright Copyright &copy; 2013 IOIX Ukraine
9  @license http://hierarchical-cluster-engine.com/license/
10  @package HCE project node API
11  @since 0.1
12 """
13 
14 
15 #from dbi import db
16 
17 
18 class Task(object):
19 
20  Tries = 10
21  def __init__(self, id=None, command=None, input=None, files=None, session=None, strategy=None, Tries=None, CDate=None ):
22  self.id = id
23  self.command= command
24  self.input = input
25  self.files= files
26  self.session = session
27  self.strategy = strategy
28  # for update testing fake value
29  self.Tries = Tries
30  self.CDate = CDate
31 
32 
33  def __repr__(self):
34  return "<User(id='%s', data='%s')>" % (self.id, self.data)
command
Definition: task.py:23
def __init__(self, id=None, command=None, input=None, files=None, session=None, strategy=None, Tries=None, CDate=None)
Definition: task.py:21
strategy
Definition: task.py:27
CDate
Definition: task.py:30
input
Definition: task.py:24
session
Definition: task.py:26
files
Definition: task.py:25
def __repr__(self)
Definition: task.py:33
int Tries
Definition: task.py:20