#4671 (Jane does not send email notifications immediately)
by Luc Saffre · in Hosting (system administration) · assigned to Luc Saffre
Summary
Children
Comments
- 4 years ago by Sharif Mehedi in reply to Luc Saffre about #4671 (Jane does not send email notifications immediately) : We forgot remove the update_all_repos schedule, I only [url gitlab.com/lino-framework/xl/-/commit/c8f6a52ca966e1e1dd90834ef703b5699300c8d4 removed] it now.
- 4 years ago by Sharif Mehedi about #4671 (Jane does not send email notifications immediately) : should we maybe try avoid using the "schedule" module and use asyncio feature.
- 4 years ago by Sharif Mehedi about #4671 (Jane does not send email notifications immediately) : jane is still sending quite a lot of email in the morning after the cron job is done.
- 4 years ago by Sharif Mehedi in reply to Luc Saffre about #4671 (Jane does not send email notifications immediately) (2 replies) : This is a conversation with Mariusz Felisiak (the guy who fixed the issue) on IRC channel:
10:07:36 _8lurry | At the end of it says, fixed by felixx : code.djangoproject.com/ticket/29186 , will it be available in django-4.1.3? 10:15:00 +felixx | _8lurry: It's not a regression but a long-standing is... - 4 years ago by Sharif Mehedi in reply to Luc Saffre about #4671 (Jane does not send email notifications immediately) : It has yet been released, I suppose we will get it in 4.1.3.
- 4 years ago by Sharif Mehedi about #4671 (Jane does not send email notifications immediately) (2 replies) : other than the daphne logging issue, I found a ticket in django for which our channels worker is breaking: [url code.djangoproject.com/ticket/29186 request pickling issue], they suggests to fix it ourselves.
- 4 years ago by Sharif Mehedi about #4671 (Jane does not send email notifications immediately) : Daphne doesn't uses the python's logging module, it writes the log messages directly to the sys.stdout by default. daphne takes an argument --access-log, if a filename is given in the --access-log then it writes the messages to the file. We can use a middleware to write the logs ourselves.
- 4 years ago by Sharif Mehedi about #4671 (Jane does not send email notifications immediately) : It could also be a problem from lock acquiring and releasing issue.
- 4 years ago by Sharif Mehedi about #4671 (Jane does not send email notifications immediately) : Also the request logs in supervisor does not comes immediately. they are only flushed when I stop the supervisor. It could be a flushing issue.
- 4 years ago by Sharif Mehedi about #4671 (Jane does not send email notifications immediately) : So far I have not found a way to intercept the request logs of the form : [06/Oct/2022:11:40:57] "GET /service-worker.js" 200 16246 in the django application. logs from our application code is written fine to the lino.log file, but the requests logs are emitted from daphne and nginx only, they does ...