-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limits (time!) are enforced in debugging (dev mode) #28808
Comments
You can set |
@beledouxdenis Thanks! Is this a proper fix? I tend to yes. Does the same work for Could you confirm quickly and close, if you wish? |
We consider to change the default values of the limits (time & memory) to none ( There is no reason to not apply time and memory limits in multi-threads in debug mode, but apply them in multi-workers. Sometimes, what you need to debug is the multi-workers mode. Nevertheless, this is risky to apply this new limits policy according to the dev tools enabled in a stable release: Maybe somewhere in the world, a production server runs with a dev tool enabled, and no longer applying the limits in such a case suddenly may not be acceptable for the users. If this is user-critical (or should I say developer-critical), we might do this change in stable, but at first sight we would like to change this new behavior only for the next stable release. |
Nice! And thanks for the detailed explanation. So I silently assume this issue can be left open for reference. |
I would like to keep 120 for --limit-time-real in the conf. but I in some long running methods (only those methods), I would force to remove limit. Is there a way to control the time limit at runtime? |
Can we have these settings set to zero when running with zero workers, as we did on previous Odoo versions? No one |
Oh yes they do, I've seen dozens of instances without workers in production in the past. ;) |
Edited 😉 |
Actually we do use zero workers on production, on Odoo.sh. We developed an hybrid mode multi-workers multi-thread, the multi-workers being handled by the Odoo.sh platform, and the multi-threads being handled by the Odoo server. So we cannot use this heuristic to determine wether the limits should be set to unlimited or not. Besides sometimes a developer debug using multi-workers, and the limits should be dropped in this case too. |
Came across this while searching for what I think is a bug regarding Is there any relation to what is discussed here and the fact that if I use The log when not using
The log when using
|
@fractalf I'm writing https://github.com/xoe-labs/dodoo to empower myself of disecting Odoo complexity quirks away from the server. |
@fractalf this is not a bug. |
@blaggacao can you please explain why this is not a bug? Why won't the longpolling service start when using --dev ? |
Or is it? :-) I have spent too much time with Odoo quirks, something better is being conceived. So, let's make it a cli spec:
Saying: Let's throw away the essentially unmaintainable Odoo server middleware and built a better one. Those kind of things only get worse when it comes to production deployments. |
Hi Guys, I have the same issue when trying to use it with docker. Any solutions? |
Impacted versions:
v12
Steps to reproduce:
--dev wdb,reload,qweb,werkzeug,xml
Current behavior:
Expected behavior:
/cc @beledouxdenis for dcb56412d667
The text was updated successfully, but these errors were encountered: