You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running an async @task locally, the args and kwargs are passed as they are (even if they're not JSON Serializable).
It would be nice to have this check when running locally so we can test for and predict failures of that kind.
Expected Behavior
When a @task is run locally with invalid args/kwargs (non-serializable), it should break/raise an exception as this is the actual behavior when it's deployed.
Actual Behavior
When a @task is run locally with invalid args/kwargs (non-serializable), it just runs as a normal function and therefore, we can't catch errors of this kind in the tests.
Context
@task
locally, theargs
andkwargs
are passed as they are (even if they're not JSON Serializable).Expected Behavior
@task
is run locally with invalid args/kwargs (non-serializable), it should break/raise an exception as this is the actual behavior when it's deployed.Actual Behavior
@task
is run locally with invalid args/kwargs (non-serializable), it just runs as a normal function and therefore, we can't catch errors of this kind in the tests.Possible Fix
In
async.py
:and in
utilities.py
:Steps to Reproduce
Your Environment
0.45.1
Operating System andPython version: 3.6The output ofpip freeze
:Link to your project (optional):Yourzappa_settings.py
:The text was updated successfully, but these errors were encountered: