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,
schema_check=True,
echo=False)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_machine(self,
name,
label,
ip,
platform,
options,
tags,
interface,
snapshot,
resultserver_ip,
resultserver_port)
Add a guest machine. |
source code
|
|
|
|
|
|
|
|
|
|
fetch(self,
machine=None,
service=True)
Fetches a task waiting to be processed and locks it for running. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add(self,
obj,
timeout=0,
package="",
options="",
priority=1,
custom="",
owner="",
machine="",
platform="",
tags=None,
memory=False,
enforce_timeout=False,
clock=None,
category=None)
Add a task to database. |
source code
|
|
|
|
add_path(self,
file_path,
timeout=0,
package="",
options="",
priority=1,
custom="",
owner="",
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="",
owner="",
machine="",
platform="",
tags=None,
memory=False,
enforce_timeout=False,
clock=None)
Add a task to database from url. |
source code
|
|
|
|
|
|
|
|
|
|
add_reboot(self,
task_id,
timeout=0,
options="",
priority=1,
owner="",
machine="",
platform="",
tags=None,
memory=False,
enforce_timeout=False,
clock=None)
Add a reboot task to database from an existing analysis. |
source code
|
|
|
|
|
|
|
list_tasks(self,
limit=None,
details=True,
category=None,
owner=None,
offset=None,
status=None,
sample_id=None,
not_status=None,
completed_after=None,
order_by=None)
Retrieve list of task. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
processing_get_task(self,
instance)
Get an available task for processing. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|