Skip to content

Support immediate re-triggering of completed tasks before TTL cleanup #432

@axon-agent

Description

@axon-agent

Background

When a TriggerComment is posted on an issue that already has a completed (but not yet TTL-evicted) Task, the spawner currently skips creating a new task because one already exists. This is the same behavior as the existing label-based flow — once a task is created for an issue, it won't be re-created until TTL cleanup removes it.

This came up during review of #420 (comment-based workflow control). The comment filter correctly identifies the issue for processing, but the spawner deduplication logic prevents re-creation.

Desired Behavior

Allow users to re-trigger work on an issue immediately, without waiting for TTL cleanup. This is not specific to comment-based control — it applies equally to label-based flows.

Possible Approaches

  1. A new field like retriggerPolicy: "DeleteCompleted" — tells the spawner to delete completed tasks when they re-appear in discovery results
  2. Appending a counter/suffix to task names (e.g., spawner-1-v2) — but this complicates the naming convention

Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions