Status: To Do
Fix Version/s: None
The current idiom for loading a persisted Job is:
This design is problematic for clients for two reasons:
- The use of JSON as the persistence format is hardcoded into the client code, and if (as seems likely) the persistence format changes, all such code will need to be updated.
- The client module must import json even if it does not handle JSON data itself.
Please provide a way to automatically deserialize a Job given nothing but a filename or file descriptor, allowing client code to remain agnostic to the serialization format.