On 09/01/2015 15:46, Nicola Baiocco wrote:
Hi Francesco,
I did it in the same way as you said, but in task executions list I found only finished
executions not the running ones (example: status FAILURE or SUCCESS and not "IN
PROGRESS").
For example, if I run a dry run simulation and immediately search it in my task
executions list, I'm not able to find it until its end.
Hope this will clarify my previous message.
Hi Nicola,
I understand, you are right: as you can see from the relevant code [2],
any task execution is only saved after completion.
Actually, I do believe there is room for a global improvement in this
area: task executions should be much more under admin control: see the
current status for all, pause / stop, re-start...
Naturally, all this requires some consistent work and possibly some API
/ storage changes, so it should be set for 1.3 (at least).
WDYT?
-----Messaggio originale-----
Da: Francesco Chicchiriccò [mailto:[email protected]]
Inviato: giovedì 8 gennaio 2015 08:35
A: [email protected]
Oggetto: Re: Synchronization Tasks
On 07/01/2015 17:44, Nicola Baiocco wrote:
Hi all,
Is there a way to get all task executions included the running ones?
Hi Nicola,
have you taken a look at the REST API reference [1]?
I think that
GET /tasks/{taskId}
where taskId is the synchronization task id should provide the information that
you are looking for.
HTH
Regards.
[1] http://syncope.apache.org/rest/1.2/index.html
[2]
https://github.com/apache/syncope/blob/1_2_X/core/src/main/java/org/apache/syncope/core/quartz/AbstractTaskJob.java#L138
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/