mirror of
https://github.com/penpot/penpot.git
synced 2026-11-15 22:54:45 +00:00
Await the wasm callback chain before settling a render, so a multi-object export cannot close its zip with entries still pending. Hand a payload popped during shutdown back to its queue instead of running an export the stop is about to cut, and let stop wait for the poller turn before quitting the connections. Destroy the zip write stream on the failure paths: it leaked one descriptor per cancelled or failed job, and releasing the temp path does not close it. Gate complete-job on the tenant in a single read at the entry, so a foreign row no longer reveals its status. Normalize the exporter tenant before validating it: an upper-case value derived another key and popped another queue. Share the queue payload shape between the dispatcher and the worker in app.common.types.job, require the export suffix in the contract, and validate the payload before decoding it. Count dangling promise rejections as failures in the exporter test runner, release the export flag when the persist fails, and pin the progress answer of a missing job. Memory, README and the pool docstring stop describing behaviour the code no longer has. AI-assisted-by: deepseek-v4.1-flash