Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Some help please - Webkit Reports asset loading

by
Open for Small Business, Graeme Gellatly
- 22/03/2019 23:26:15
The only time and way to reproduce this I have found is to trigger one of those two things immediately on a server restart. All subsequent jobs/crons run as expected. The assets cache for reports is a bit funny due to another workaround in the code. I think these code comments are rather indicative of the issue I face.


On Sat, Mar 23, 2019 at 1:56 AM Pedro M. Baeza (Tecnativa) <pedro.baeza@tecnativa.com> wrote:
Indeed it's a weird thing, as the queue worker only launches the command to wkhtmltopdf executable, and that one request the assets, so the HTTP dispatcher is attending it, so it seems the confluence of:

- A worker invalidation takes place while the wkhtmltopdf request (or a bit before), spawning a new worker.
- The dispatch is done before loading all assets, that happens asynchronously.

So it seems something of the dispatcher that should wait for that kind of things before answering, and thus an Odoo thing? The problem is the difficulty to express and to try this on the Odoo side.

Regards.

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference