Is there any random time trigger?

Search the keyword “random time” and “random schedule” in the forum, nothing found.

I would like to have a trigger which could be activated once per day at a random time in a given time interval, but the trigger I could find is fixed-time trigger. Is there any api function to assign the trigger value for the next execution? Or is it allowed to run some node code for trigger? The last choice might be “sleep()” in node code, which takes up the execution time limit.

@z19941225110 that’s a cool use case. I’d suggest checking out our task scheduler, which allows you to schedule a workflow execution at a specific time in the future. Once you’ve setup a task scheduler source, you can schedule new tasks a random number of seconds within the next day:

Math.floor(Math.random() * 86400)

Let me know if that helps.