RetrieveWorkerVersion is called once per WorkerRun in the process configuration page

Erwan Rouchet
2026-03-12T12:50:40Z

Opening the /process/:id/configure page on any process, started or not, will cause one call to RetrieveWorkerVersion per WorkerRun. Creating a WorkerRun will cause the API to be called again if the WorkerVersion had not already been loaded.

This used to be necessary because we were using only retrieving and storing worker_version_id from a WorkerRun, and not the full worker_version object. But RetrieveWorkerRun has returned a complete worker_version for at least four years now. The processStore should pass the worker versions and workers it finds to the workerStore, so that RetrieveWorkerVersion is no longer needed at all.