Zappa
Zappa copied to clipboard
add feature (#704) Check if args/kwargs are JSON Serializable while running locally
Description
When running an async @task locally, the args and kwargs are passed as they are (even if they're not JSON Serializable).
This PR runs a validate_json_seralizable() check on args/kwargs passed to the function when running locally, calling json.dumps() on the arguments to allow related exceptions to propagate.
This allow developers to identify asynchronous task related JSON serialization errors prior to deployment.
GitHub Issues
#704