Merge pull request #8254 from dokku/8242-cron-run

Add a test to prove cron:run commands work as expected
This commit is contained in:
Jose Diaz-Gonzalez
2026-01-04 23:51:10 -05:00
committed by GitHub
9 changed files with 264 additions and 9 deletions

View File

@@ -0,0 +1,29 @@
{
"cron": [
{
"command": "python3 task.py some cron task",
"schedule": "5 5 5 5 5"
}
],
"healthchecks": {
"web": [
{
"attempts": 2,
"content": "python/http.server",
"name": "check-1",
"path": "/",
"timeout": 5,
"type": "startup",
"wait": 2
}
]
},
"scripts": {
"dokku": {
// this is a comment for the postdeploy script
"postdeploy": "touch /workspace/postdeploy.test",
// this is a comment for the predeploy script
"predeploy": "touch /workspace/predeploy.test"
}
}
}

View File

@@ -18,4 +18,4 @@
"predeploy": "touch /workspace/predeploy.test"
}
}
}
}

View File

@@ -0,0 +1,29 @@
{
"cron": [
{
"command": "python3 task.py some cron task",
"schedule": "5 5 5 5 5"
}
],
"healthchecks": {
"web": [
{
"attempts": 2,
"content": "python/http.server",
"name": "check-1",
"path": "/",
"timeout": 5,
"type": "startup",
"wait": 2
}
]
},
"scripts": {
"dokku": {
// this is a comment for the postdeploy script
"postdeploy": "touch /app/postdeploy.test",
// this is a comment for the predeploy script
"predeploy": "touch /app/predeploy.test"
}
}
}