Skip to content

Commit 0f70699

Browse files
fix: execute correct function reaper workflow (#828)
This change fixes a bug in `ExecuteProjectFunctionsReaperWorkflow` where it was running the wrong workflow (`ProcessDeploymentWorkflow` instead of `FunctionsReaperWorkflow`).
1 parent 43f8702 commit 0f70699

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/pink-shirts-lay.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"server": patch
3+
---
4+
5+
Fixed a bug in `ExecuteProjectFunctionsReaperWorkflow` where it was running the
6+
wrong workflow (`ProcessDeploymentWorkflow` instead of
7+
`FunctionsReaperWorkflow`).

server/internal/background/functions_reaper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func ExecuteProjectFunctionsReaperWorkflow(ctx context.Context, temporalClient c
3232
WorkflowIDConflictPolicy: enums.WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING,
3333
WorkflowIDReusePolicy: enums.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE,
3434
WorkflowRunTimeout: time.Minute * 10,
35-
}, ProcessDeploymentWorkflow, FunctionsReaperWorkflowParams{
35+
}, FunctionsReaperWorkflow, FunctionsReaperWorkflowParams{
3636
Scope: activities.FunctionsReaperScopeProject,
3737
ProjectID: uuid.NullUUID{UUID: projectID, Valid: projectID != uuid.Nil},
3838
})

0 commit comments

Comments
 (0)