You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a task that runs every X number of days, say between 3-7. It does this:
if current_mileage > last_oil_change + oil_change_constant:
remind_user_to_get_oil_change
Have a way of getting the PDF receipts (either through an email address that fires a script or some SMTP module or some email service with a CRUD api),
a. run it prior to the other task
b. have it do something like this
for each object in parsed_pdf:
update_last_oil_change_for_car
thank_user_for_getting_oil_change
some notes:
Have the pdf sent to another email address in case we somehow need to rerun things
Since the last_oil_change information is destroyed and replaced we need to log that we're doing this along with the car/value that is about to be replaced in case we somehow screw up and need to fix things.
The pdf parsing approach is both idempotent and re-entrent. All it would do is just replace the column value with the new one. The first task isn't of course since we aren't tracking whether we already notified the user or not ... but that's not the complicated line of action, so I don't really care.
The text was updated successfully, but these errors were encountered:
There's a few tasks:
a. run it prior to the other task
b. have it do something like this
some notes:
The text was updated successfully, but these errors were encountered: