Schedulers timing should be defined per environment - Mendix Forum

Schedulers timing should be defined per environment

3

Hi,

Currently the timing for schedulers is defined in the code, so it’s the same for all environments (also it’s possible enable/disable schedulers).
1. It should be possible to change each scheduler timing for a specific environment
2. It should not be needed to restart an environment to enable/disable, or updating the timing

Cheers,

asked
4 answers

EDIT : this component fits perfectly https://marketplace.mendix.com/link/component/1750
→ No need for anything else, @Mendix please close this idea

Created

Hi Simon,

Thanks for your contribution :)
Actually, I would go even further : IMHO the scheduling should be way more advanced than what it is today, not only dynamic, but also we should be able to define something like in Google Calendar for recurring events : every week at 10pm, or every first monday of the month …
It doesn’t seem very complicated, and it would be super useful

Created

About two: I assume the restart is cruicial to ensure the configuration is safely loaded and changes in the configuration cannot interfere with security or state of running threads. I see many scenarios where a “hot reload” of environment configuration could go wrong.

Created

I vote for the first, but not for the second.

My current workaround is to have an additional environment variable. 

E.g. Scheduled Event is set to interval every minute, environment variable is set to 4. Scheduled event runs checks every minute  with a split but only every fourth minute executes more than the check.

Created