Version 1

This documentation is for Deis v1 PaaS. For Workflow (v2) documentation visit https://deis.com/docs/workflow/.

scheduler

scheduler.chaos

class scheduler.chaos.ChaosSchedulerClient(target, auth, options, pkey)[source]
create(name, image, command, **kwargs)[source]

Create a new container.

destroy(name)[source]

Destroy a container.

run(name, image, entrypoint, command)[source]

Run a one-off command.

start(name)[source]

Start a container.

stop(name)[source]

Stop a container.

scheduler.chaos.SchedulerClient

alias of ChaosSchedulerClient

scheduler.fleet

class scheduler.fleet.FleetHTTPClient(target, auth, options, pkey)[source]
create(name, image, command='', template=None, **kwargs)[source]

Create a container.

destroy(name)[source]

Destroy a container.

run(name, image, entrypoint, command)[source]

Run a one-off command.

start(name)[source]

Start a container.

state(name)[source]

Display the given job’s running state.

stop(name)[source]

Stop a container.

scheduler.fleet.SchedulerClient

alias of FleetHTTPClient

class scheduler.fleet.UHTTPConnection(path)[source]

Subclass of Python library HTTPConnection that uses a Unix domain socket.

connect()[source]

scheduler.mock

class scheduler.mock.MockSchedulerClient(target, auth, options, pkey)[source]
create(name, image, command, **kwargs)[source]

Create a new container.

destroy(name)[source]

Destroy a container.

run(name, image, entrypoint, command)[source]

Run a one-off command.

start(name)[source]

Start a container.

state(name)[source]

Display the given job’s running state.

stop(name)[source]

Stop a container.

scheduler.mock.SchedulerClient

alias of MockSchedulerClient

scheduler.states

class scheduler.states.JobState[source]
crashed = <JobState.crashed: 6>
created = <JobState.created: 2>
destroyed = <JobState.destroyed: 5>
down = <JobState.down: 4>
error = <JobState.error: 7>
initialized = <JobState.initialized: 1>
up = <JobState.up: 3>
exception scheduler.states.TransitionError(prev, next, msg)[source]

Raised when a transition from one state to another is illegal