[MM-54132] Use annotated logger for log messages from jobs (#24275)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fcfcbd9909
Коммит
30b12f199b
@@ -11,6 +11,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
"github.com/mattermost/mattermost/server/public/shared/request"
|
||||
"github.com/mattermost/mattermost/server/v8/channels/product"
|
||||
)
|
||||
|
||||
@@ -734,13 +735,12 @@ type JobStore interface {
|
||||
UpdateOptimistically(job *model.Job, currentStatus string) (bool, error)
|
||||
UpdateStatus(id string, status string) (*model.Job, error)
|
||||
UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, error)
|
||||
Get(id string) (*model.Job, error)
|
||||
GetAllPage(offset int, limit int) ([]*model.Job, error)
|
||||
GetAllByType(jobType string) ([]*model.Job, error)
|
||||
GetAllByTypeAndStatus(jobType string, status string) ([]*model.Job, error)
|
||||
GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, error)
|
||||
GetAllByTypesPage(jobTypes []string, offset int, limit int) ([]*model.Job, error)
|
||||
GetAllByStatus(status string) ([]*model.Job, error)
|
||||
Get(c *request.Context, id string) (*model.Job, error)
|
||||
GetAllByType(c *request.Context, jobType string) ([]*model.Job, error)
|
||||
GetAllByTypeAndStatus(c *request.Context, jobType string, status string) ([]*model.Job, error)
|
||||
GetAllByTypePage(c *request.Context, jobType string, offset int, limit int) ([]*model.Job, error)
|
||||
GetAllByTypesPage(c *request.Context, jobTypes []string, offset int, limit int) ([]*model.Job, error)
|
||||
GetAllByStatus(c *request.Context, status string) ([]*model.Job, error)
|
||||
GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, error)
|
||||
GetNewestJobByStatusesAndType(statuses []string, jobType string) (*model.Job, error)
|
||||
GetCountByStatusAndType(status string, jobType string) (int64, error)
|
||||
|
||||
Ссылка в новой задаче
Block a user