zulip/zerver/worker
Alex Vandiver 9dfaa83aa8 invites: Remove invites worker, make confirmation object in-process.
The "invites" worker exists to do two things -- make a Confirmation
object, and send the outgoing email.  Making the Confirmation object
in a background process from where the PreregistrationUser is created
temporarily leaves the PreregistrationUser in invalid state, and
results in 500's, and the user not immediately seeing the sent
invitation.  That the "invites" worker also wants to create the
Confirmation object means that "resending" an invite invalidates the
URL in the previous email, which can be confusing to the user.

Moving the Confirmation creation to the same transaction solves both
of these issues, and leaves the "invites" worker with nothing to do
but send the email; as such, we remove it entirely, and use the
existing "email_senders" worker to send the invites.  The volume of
invites is small enough that this will not affect other uses of that
worker.

Fixes: #21306
Fixes: #24275
2024-05-02 14:23:04 -07:00
..
__init__.py
base.py partial: Replace returns plugin with an annotation. 2024-04-29 17:14:41 -07:00
deferred_work.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
digest_emails.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
email_mirror.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
email_senders.py invites: Remove invites worker, make confirmation object in-process. 2024-05-02 14:23:04 -07:00
embed_links.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
embedded_bots.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
missedmessage_emails.py db: Split reset_queries into a new module zerver.lib.db_connections. 2024-04-17 16:49:03 -07:00
missedmessage_mobile_notifications.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
outgoing_webhooks.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
queue_processors.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
test.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
user_activity.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
user_activity_interval.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00
user_presence.py worker: Split into separate files. 2024-04-16 23:00:02 -07:00