Documentation
¶
Index ¶
- Constants
- func GetMigrationState(migration string, store store.Store) (string, *model.Job, *model.AppError)
- func MakeMigrationsList() []string
- func MakeScheduler(jobServer *jobs.JobServer, store store.Store) model.Scheduler
- func MakeWorker(jobServer *jobs.JobServer, store store.Store) model.Worker
- type AdvancedPermissionsPhase2Progress
- type Scheduler
- func (scheduler *Scheduler) Enabled(_ *model.Config) bool
- func (scheduler *Scheduler) NextScheduleTime(cfg *model.Config, now time.Time, pendingJobs bool, ...) *time.Time
- func (scheduler *Scheduler) ScheduleJob(cfg *model.Config, pendingJobs bool, lastSuccessfulJob *model.Job) (*model.Job, *model.AppError)
- type Worker
Constants ¶
View Source
const ( MigrationStateUnscheduled = "unscheduled" MigrationStateInProgress = "in_progress" MigrationStateCompleted = "completed" JobDataKeyMigration = "migration_key" JobDataKeyMigrationLastDone = "last_done" )
View Source
const (
MigrationJobWedgedTimeoutMilliseconds = 3600000 // 1 hour
)
View Source
const (
TimeBetweenBatches = 100
)
Variables ¶
This section is empty.
Functions ¶
func GetMigrationState ¶
func MakeMigrationsList ¶
func MakeMigrationsList() []string
func MakeScheduler ¶
Types ¶
type AdvancedPermissionsPhase2Progress ¶
type AdvancedPermissionsPhase2Progress struct { CurrentTable string `json:"current_table"` LastTeamId string `json:"last_team_id"` LastChannelId string `json:"last_channel_id"` LastUserId string `json:"last_user"` }
func AdvancedPermissionsPhase2ProgressFromJSON ¶
func AdvancedPermissionsPhase2ProgressFromJSON(data io.Reader) *AdvancedPermissionsPhase2Progress
func (*AdvancedPermissionsPhase2Progress) IsValid ¶
func (p *AdvancedPermissionsPhase2Progress) IsValid() bool
func (*AdvancedPermissionsPhase2Progress) ToJSON ¶
func (p *AdvancedPermissionsPhase2Progress) ToJSON() string
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func (*Scheduler) NextScheduleTime ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) JobChannel ¶
Click to show internal directories.
Click to hide internal directories.