Skip to content

Add rewind to point functionality #2

@lucaslorentz

Description

@lucaslorentz

Implement a rewind to point functionality where you chose the point in history that you want to rewind to.

Algorithm:

  • Find last execution
  • Retrieve all events from last execution
  • Replace all events after the desired point by generic nop events
  • For every removed event of types: TaskCompleted, TaskFailed:
    • Find the corresponding TaskScheduled event and add it to activity queue
  • For every removed event of type: TimerFired
    • Find the corresponding TimerCreated event and add it to orchestration queue
  • For every removed event of types: SubOrchestrationInstanceCompleted, SubOrchestrationInstanceFailed:
    • Find the corresponding SubOrchestrationInstanceCreated event and add it to orchestration queue.
  • If it is a suborchestration, rewind parent orchestration from the suborchestration completed/failed event forward

Concerns:

  • Would this repeat the instanceId of suborchestrations and give it a new execution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions