Skip to content

Conversation

@acroca
Copy link
Member

@acroca acroca commented Jan 23, 2026

Adds support for workflow versioning additions in the dapr workflow commands.

This is how a version-name stalled workflow looks like after renaming test_workflow_v1:

❯ go run . workflow history 962867e6368146debf3947c74dae922b -k -o wide
PLAY  TYPE                 NAME           TIMESTAMP             ELAPSED    STATUS   DETAILS        ROUTER        EXECUTION ID                          ATTRS                                                                          
0     ExecutionStarted     test_workflow  2026-01-22T14:44:02Z  Age:15.8h  RUNNING  workflowStart  workflows-py  298044a0-fe82-4234-8be0-5e690b537af1  input=2026-01-22T14:44:02.728101                                               
1     OrchestratorStarted                 2026-01-22T14:44:02Z  25.3ms     RUNNING  replay                                                             versionName=test_workflow_v1                                                      
1     ExecutionStalled                    2026-01-22T14:52:57Z  8.9m       STALLED                                                                     reason=VERSION_NAME_MISMATCH;description=Version not available: test_workflow_v1  

This is how a patch stalled workflow looks like after removing patch2:

❯ go run . workflow history 2bb6a7e4ed1243789326f44d0b7e7dd4 -k -o wide
PLAY  TYPE                 NAME                     EVENTID  TIMESTAMP             ELAPSED     STATUS   DETAILS        ROUTER        EXECUTION ID                          ATTRS                                                                                                            
0     ExecutionStarted     test_workflow                     2026-01-23T06:43:17Z  Age:29.98s  RUNNING  workflowStart  workflows-py  f9425ce4-e0de-475a-9eaf-9c4cab8730af  input=2026-01-23T06:43:17.879177                                                                                 
1     OrchestratorStarted                                    2026-01-23T06:43:17Z  6.7ms       RUNNING  replay                                                             versionPatches=patch1                                                                                            
1     TaskScheduled        random_number_generator  1        2026-01-23T06:43:17Z  1.7ms       RUNNING                 workflows-py                                                                                                                                                         
1     TaskCompleted                                          2026-01-23T06:43:17Z  9.0ms       RUNNING  eventId=1      workflows-py                                        scheduledId=1;output=3292                                                                                        
2     OrchestratorStarted                                    2026-01-23T06:43:17Z  13.5ms      RUNNING  replay                                                             versionPatches=patch2                                                                                            
2     TaskScheduled        random_number_generator  2        2026-01-23T06:43:17Z  9.3ms       RUNNING                 workflows-py                                                                                                                                                         
2     ExecutionStalled                                       2026-01-23T06:43:17Z  20.7ms      STALLED                                                                     reason=PATCH_MISMATCH;description=Patch mismatch. History patches: [patch1, patch2], current patches: [patch1].  

And this is a workflow list:

❯ go run . workflow list -k -o wide
NAMESPACE  APP ID        NAME           INSTANCE ID                       CREATED               LAST UPDATE           STATUS     FAILURE MESSAGE                                                                                                                      
default    workflows-py  test_workflow  962867e6368146debf3947c74dae922b  2026-01-22T14:44:02Z  2026-01-22T14:52:57Z  STALLED 

Signed-off-by: Albert Callarisa <albert@diagrid.io>
@acroca acroca requested review from a team as code owners January 23, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants