This bundle provides an HTTP entrypoint that allows you to consume tasks using an HTTP request.
Note: The security of this entrypoint is not handled via the bundle.
The path used to trigger tasks can be configured (default to /_tasks
):
# config/packages/scheduler.yaml
scheduler_bundle:
path: /_foo
# ...
The path is available at domain/path
and accept the following situations:
- The request must be made via
GET
HTTP method, theexpression
orname
argument is required
www.domain.com/**_path_**?name=foo
OR
www.domain.com/**_path_**?expression=* * * * *
By default, the worker will consume the exact amount of tasks "due" at the precise moment of the request.
Once executed, a 200
HTTP status code response is returned with the executed tasks in the body.
Note: Both arguments can be passed if required.