Files
tasks/chasm/lib/scheduler/export_test.go
Roey BermanandGitHub af2f7bdac2 Change chasm.Field.Get signature to not return an error (#8669)
## What changed?

- Also changed other methods that no longer need to return an error
- Also added a `TryGet` method that returns `(T, bool)` in case a nil
check isn't enough
- Fixed various lint warnings that my editor warned about

## Why?

We decided to handle these errors on the framework level instead of the
application level.
2025-11-21 01:10:06 +00:00

20 lines
390 B
Go

package scheduler
import (
"time"
enumspb "go.temporal.io/api/enums/v1"
"go.temporal.io/server/chasm"
)
// Export unexported methods for testing.
func (s *Scheduler) RecordCompletedAction(
ctx chasm.MutableContext,
scheduleTime time.Time,
workflowID string,
workflowStatus enumspb.WorkflowExecutionStatus,
) {
s.recordCompletedAction(scheduleTime, workflowID, workflowStatus)
}