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(cfg *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 ( MIGRATION_STATE_UNSCHEDULED = "unscheduled" MIGRATION_STATE_IN_PROGRESS = "in_progress" MIGRATION_STATE_COMPLETED = "completed" JOB_DATA_KEY_MIGRATION = "migration_key" JOB_DATA_KEY_MIGRATION_LAST_DONE = "last_done" )
View Source
const (
MIGRATION_JOB_WEDGED_TIMEOUT_MILLISECONDS = 3600000 // 1 hour
)
View Source
const (
TIME_BETWEEN_BATCHES = 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 ¶
func (*MigrationsJobInterfaceImpl) MakeScheduler ¶
func (m *MigrationsJobInterfaceImpl) MakeScheduler() model.Scheduler
func (*MigrationsJobInterfaceImpl) MakeWorker ¶
func (m *MigrationsJobInterfaceImpl) MakeWorker() model.Worker
type Scheduler ¶
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.