Skip to main content

gPidbox

Worker pidbox (greenlet).

Constructor​

Signature​

def gPidbox() - > null

Methods​


start()​

@classmethod
def start(
c: celery.worker.consumer.Consumer
)

Spawns the pidbox event loop as a non-blocking greenlet within the worker's pool.

Parameters​

NameTypeDescription
ccelery.worker.consumer.ConsumerThe consumer instance providing the execution pool and connection context

on_stop()​

@classmethod
def on_stop()

Signals the pidbox loop to shut down and blocks until the broadcast thread has successfully terminated.


reset()​

@classmethod
def reset()

Increments the internal reset counter to trigger a re-initialization of the consumer channel in the next loop iteration.


loop()​

@classmethod
def loop(
c: celery.worker.consumer.Consumer
)

Runs the main event loop that drains events from the broker and handles periodic resets or shutdown signals.

Parameters​

NameTypeDescription
ccelery.worker.consumer.ConsumerThe consumer instance providing the connection for reading events