You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of #321: step 6 "Provenance", as decided there. Serving it is #322.
Proposal
run.provenance() stored in the task document (provenance) via foca.plugins.ProvenanceStore: the prospective part at creation, the retrospective part (attempts, final reason) with the backend update.
Collections plugin_builds and pipelines (and one for failed runs) declared in the db config with the indexes FOCA documents (TTL index for failed runs).
Failed pipelines stored only if plugins.provenance.record_failed (default off).
Tests with 100% coverage; docs (operations: collections, retention) and "Upgrading" (new collections; existing tasks have no provenance).
Acceptance criteria
New tasks have their provenance stored; failed runs only with record_failed.
Tests pass with 100% coverage; docs build and pre-commit pass.
Activity
fix: record accepted attempt before tracking