Documentation ¶
Overview ¶
Package taskexecutor defines a "production-ready" task executor.
For local/non-production use, consider looking at cmd/localjobs's task executor
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTask ¶
func CreateTask(ctx context.Context, pool *pgxpool.Pool, task tasks.TaskDefinition) (*types.TaskCreateResponse, error)
Sets up a task
func ExecuteTask ¶
func ExecuteTask(taskId string, task tasks.TaskDefinition)
Creates a new task on server and executes it
Types ¶
type MutLogger ¶
func NewTaskLogger ¶
type TaskState ¶
type TaskState struct{}
Implementor of tasks.TaskState
func (TaskState) OperationMode ¶
Click to show internal directories.
Click to hide internal directories.