-
Feature Request
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
None
AT:
- It is possible to lock a certain external task (identified by id) for a workerId
- In Java API and REST API
- Java External Task Client
Background:
- Currently it is not possible to define any filters when doing fetchAndLock. The simplest workaround is to do an external-task query (existing) and then lock the tasks you are interested in one by one yourself.
This is the controller panel for Smart Panels app
1.
|
The ExternalTaskService can lock a task by its id |
|
Closed | Unassigned |
2.
|
An External Task Rest endpoint is available to lock a task by its id |
|
Closed | Nikola Koevski |
3.
|
The External Task (Java) Client can lock a task by its id |
|
Closed | Unassigned |
4.
|
The External Task (JS) Client can lock a task by its id |
|
Closed | Hariharan Parasuraman |
Fully agree with that request. Sometimes we need to get the tasks and then decide thereafter which ones we want to lock, according to processing made on the task data. We need a way to separate the Fetch from the Lock.
I propose to implement a Lock API (there is already an Unlock API !). It must of course handles gracefully the case where multiple Lock requests are made at the same time for the same task.