mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-28 00:59:24 +00:00
Sync with mattermost 3.3.0
This commit is contained in:
6
vendor/github.com/mattermost/platform/model/job.go
generated
vendored
6
vendor/github.com/mattermost/platform/model/job.go
generated
vendored
@ -84,6 +84,12 @@ func (task *ScheduledTask) Cancel() {
|
||||
removeTaskByName(task.Name)
|
||||
}
|
||||
|
||||
// Executes the task immediatly. A recurring task will be run regularally after interval.
|
||||
func (task *ScheduledTask) Execute() {
|
||||
task.function()
|
||||
task.timer.Reset(task.Interval)
|
||||
}
|
||||
|
||||
func (task *ScheduledTask) String() string {
|
||||
return fmt.Sprintf(
|
||||
"%s\nInterval: %s\nRecurring: %t\n",
|
||||
|
Reference in New Issue
Block a user