Skip to Content
KarmaCircle Knowledge Base

Background jobs

How slow work like emails is queued and done by the worker, without making people wait.

Some work is too slow to do while someone waits, like emailing everyone going to an event. The API writes that work down as a job, and a small separate program, the worker, does it.

The life of a job

A job is saved with the change that caused it, so neither can happen without the other. Drag to move around, use + and - to zoom.

What the worker does today

JobWhat it does
EmailSends event emails, up to 100 in one go.
View totalsAdds up organization profile views per day for the dashboard.
Clean-upDeletes finished jobs after a week and failed ones after a month.

Good to know

  • The worker sleeps when there is nothing to do, and wakes when the API calls it, when it starts, or once an hour as a safety net.
  • A job never runs twice by accident: the email service ignores a repeat of the same batch.
  • There is a daily email limit. Emails over it wait for the next day.
  • Event reminders, automatic waitlist moves and other timed jobs are not built yet.

On this page