Exceptions

Mirakuru exceptions.

exception mirakuru.exceptions.AlreadyRunning(executor)[source]

Bases: mirakuru.exceptions.ExecutorError

Is raised when the executor seems to be already running.

When some other process (not necessary executor) seems to be started with same configuration we can’t bind to same port.

Exception initialization.

Parameters:executor (mirakuru.base.Executor) – for which exception occurred
exception mirakuru.exceptions.ExecutorError(executor)[source]

Bases: Exception

Base exception for executor failures.

Exception initialization.

Parameters:executor (mirakuru.base.Executor) – for which exception occurred
exception mirakuru.exceptions.ProcessExitedWithError(executor, exit_code)[source]

Bases: mirakuru.exceptions.ExecutorError

Raised when the process invoked by the executor returns a non-zero code.

We allow the process to exit with zero because we support daemonizing subprocesses. We assume that when double-forking, the parent process will exit with 0 in case of successful daemonization.

Exception initialization with an extra exit_code argument.

Parameters:
exception mirakuru.exceptions.TimeoutExpired(executor, timeout)[source]

Bases: mirakuru.exceptions.ExecutorError

Is raised when the timeout expires while starting an executor.

Exception initialization with an extra timeout argument.

Parameters: