feat: add ability to specify a concurrency policy for crons in the app.json file
This commit is contained in:
2 files changed
+4
No files matched your search
@@ -23,6 +23,7 @@
|
|||||||
- `command`: (string, required)
|
- `command`: (string, required)
|
||||||
- `maintenance`: (boolean, optional)
|
- `maintenance`: (boolean, optional)
|
||||||
- `schedule`: (string, required)
|
- `schedule`: (string, required)
|
||||||
|
- `concurrency_policy`: (string, optional, default: `allow`, options: `allow`, `deny`, `replace`)
|
||||||
|
|
||||||
## Formation
|
## Formation
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ type CronTask struct {
|
|||||||
|
|
||||||
// Schedule is the cron schedule to execute the command on
|
// Schedule is the cron schedule to execute the command on
|
||||||
Schedule string `json:"schedule"`
|
Schedule string `json:"schedule"`
|
||||||
|
|
||||||
|
// ConcurrencyPolicy is the concurrency policy for the cron command
|
||||||
|
ConcurrencyPolicy string `json:"concurrency_policy"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Formation is a struct that represents the scale for a process from an app.json file
|
// Formation is a struct that represents the scale for a process from an app.json file
|
||||||
|
|||||||
Reference in new issue
Block a user