diff --git a/status.go b/status.go index 249b67c..352c615 100644 --- a/status.go +++ b/status.go @@ -41,6 +41,13 @@ func NewFailedStatus(reason string) Status { } } +func NewRetryableStatus(reason string) Status { + return Status{ + State: retryable, + Reason: reason, + } +} + func sendStatus(ctx context.Context, req RequestContext, status Status) error { // Don't send the status when evaluating policies locally if os.Getenv("SCOUT_LOCAL_POLICY_EVALUATION") == "true" {