Documentation ¶
Index ¶
- Constants
- func GenerateNextStartDateTime(now time.Time, nextStartTime time.Time) *time.Time
- type ConfigService
- type JobServer
- func (srv *JobServer) CancellationWatcher(ctx context.Context, jobId string, cancelChan chan interface{})
- func (srv *JobServer) CheckForPendingJobsByType(jobType string) (bool, *model.AppError)
- func (srv *JobServer) ClaimJob(job *model.Job) (bool, *model.AppError)
- func (srv *JobServer) Config() *model.Config
- func (srv *JobServer) CreateJob(jobType string, jobData map[string]string) (*model.Job, *model.AppError)
- func (srv *JobServer) GetJob(id string) (*model.Job, *model.AppError)
- func (srv *JobServer) GetLastSuccessfulJobByType(jobType string) (*model.Job, *model.AppError)
- func (srv *JobServer) InitSchedulers() *Schedulers
- func (srv *JobServer) InitWorkers() *Workers
- func (srv *JobServer) LoadLicense()
- func (srv *JobServer) MakeTestWorker(name string) *TestWorker
- func (srv *JobServer) MakeWatcher(workers *Workers, pollingInterval int) *Watcher
- func (srv *JobServer) RequestCancellation(jobId string) *model.AppError
- func (srv *JobServer) SetJobCanceled(job *model.Job) *model.AppError
- func (srv *JobServer) SetJobError(job *model.Job, jobError *model.AppError) *model.AppError
- func (srv *JobServer) SetJobProgress(job *model.Job, progress int64) *model.AppError
- func (srv *JobServer) SetJobSuccess(job *model.Job) *model.AppError
- func (srv *JobServer) StartSchedulers()
- func (srv *JobServer) StartWorkers()
- func (srv *JobServer) StopSchedulers()
- func (srv *JobServer) StopWorkers()
- type Schedulers
- type StaticConfigService
- type TestWorker
- type Watcher
- type Workers
Constants ¶
View Source
const (
CANCEL_WATCHER_POLLING_INTERVAL = 5000
)
View Source
const (
DEFAULT_WATCHER_POLLING_INTERVAL = 15000
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigService ¶
type JobServer ¶
type JobServer struct { ConfigService ConfigService Store store.Store Workers *Workers Schedulers *Schedulers DataRetentionJob ejobs.DataRetentionJobInterface MessageExportJob ejobs.MessageExportJobInterface ElasticsearchAggregator ejobs.ElasticsearchAggregatorInterface ElasticsearchIndexer ejobs.ElasticsearchIndexerInterface LdapSync ejobs.LdapSyncInterface }
func NewJobServer ¶
func NewJobServer(configService ConfigService, store store.Store) *JobServer
func (*JobServer) CancellationWatcher ¶
func (*JobServer) CheckForPendingJobsByType ¶
func (*JobServer) GetLastSuccessfulJobByType ¶
func (*JobServer) InitSchedulers ¶
func (srv *JobServer) InitSchedulers() *Schedulers
func (*JobServer) InitWorkers ¶
func (*JobServer) LoadLicense ¶
func (srv *JobServer) LoadLicense()
func (*JobServer) MakeTestWorker ¶
func (srv *JobServer) MakeTestWorker(name string) *TestWorker
func (*JobServer) MakeWatcher ¶
func (*JobServer) RequestCancellation ¶
func (*JobServer) SetJobCanceled ¶
func (*JobServer) SetJobError ¶
func (*JobServer) SetJobProgress ¶
func (*JobServer) SetJobSuccess ¶
func (*JobServer) StartSchedulers ¶
func (srv *JobServer) StartSchedulers()
func (*JobServer) StartWorkers ¶
func (srv *JobServer) StartWorkers()
func (*JobServer) StopSchedulers ¶
func (srv *JobServer) StopSchedulers()
func (*JobServer) StopWorkers ¶
func (srv *JobServer) StopWorkers()
type Schedulers ¶
type Schedulers struct {
// contains filtered or unexported fields
}
func (*Schedulers) Start ¶
func (schedulers *Schedulers) Start() *Schedulers
func (*Schedulers) Stop ¶
func (schedulers *Schedulers) Stop() *Schedulers
type StaticConfigService ¶
func (StaticConfigService) AddConfigListener ¶
func (StaticConfigService) AddConfigListener(func(old, current *model.Config)) string
func (StaticConfigService) Config ¶
func (s StaticConfigService) Config() *model.Config
func (StaticConfigService) RemoveConfigListener ¶
func (StaticConfigService) RemoveConfigListener(string)
type TestWorker ¶
type TestWorker struct {
// contains filtered or unexported fields
}
func (*TestWorker) DoJob ¶
func (worker *TestWorker) DoJob(job *model.Job)
func (*TestWorker) JobChannel ¶
func (worker *TestWorker) JobChannel() chan<- model.Job
func (*TestWorker) Run ¶
func (worker *TestWorker) Run()
func (*TestWorker) Stop ¶
func (worker *TestWorker) Stop()
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func (*Watcher) PollAndNotify ¶
func (watcher *Watcher) PollAndNotify()
Click to show internal directories.
Click to hide internal directories.