Analysis queue database.
This class handles the creation of the database user for internal
queue management. It also provides some functions for interacting with
it.
|
__init__(self,
dsn=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
clean_machines(self)
Clean old stored machines and related tables. |
source code
|
|
|
add_machine(self,
name,
label,
ip,
platform,
tags,
interface,
snapshot,
resultserver_ip,
resultserver_port)
Add a guest machine. |
source code
|
|
|
|
|
fetch(self,
lock=True)
Fetches a task waiting to be processed and locks it for running. |
source code
|
|
|
|
|
guest_remove(self,
guest_id)
Removes a guest start entry. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add(self,
obj,
timeout=0,
package='
' ,
options='
' ,
priority=1,
custom='
' ,
machine='
' ,
platform='
' ,
tags=None,
memory=False,
enforce_timeout=False,
clock=None)
Add a task to database. |
source code
|
|
|
add_path(self,
file_path,
timeout=0,
package='
' ,
options='
' ,
priority=1,
custom='
' ,
machine='
' ,
platform='
' ,
tags=None,
memory=False,
enforce_timeout=False,
clock=None)
Add a task to database from file path. |
source code
|
|
|
add_url(self,
url,
timeout=0,
package='
' ,
options='
' ,
priority=1,
custom='
' ,
machine='
' ,
platform='
' ,
tags=None,
memory=False,
enforce_timeout=False,
clock=None)
Add a task to database from url. |
source code
|
|
|
|
|
list_tasks(self,
limit=None,
details=False,
category=None,
offset=None,
status=None,
not_status=None)
Retrieve list of task. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
count_samples(self)
Counts the amount of samples in the database. |
source code
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|