LaunchAgent
⌘I
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]
)
| 引数 | 説明 |
|---|---|
api | バックエンドへのリクエスト送信に使用する API オブジェクト。 |
config | エージェントの設定 dict。 |
| 属性 | 説明 |
|---|---|
num_running_jobs | スケジューラを含まないジョブ数を返します。 |
num_running_schedulers | スケジューラ数のみを返します。 |
thread_ids | エージェントで実行中のスレッド ID を表すキーのリストを返します。 |
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 | 説明 |
|---|---|
KeyboardInterrupt | エージェントに停止要求があった場合。 |
name@classmethod
name() -> str
pop_from_queuepop_from_queue(
queue
)
| 引数 | 説明 |
|---|---|
queue | 取り出し元のキュー。 |
| 戻り値 | 説明 |
|---|---|
| キューから取り出された項目。 |
| 発生する例外 | 説明 |
|---|---|
Exception | キューからの取り出し時にエラーが発生した場合。 |
print_statusprint_status() -> None
run_jobrun_job(
job, queue, file_saver
)
| 引数 | 説明 |
|---|---|
job | 実行するジョブ。 |
task_run_jobtask_run_job(
launch_spec, job, default_config, api, job_tracker
)
update_statusupdate_status(
status
)
| 引数 | 説明 |
|---|---|
status | エージェントに設定するステータス。 |