codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
393 stars 68 forks source link

Ensure user helper is available in subscription mailer #1180

Closed Taeir closed 1 year ago

Taeir commented 1 year ago

Fixes regression from 754c82a9 which broke subscription mailer.

Note that it seems that on Codidact production, the subscription emails are not working at all. This is likely because the scheduled tasks are not actually added to the server's crontab (scheduling utility), or because cron is itself not scheduled by the host OS. To add jobs to the crontab, run bundle exec whenever --update-crontab

ArtOfCode- commented 1 year ago

whenever --update-crontab is part of the deploy script on prod, so it's definitely running. Need some time to investigate why emails aren't sending.