forked from mtusi2026/mtusi2026lab2
Render variants in killable processes with time and memory limits
The renderer adapter keeps one single-process pool per WORKER_CONCURRENCY slot. A render that exceeds RENDER_TIMEOUT_SECONDS is killed and its slot is respawned, the render process has RLIMIT_AS = RENDER_MEMORY_MB on Linux, so both limits end in ImageTooDemanding, a permanent processing_failed. A render process killed from outside is a transient error. A cancelled render (lost lease, shutdown) kills its process too. The worker container limit grows to 1g: two 448 MiB render processes plus the worker itself. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
431b82fd43
commit
f2242eb39d
@@ -42,4 +42,7 @@ class PipelineSettings(AttachmentsSettings):
|
||||
shutdown_grace_seconds: float = Field(default=5.0, gt=0, le=9)
|
||||
heartbeat_file: Path | None = None
|
||||
heartbeat_interval_seconds: float = Field(default=5.0, gt=0, le=10)
|
||||
render_timeout_seconds: float = Field(default=30.0, gt=0, le=120)
|
||||
render_memory_mb: int = Field(default=448, ge=0, le=8192)
|
||||
render_tasks_per_child: int = Field(default=100, ge=1, le=10_000)
|
||||
fault_point: str = ""
|
||||
|
||||
Reference in New Issue
Block a user