and more in a single search tool across platforms. Read the announcement here. |
01/17/2024 08:45 PM
Hi all,
I want to schedule a job to send an email notification when the pending job reach at a certain point for example if pending job is greater than 20k. How can we achieve this.
Thanks.
Solved! Go to Solution.
01/17/2024 08:46 PM - edited 01/17/2024 08:47 PM
What is 20k ? Do you mean total running jobs above 20000 ?
01/17/2024 08:52 PM
Yes number of pending tasks
01/17/2024 08:59 PM
select 'admin' as username, count(*) as totaltasks from arstasks where status=1 group by status having count > 2000
01/17/2024 09:23 PM
I also want to send a email notification to the admin if the pending task are greater than 20000 for example. How can i achieve this?
01/17/2024 09:26 PM - edited 01/17/2024 09:28 PM
01/17/2024 09:30 PM
okay this works but I dont want to run the query manually it must be automatic when the pending job reaches 2000 then it must automatically send the email , how that can be done ?
01/17/2024 09:46 PM
Scheduled report every 1 hour
01/17/2024 10:07 PM
Is there any other way to do same ?
01/17/2024 10:10 PM
Only this is way
01/17/2024 09:44 PM
@void0703 One of the option could be scheduling the analytics to run after every 30 min and in case it breaches the threshold as part of query you can trigger an email.