management: Rename the deliver_email command to deliver_scheduled_email.

This makes it parallel with deliver_scheduled_messages, and clarifies
that it is not used for simply sending outgoing emails (e.g. the
`email_senders` queue).

This also renames the supervisor job to match.
This commit is contained in:
Alex Vandiver
2021-05-11 01:32:31 +00:00
committed by Tim Abbott
parent f7baa3c388
commit 0f1611286d
10 changed files with 32 additions and 26 deletions

View File

@@ -23,7 +23,7 @@ with only a few things you need to know to get started.
are several other functions in `zerver.lib.send_email`, but all of them
eventually call the `send_email` function. The most interesting one is
`send_future_email`. The `ScheduledEmail` entries are eventually processed
by a supervisor job that runs `zerver/management/commands/deliver_email.py`.
by a supervisor job that runs `zerver/management/commands/deliver_scheduled_emails.py`.
* Always use `user_profile.delivery_email`, not `user_profile.email`,
when passing data into the `send_email` library. The
`user_profile.email` field may not always be valid.