It's not technically a bug, but current behaviour of a mechanism to run a scheduled function just doesn't seem to be correct. Adding a very subtle, safe looking change can cause scheduled events to fail.
Expected Behavior
Event functions should be required to accept kwargs
Actual Behavior
Params passed to functions are different depending if it has varargs or not
Possible Fix
Make "function" in events deprecated, replace it with "handler" or some other key and add checks to ensure that function is correct.
Context
It's not technically a bug, but current behaviour of a mechanism to run a scheduled function just doesn't seem to be correct. Adding a very subtle, safe looking change can cause scheduled events to fail.
Expected Behavior
Event functions should be required to accept kwargs
Actual Behavior
Params passed to functions are different depending if it has varargs or not
Possible Fix
Make "function" in events deprecated, replace it with "handler" or some other key and add checks to ensure that function is correct.
Steps to Reproduce
Your Environment
n/a