This commit should resolve the submission serialization issue by no longer attempting to serialize praw.Models.Submission.
Instead, before calling process_submission we create a namedtuple containing all of the data we need from the real submission.
We then reconstruct this namedtuple at the start of every function that may receive a serialized version of it.
This PR also add type hinting docstrings to the task methods. (I did this to keep track of where I was up to while verifying all other task parameters should be serializable)
This commit should resolve the submission serialization issue by no longer attempting to serialize praw.Models.Submission.
Instead, before calling
process_submission
we create anamedtuple
containing all of the data we need from the real submission.We then reconstruct this
namedtuple
at the start of every function that may receive a serialized version of it.This PR also add type hinting docstrings to the task methods. (I did this to keep track of where I was up to while verifying all other task parameters should be serializable)