When a user signs up, their data is sent to a URL defined in an environment variable
Warns out to logs when there is no URL set
Every day, go through failed attempts to send the data, increment its failures_count arg and requeue the job
When we have failed an attempt >= 7 times we'll mark it as COMPLETED
Another job goes every day and finds COMPLETED jobs and anonymizes them by deleting phone number, full name, birth year and gender keys (noting that the Birth Year and Gender are not currently given when signing up but I included them to avoid possible issues if ever we do -- the keys come through the request in any case)
Reviewer Guidance:
I'm not entirely sure how to test that my jobs are actually run
When I enqueue_at the two jobs in apps.py; I do not see them coming up in job_storage.get_all_jobs() -- anything I'm missing in that file's setup? I moved them into the ready() function, the Tasks are registered, but when I start the server and look I see no scheduled jobs.
Sets up tasks and queues jobs to handle:
failures_count
arg and requeue the jobReviewer Guidance:
job_storage.get_all_jobs()
-- anything I'm missing in that file's setup? I moved them into theready()
function, the Tasks are registered, but when I start the server and look I see no scheduled jobs.