keda icon indicating copy to clipboard operation
keda copied to clipboard

refactor: Simplify cron scaler code

Open joelsmith opened this issue 6 months ago • 4 comments

The current cron scaler code creates a cron object and starts it (which creates a goroutine and a lot of data to manage a cron engine) just so that it can find the next activation time. It also re-parses the cron strings on each iteration. This update only parses on creation of the trigger, then uses the cron schedule object directly to get the next activation time.

Checklist

joelsmith avatar Aug 09 '24 06:08 joelsmith