feat: add initial scheduled task implementation

This functionality enables users to manage a global crontab for the Dokku user that contains all scheduled tasks across all apps. Alternative schedulers can implement cron tasks as desired.
This commit is contained in:
Jose Diaz-Gonzalez
2021-01-18 18:15:42 -05:00
parent e00e498e50
commit f7ef14d737
23 changed files with 1026 additions and 391 deletions

View File

@@ -6,7 +6,7 @@ import (
"os"
"strings"
"github.com/dokku/dokku/plugins/app-json"
appjson "github.com/dokku/dokku/plugins/app-json"
"github.com/dokku/dokku/plugins/common"
)
@@ -18,6 +18,11 @@ func main() {
var err error
switch trigger {
case "install":
err = appjson.TriggerInstall()
case "post-delete":
appName := flag.Arg(0)
err = appjson.TriggerPostDelete(appName)
case "post-deploy":
appName := flag.Arg(0)
imageTag := flag.Arg(3)