Skip to content

Add task iteration on Task Context for repeteable tasks #1329

Description

@fjtirado

For this workflow

document:
  dsl: 1.0.0-alpha5
  namespace: example
  name: SwitchLoopWait
  version: 0.1.0
do:
  - inc:
     set:
        count: ${.count+1}
     then: looping
  - looping:
       switch:
         - loopCount:
             when: .count < ($workflow.input.maxCount // 10000)
             then: waitABit
         - default:
             then: exit
  - waitABit:
       wait:
         milliseconds: 1000
       then: inc

The looping task is repeteable, meaning that task events for the same position and status combination might be triggered more than once.
It would be nice to be able to distinguish different executions of that task. One possible solution is to add an iteration property to TaskContext

Activity

  1. self-assigned this
    on Apr 21, 2026
  2. added 17 commits that reference this issue on Apr 23, 2026
    3f14e2d
    4e91f5f
    59be63b
    bb168e7
    677b1e9
    ec32ba5
    62dc868
    e499187
    bb29698
    ba91735
    f0cbc8a
    5b3d93d
    e7e8da6
    153612a
    fb1eb6b
    9b3c352
    8fdb84d
  3. added a commit that references this issue on Apr 24, 2026
    99a360d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions