background task to update cards #3

Open
opened 2026-03-24 04:11:26 -04:00 by plate · 1 comment
Owner

i need a way to run background tasks such as updating the cards. this only needs to happen every friday, so nothing too heavy.

i've decided on using cron/systemd timers and a script that interacts with the db. the reasons are:

  • it doesn't happen often so i don't need much
  • it's less moving parts. celery or rq requires setting up a broker like redis, but i will always have systemd or cron
  • updating prices is not the longest running task, it should take maybe 2 seconds at most per card and i expect up to 10 if i'm lucky
i need a way to run background tasks such as updating the cards. this only needs to happen every friday, so nothing too heavy. i've decided on using cron/systemd timers and a script that interacts with the db. the reasons are: - it doesn't happen often so i don't need much - it's less moving parts. celery or rq requires setting up a broker like redis, but i will always have systemd or cron - updating prices is not the longest running task, it should take maybe 2 seconds at most per card and i expect up to 10 if i'm lucky
plate changed title from background tasks to background task to update cards 2026-03-24 04:11:47 -04:00
Author
Owner

if i end up adding more types of task, maybe i will put in the work to use celery and a broker. but for now this is quite good

if i end up adding more types of task, maybe i will put in the work to use celery and a broker. but for now this is quite good
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
plate/pollen#3
No description provided.