tasks

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRunningTask = errors.New("task failed")

Functions

func NewKeystorePoolFiller

func NewKeystorePoolFiller(
	updater KeystorePoolFiller,
	repo repo.Repo,
	poolConfig config.KeystorePool,
) async.TaskHandler

func NewNotificationSender

func NewNotificationSender(
	client NotificationClient,
) async.TaskHandler

func NewWorkflowProcessor

func NewWorkflowProcessor(
	updater WorkflowUpdater,
	repo repo.Repo,
) async.TaskHandler

Types

type KeystorePoolFiller

type KeystorePoolFiller interface {
	FillKeystorePool(ctx context.Context, size int) error
}

type NotificationClient

type NotificationClient interface {
	CreateNotification(ctx context.Context, notif client.Data) error
}

type WorkflowProcessor

type WorkflowProcessor struct {
	// contains filtered or unexported fields
}

func (*WorkflowProcessor) ProcessTask

func (s *WorkflowProcessor) ProcessTask(ctx context.Context, task *asynq.Task) error

func (*WorkflowProcessor) TaskType

func (s *WorkflowProcessor) TaskType() string

type WorkflowUpdater

type WorkflowUpdater interface {
	AutoAssignApprovers(ctx context.Context, workflowID uuid.UUID) (*model.Workflow, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL