Sorry last message was sent too soon. Please let me know if there is way to
check for the completion of the task that is sent for execution.

In 2.1.6 Syncope, is there a better way to figure out the completion of a
task that was executed/started. As the tasks are asynchronous.

In 2.1.5 Syncope - we did a work around by looping through the recent REST
command and looking at the start time and figured out if the task is
completed..

We first sent the task to execute: /syncope/rest/tasks/
<TASKID>/execute?false
Then looped through to read the start time of the recent REST executed for
the same Task ID....
With 2.1.5 the start time returned had this format with Z... But with 2.1.6
the format of the start date returned seems to be changing - with Z and
without z and also
/syncope/rest/tasks/executions/recent?max=1


There seems to be some changes in formatting of the Start time...
*syncope 2.1.5*

<syncope21:execs xmlns:syncope21="http://syncope.apache.org/2.1";>
<syncope21:exec xmlns:syncope21="http://syncope.apache.org/2.1";>
<end>2020-05-29T16:02:32.702Z</end>
<start>2020-05-29T16:02:32.596Z</start>
<jobType>TASK</jobType>
<key>fbc6296f-2220-4ce2-8629-6f2220cce216</key>
<message>Users [created/failures]: 0/0 [updated/failures]: 0/0
[deleted/failures]: 0/0 [no operation/ignored]: 0/0 Groups
[created/failures]: 0/0 [updated/failures]: 0/0 [deleted/failures]: 0/0 [no
operation/ignored]: 0/0 </message>
<refDesc>PULL Task 91c2ec86-1de7-46e9-82ec-861de7c6e91a
Add_new_user_to_Sactive</refDesc>
<refKey>91c2ec86-1de7-46e9-82ec-861de7c6e91a</refKey>
<status>SUCCESS</status>
</syncope21:exec>
</syncope21:execs>

======================================== '%Y-%m-%dT%H:%M:%S.%fZ'
*2.1.6*
<syncope21:execs xmlns:syncope21="http://syncope.apache.org/2.1";>
<syncope21:exec xmlns:syncope21="http://syncope.apache.org/2.1";>
<end>2020-05-29T15:41:56.928+0000</end>
<start>2020-05-29T15:41:56.066+0000</start>

Reply via email to