temporalio / temporalio/temporal

Allow retention period to be set per workflow completion type

Open
#2,617 8 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Is your feature request related to a problem? Please describe.
Currently setting retention period does not take in account workflow completion type. For example users would like to
set a different retention period for "Completed" vs "Failed" workflows.

Describe the solution you'd like
Allow to set workflow completion type when updating retention for a namespace in
tctl namespace update --retention X

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the tctl namespace update --retention X entry point and trace how namespace retention is updated. Define how retention differs for Completed and Failed workflows, then verify that separate periods are accepted and applied for each completion type.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.