forked from kenzuya/unshackle
fix(api): check serve and service dl defaults at job admission
This commit is contained in:
@@ -538,6 +538,8 @@ profile, never a service's own `--profile` option.
|
||||
|
||||
On the server, unshackle merges the effective parameters in this order: defaults → `serve:` config overrides → service-specific defaults → your request body.
|
||||
|
||||
The server checks each `serve:` and `services.<TAG>.dl` value that a job uses with the rules of a request body. A bad value refuses the job with `400 INVALID_PARAMETERS`, and the message starts with the config block, for example `serve: workers must be a positive integer`. A value that your request body replaces is not checked.
|
||||
|
||||
| Status | Error code | Meaning |
|
||||
| --- | --- | --- |
|
||||
| `202` | - | Job queued. |
|
||||
|
||||
Reference in New Issue
Block a user