Then when the step is called in phase when its going through steps:
for step_function in steps:
...
step_function(batch, context)
It doesn't work - it doesn't even go into the function, I think. This seems like something that might bite a developer pretty easily - they forget to add the 'context' param, which they don't even want, and can't figure out why their step isn't even running.
I found out that with the python 'inspect' library one can look at the function's signature and see if it expects a context, and only then pass the context.
When the step doesn't declare context:
Then when the step is called in phase when its going through steps:
It doesn't work - it doesn't even go into the function, I think. This seems like something that might bite a developer pretty easily - they forget to add the 'context' param, which they don't even want, and can't figure out why their step isn't even running.
I found out that with the python 'inspect' library one can look at the function's signature and see if it expects a context, and only then pass the context.