How to not re-run a Scheduled Job once it has been executed during that day
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2022 05:01 PM
I have a scheduled job that runs once an hour.
Is it possible to set it up so that once "Condition" is met and the process is executed, it will not be executed for the rest of the day?
Currently, I check to see if there is a result of executing the process in "Condition".
Is there any other way to do this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2022 05:16 PM
Hello,
Perhaps you can tell us a bit more about this scheduled job and what it's doing because it you don't want it to run more than once, then you wouldn't want it to run every hour.
If it's running to check if 'x' has happened (so sometimes it's not, yet), then you can run a small script/function first before the rest is executed.
Otherwise, you'd need to script something to perhaps set the scheduled job to inactive if you don't want anything regarding it running at all (even in condition some script is running). Then perhaps have another scheduled job at 12:01AM, for example, set this scheduled job back to active (if not already).
Again, not sure of the use case and if there's an opportunity for things like wait for condition, etc. in flows versus a scheduled job, but the above is an idea.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2022 10:54 PM
Thank you for you comment.
I want to perform an import process on two tables once a day.
After the two import processes are completed, we want to perform a specific process.
We want to do this specific process once a day as well as the import process.
We use Scheduled job to periodically check whether the conditions for performing the specific processing have been met or not.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2022 12:20 PM
Hello,
You can create on onComplete, if using a transform map for the import to then do 'x' (your process). This mitigates having a scheduled job running over and over to check for it, etc.
Else, if not using a transform map, the point is, you should be able to fire/trigger that process once the import is done.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!