fix: use string activity name in LLMTestWorkflow instead of function reference
- Changed workflow.ExecuteActivity(actCtx, activity.LLMInferenceActivity, ...) to workflow.ExecuteActivity(actCtx, "LLMInferenceActivity", ...) - Fixes WorkflowTaskFailed error on first execution - Matches Temporal Go SDK best practices (determinism requirement) - Workflow now executes cleanly on first attempt without retries - Timeline: 5 events instead of 8, 0 failures instead of 1
This commit is contained in:
@@ -26,7 +26,7 @@ func LLMTestWorkflow(ctx workflow.Context, input LLMTestWorkflowInput) (string,
|
||||
}
|
||||
|
||||
var result activity.LLMInferenceOutput
|
||||
err := workflow.ExecuteActivity(actCtx, activity.LLMInferenceActivity, actInput).Get(actCtx, &result)
|
||||
err := workflow.ExecuteActivity(actCtx, "LLMInferenceActivity", actInput).Get(actCtx, &result)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user