The heat.engine.stack_lock ModuleΒΆ

class heat.engine.stack_lock.StackLock(context, stack, engine_id)[source]

Bases: object

StackLock.acquire(retry=True)[source]

Acquire a lock on the stack.

Parameters:retry (boolean) – When True, retry if lock was released while stealing.
static StackLock.engine_alive(context, engine_id)[source]
static StackLock.generate_engine_id()[source]
StackLock.release(stack_id)[source]

Release a stack lock.

StackLock.thread_lock(*args, **kwds)[source]

Acquire a lock and release it only if there is an exception. The release method still needs to be scheduled to be run at the end of the thread using the Thread.link method.

StackLock.try_acquire()[source]

Try to acquire a stack lock, but don’t raise an ActionInProgress exception or try to steal lock.

StackLock.try_thread_lock(*args, **kwds)[source]

Similar to thread_lock, but acquire the lock using try_acquire and only release it upon any exception after a successful acquisition.

Previous topic

The heat.engine.stack Module

Next topic

The heat.engine.support Module

This Page