Open ehrenfeu opened 4 months ago
Forgot to mention,we're currently having about 800 active (=enabled) user accounts on this instance...
@ehrenfeu I'm afraid I don't know the answer to your specific questions, but in general we find it preferable to use the webclient admin tool to send e-mails to users as this doesn't suffer these timeout issues.
Looking at the code at https://github.com/ome/omero-py/blob/8d8108de02104c654741d65f0ecbbf11c85e329d/src/omero/plugins/admin.py#L1599 it looks like you can use a wait
argument which is explained better in the help, but I don't know if that is directly related to the LockTimeout you're seeing.
$ omero admin email -h
...
--wait WAIT Number of seconds to wait for the processing to complete (Indefinite < 0; No wait=0).
Petr tells me he's used the webclient to e-mail 3000 users at a time and guesses that 800 users would take 40 minutes.
Thanks a lot @will-moore, that's already super helpful. 🚀
We prefer using the CLI for sending emails, as this allows us to store the emails in a local folder on the server and re-use them later on (e.g. to announce maintenance windows, storage downtimes, ...) without having to go for lengthy excursions into one or the other email client's search nightmare.
I'll have a look into the --wait
parameter next time and update this issue then.
Unfortunately it's nothing I can easily test under real conditions, as it would mean bothering about 800 people each time 😦
Cheers, Niko
without having to go for lengthy excursions into one or the other email client's search nightmare.
We are having the email texts in g.docs. There must be anyway a fresh editing step prior to each sending (?). I do not suggest that our OMERO.web UI workflow is the best, but possibly the best under the circumstances. The UI workflow in our hands never crashed in the middle of sending emails. Afaik, there is no way to ascertain to which users the email was already sent to. The 40 minutes wait is a pretty safe estimate for 800 users.
By g.docs you're referring to Google docs? Or to some database table?
By g.docs you're referring to Google docs? Or to some database table?
Google docs indeed, sorry for the shorthand.
Hi all,
while sending emails to users using the
omero admin email
command is working fine in general for us, we seem to be having just too many users on our main OMERO instance.When running e.g.
the process is taking "a bit" longer and at some point (25s) crashes with an
omero.LockTimeout
exception like this:Unfortunately I failed in finding where to configure this timeout.
➡️ Is there a log / database entries that would tell me who received the email?
All OMERO components are on their latest version, running on Ubuntu 22.04.
Cheers, Niko