View the source code
Arguments | Description |
---|---|
api | Api object to use for making requests to the backend. |
config | Config dictionary for the agent. |
Attributes | Description |
---|---|
num_running_jobs | Return the number of jobs not including schedulers. |
num_running_schedulers | Return just the number of schedulers. |
thread_ids | Returns a list of keys running thread ids for the agent. |
Methods
check_sweep_state
View source
fail_run_queue_item
View source
finish_thread_id
View source
get_job_and_queue
View source
initialized
View source
loop
View source
Raises | Description |
---|---|
KeyboardInterrupt | if the agent is requested to stop. |
name
View source
pop_from_queue
View source
Arguments | Description |
---|---|
queue | Queue to pop from. |
Returns | Description |
---|---|
Item popped off the queue. |
Raises | Description |
---|---|
Exception | if there is an error popping from the queue. |
print_status
View source
run_job
View source
Arguments | Description |
---|---|
job | Job to run. |
task_run_job
View source
update_status
View source
Arguments | Description |
---|---|
status | Status to update the agent to. |