You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by Nicola Baiocco <ni...@intesys.it> on 2015/01/07 17:44:31 UTC

Synchronization Tasks

Hi all,

Is there a way to get all task executions included the running ones?

Best regards.

[http://www.intesys.it/firme/logo_intesys.jpg]
Nicola Baiocco | Software Developer
Intesys - Via Roveggia 122 A - 37136 Verona
Tel. 045 503663 | Fax 045 503604
nicola.baiocco@intesys.it
www.intesys.it<http://www.intesys.it>
[Great Place to Work]<http://www.intesys.it/Partecipazione-dei-dipendenti/>   [Sito a impatto zero] <http://www.intesys.it/Sostenibilita-Ambientale/>
Le informazioni contenute nella presente e-mail e nei suoi allegati potrebbero essere confidenziali/riservate e sono dirette unicamente ai destinatari sopra indicati. In caso di ricezione da parte di persona diversa è vietato qualunque tipo di divulgazione o copia anche parziale. Chi riceva questo messaggio per errore è pregato di inoltrarlo al mittente e di cancellare questa e-mail.
This e-mail and its attachments may contain confidential/reserved information and is intended only for the use of the address(es) named above. If the reader of this message is not the intended recipient of this message, please note that distribution or copying of this communication is forbidden. Anyone who receives this communication in error should return it immediately to the sender and delete the message.

Re: Synchronization Tasks

Posted by Francesco Chicchiriccò <il...@apache.org>.
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:ilgrosso@apache.org]
> Inviato: giovedì 8 gennaio 2015 08:35
> A: dev@syncope.apache.org
> 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/



R: Synchronization Tasks

Posted by Nicola Baiocco <ni...@intesys.it>.
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.

Best regards.

Nicola Baiocco | Software Developer

Intesys - Via Roveggia 122 A  - 37136 Verona
Tel. 045 503663 | Fax 045 503604
nicola.baiocco@intesys.it
www.intesys.it

Le informazioni contenute nella presente e-mail e nei suoi allegati potrebbero essere confidenziali/riservate e sono dirette unicamente ai destinatari sopra indicati. In caso di ricezione da parte di persona diversa ? vietato qualunque tipo di divulgazione o copia anche parziale. Chi riceva questo messaggio per errore ? pregato di inoltrarlo al mittente e di cancellare questa e-mail.

This e-mail and its attachments may contain confidential/reserved information and is intended only for the use of the address(es) named above. If the reader of this message is not the intended recipient of this message, please note that distribution or copying of this communication is forbidden. Anyone who receives this communication in error should return it immediately to the sender and delete the message. 
-----Messaggio originale-----
Da: Francesco Chicchiriccò [mailto:ilgrosso@apache.org] 
Inviato: giovedì 8 gennaio 2015 08:35
A: dev@syncope.apache.org
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

Re: Synchronization Tasks

Posted by Francesco Chicchiriccò <il...@apache.org>.
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