mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Adding migration support to LDAP from other account types (#3655)
This commit is contained in:
committed by
Joram Wilander
parent
528890dba0
commit
f5375254f9
@@ -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