Documentation ¶
Index ¶
- Constants
- func GetMigrationState(migration string, store store.Store) (string, *model.Job, *model.AppError)
- func MakeMigrationsList() []string
- type AdvancedPermissionsPhase2Progress
- type MigrationsJobInterfaceImpl
- type Scheduler
- func (scheduler *Scheduler) Enabled(_ *model.Config) bool
- func (scheduler *Scheduler) JobType() string
- func (scheduler *Scheduler) Name() string
- 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" JobDataKeyMigration_LAST_DONE = "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
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 MigrationsJobInterfaceImpl ¶
type MigrationsJobInterfaceImpl struct {
// contains filtered or unexported fields
}
func (*MigrationsJobInterfaceImpl) MakeScheduler ¶
func (m *MigrationsJobInterfaceImpl) MakeScheduler() model.Scheduler
func (*MigrationsJobInterfaceImpl) MakeWorker ¶
func (m *MigrationsJobInterfaceImpl) MakeWorker() model.Worker
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.