Celery Channel
lingo.celery.channel
Internal message envelope types for broker communication.
ChannelEnvelope
Bases: BaseModel
Broker-visible envelope split between payload data and runtime metadata.
Source code in lingo/celery/channel.py
60 61 62 63 64 | |
ChannelMeta
Bases: BaseModel
System metadata used by the orchestration runtime.
Source code in lingo/celery/channel.py
45 46 47 48 49 50 51 52 53 54 55 56 57 | |
RestartPolicy
Bases: BaseModel
High-level retry policy with intuitive defaults.
Source code in lingo/celery/channel.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
countdown_for_retry(retries_so_far: int) -> float
Compute countdown (seconds) before the next retry.
Source code in lingo/celery/channel.py
33 34 35 36 37 38 39 40 41 42 | |
should_retry(exc: Exception, retries_so_far: int) -> bool
Return whether a failure should be retried under this policy.
Source code in lingo/celery/channel.py
21 22 23 24 25 26 27 28 29 30 31 | |