Skip to main content

Water Cooler

This space is for everyone to ask questions related to the Community Platform. It's a space for us to get to know each other and have some fun! Come in and gather around the Water Cooler!

cancel
Showing results for 
Search instead for 
Did you mean: 
Francisco_SP
Contributor II
Contributor II

Run a task in a hourly basis for everyday and stopping at 18:00

Hi,

At the moment, I have an hourly task runing 24/7. But I would like to run it from 08:00 to 18:00 everyday.

How can I stop the task at 18:00 and run it the next day at 08:00 automatically? Can anyone help please?

Thanks,

Francisco

 
 
 
Labels (1)
1 Solution

Accepted Solutions
martinpohl
Partner - Master
Partner - Master

by default, you can't

but there is a workaround

create a dummy file. there in the script check the actual time

if hour(now()) >= 8 and hour(now()) <= 18 then

// ok

else

error

endif

create a task every hour

then let your app run not on schedule but depending on successful run of the first task.

from 8-18 the task runs successful, your app is running, the other time ist runs to an error, your app is not running

View solution in original post

2 Replies
martinpohl
Partner - Master
Partner - Master

by default, you can't

but there is a workaround

create a dummy file. there in the script check the actual time

if hour(now()) >= 8 and hour(now()) <= 18 then

// ok

else

error

endif

create a task every hour

then let your app run not on schedule but depending on successful run of the first task.

from 8-18 the task runs successful, your app is running, the other time ist runs to an error, your app is not running

Francisco_SP
Contributor II
Contributor II
Author

Thank you for your quick answer