LaunchAgent
View source
View source
View source
View source
View source
View source
View source
View source
View source
View source
View source
View source
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Help us improve these docs. Take our quick survey.
LaunchAgent(
api: Api,
config: Dict[str, Any]
)
| 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. |
check_sweep_statecheck_sweep_state(
launch_spec, api
)
fail_run_queue_itemfail_run_queue_item(
run_queue_item_id, message, phase, files=None
)
finish_thread_idfinish_thread_id(
thread_id, exception=None
)
get_job_and_queueget_job_and_queue()
initialized@classmethod
initialized() -> bool
looploop()
| Raises | Description |
|---|---|
KeyboardInterrupt | if the agent is requested to stop. |
name@classmethod
name() -> str
pop_from_queuepop_from_queue(
queue
)
| 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_statusprint_status() -> None
run_jobrun_job(
job, queue, file_saver
)
| Arguments | Description |
|---|---|
job | Job to run. |
task_run_jobtask_run_job(
launch_spec, job, default_config, api, job_tracker
)
update_statusupdate_status(
status
)
| Arguments | Description |
|---|---|
status | Status to update the agent to. |
Was this page helpful?