Skip to main content

View the source code

Launch agent class which polls run given run queues and launches runs for wandb launch.
ArgumentsDescription
apiApi object to use for making requests to the backend.
configConfig dictionary for the agent.
AttributesDescription
num_running_jobsReturn the number of jobs not including schedulers.
num_running_schedulersReturn just the number of schedulers.
thread_idsReturns a list of keys running thread ids for the agent.

Methods

check_sweep_state

View source
Check the state of a sweep before launching a run for the sweep.

fail_run_queue_item

View source

finish_thread_id

View source
Removes the job from our list for now.

get_job_and_queue

View source

initialized

View source
Return whether the agent is initialized.

loop

View source
Loop infinitely to poll for jobs and run them.
RaisesDescription
KeyboardInterruptif the agent is requested to stop.

name

View source
Return the name of the agent.

pop_from_queue

View source
Pops an item off the runqueue to run as a job.
ArgumentsDescription
queueQueue to pop from.
ReturnsDescription
Item popped off the queue.
RaisesDescription
Exceptionif there is an error popping from the queue.
View source
Prints the current status of the agent.

run_job

View source
Set up project and run the job.
ArgumentsDescription
jobJob to run.

task_run_job

View source

update_status

View source
Update the status of the agent.
ArgumentsDescription
statusStatus to update the agent to.