This allows alternative plugins - such as dokku-letsencrypt - to inject scheduled cron tasks into the cron system used by Dokku. Cron systems can choose to include or not include a cron task based on the specified scheduler, and can also optionally use a third parameter to store arbitrary information.
17 lines
380 B
Go
17 lines
380 B
Go
package cron
|
|
|
|
// TriggerPostDelete updates the cron entries for all apps
|
|
func TriggerPostDelete() error {
|
|
return writeCronEntries()
|
|
}
|
|
|
|
// TriggerPostDeploy updates the cron entries for all apps
|
|
func TriggerPostDeploy() error {
|
|
return writeCronEntries()
|
|
}
|
|
|
|
// TriggerCronWrite force updates the cron file for all apps
|
|
func TriggerCronWrite() error {
|
|
return writeCronEntries()
|
|
}
|