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 | 에이전트용 설정 딕셔너리입니다. |
| 속성 | 설명 |
|---|---|
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()
| 예외 | 설명 |
|---|---|
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 | 에이전트에 설정할 상태입니다. |