My app is running a lot of backend workflows on a daily basis. Every now and then a new database entry triggers a complex workflow, but it is cancelled because the server is overloaded at the time.
This is usually in short intervals.
What could be really great is an “only when” that prevents a certain workflow to run if the server is overloaded. Or even better to schedule the workflow when the average CPU usage is below a threshold. Eg.
The “average CPU usage” over the past “2 hours” is < "50%"
The side benefit to getting smoother app experiences, is a better CPU distribution on the AWS servers.