mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## 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.
20 lines
390 B
Go
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)
|
|
}
|