Skip to content
Snippets Groups Projects
Commit c146e221 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

"#17 add task execution documentation"

parent 30890e0f
No related branches found
No related tags found
Loading
Pipeline #51863 passed with stages
in 56 seconds
......@@ -36,6 +36,18 @@ given as input will be used as the body of the task request. The caller will rec
immediately the `taskID` as response, and the result of the asynchronous task
execution will be stored in the TSA Cache after the task is completed.
The actual _Task execution_ is strictly bound to the _Task definition_. In order a _task_
to be executed successfully, its _definition_ **must** contain either a `requestPolicy` OR
`url` and `method`. When a `requestPolicy` is set in the _Task definition_, the task will
evaluate it and will ignore the `url` and the `method`. If a `requestPolicy` is missing in
the _Task definition_, the task will execute an HTTP request to the given `url` with the
given `method`. If both `requestPolicy` AND `url` and `method` are missing in the _Task definition_,
the task cannot be executed. Reference table:
_Task definition_ contains: | `requestPolicy` only | `url` and `method` only | Both `requestPolicy` AND `url` and `method` | Neither
--- | --- | --- | --- |---
**_Task_ will execute** | `requestPolicy` | `url` and `method` | `requestPolicy` | None
### Task Executor Configuration
There are two environment variables that control the level of concurrency
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment