WIP: convert GORM to sqlc, for jobs/tasks #104304
@ -39,7 +39,6 @@ type PersistenceService interface {
|
|||||||
// FetchTaskJobUUID fetches the UUID of the job this task belongs to.
|
// FetchTaskJobUUID fetches the UUID of the job this task belongs to.
|
||||||
FetchTaskJobUUID(ctx context.Context, taskID string) (string, error)
|
FetchTaskJobUUID(ctx context.Context, taskID string) (string, error)
|
||||||
FetchTaskFailureList(context.Context, *persistence.Task) ([]*persistence.Worker, error)
|
FetchTaskFailureList(context.Context, *persistence.Task) ([]*persistence.Worker, error)
|
||||||
SaveTask(ctx context.Context, task *persistence.Task) error
|
|
||||||
SaveTaskActivity(ctx context.Context, t *persistence.Task) error
|
SaveTaskActivity(ctx context.Context, t *persistence.Task) error
|
||||||
// TaskTouchedByWorker marks the task as 'touched' by a worker. This is used for timeout detection.
|
// TaskTouchedByWorker marks the task as 'touched' by a worker. This is used for timeout detection.
|
||||||
TaskTouchedByWorker(context.Context, *persistence.Task) error
|
TaskTouchedByWorker(context.Context, *persistence.Task) error
|
||||||
|
Loading…
Reference in New Issue
Block a user