Story #9277

Updated by Tom Clegg about 4 years ago

h2. Background

When a container finishes, crunch-run creates an output collection and records its PDH in the container record.

On the API server, the container update triggers a hook that creates one copy of the output collection for each of N container requests that have been waiting on this container.

The original output collection is owned by root and -there there is no cleanup process- has trash_at set to now+defaultTrashLifetime. process.

h2. Proposed fix

In crunch-run, create the output collection with trash_at=now.

In the API server hook that creates a collection for each relevant container request, when looking up the container output manifest, make sure to include trashed collections in the search.

Back