Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Any failed tasks should sit in pending after 5 retries - Job advanced query(SQL)configuration

Shanthi_Katkam
New Contributor
New Contributor

There's a requirement where any failed tasks should sit in pending after 5 retries, which should not process the task if they have the number of retries as >=5. 

Someone please provide me an advanced query (SQL).

5 REPLIES 5

Amit_Malik
Valued Contributor II
Valued Contributor II

Security system has this setting 

Amit_Malik_0-1725528998193.pngAmit_Malik_1-1725529054440.png

 

If you still want those in pending but job wont pick, thn below is the query in advance config of wsretry job

and at.provisioningtries <=5

Amit_Malik_2-1725529458632.png

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

Shanthi_Katkam
New Contributor
New Contributor

Thanks for the sharing the details. 
I am also looking for the specific security system (Ex: 9,10,11,12) and status key not in (3,4,8,9). 

and at.provisioningtries <=5 and at.status='3'

security system , you can select in BASIC

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

NM
Esteemed Contributor
Esteemed Contributor

@Shanthi_Katkam apply the same filter for status .. at.staus in ('3')


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

rushikeshvartak
All-Star
All-Star

@Shanthi_Katkam  Please use below configuration

and at.provisioningtries <=5 and at.SECURITYSYSTEM in (9,10,11,12) and at.status not in (3,4,8,9)

You don't need to add status condition as WSRETRY only consider 1 = New Tasks

rushikeshvartak_0-1725546434056.png

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.