Zappa icon indicating copy to clipboard operation
Zappa copied to clipboard

add feature (#704) Check if args/kwargs are JSON Serializable while running locally

Open monkut opened this issue 3 years ago • 1 comments

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

monkut avatar Jul 27 '22 02:07 monkut

Coverage Status

Coverage increased (+0.07%) to 73.703% when pulling 86b78681c3d4b5bb14dcdb354f031f9f82ce5823 on feature/issue-704-check-args-json-serializable into bef5c5ae9f3551a4c2e0acfcc43f4a65906e8a61 on master.

coveralls avatar Jul 27 '22 02:07 coveralls