-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
worker is not supported dbfilter with %d or %h parameter. #58
Comments
The |
I think the runner should honor I did not know dbfilter could include %d. I thought I had copied the same db filtering algorithm as the Odoo server. To be verified. |
@sbidoul here is my interpretation: |
@guewen It seems you are right indeed. I remember now where I got this part of code from: I copied it from the connector worker 😉 Still it's a bit strange to me. If you use But for the runner, if it ignores dbfilter, it will listen (and create connections) to all visible databases. So I would rather keep using dbfilter and use http.db_filter() in https://github.com/OCA/connector/blob/8.0/connector/jobrunner/runner.py#L221 |
Hi folks, I think I have this kind of issue. I run successfully the connector-worker yet no worker is added in the db that has the connector installed. Thanks in advance. Edit : adding the db filter on the connector command works very well of course! |
I have this issue using dbfilter. After remover the filter ^%d$ the connector works fine. |
Ok, I trust you on that, I'm not very familiar with |
Same for me, I confirm that when you use a db_filter no workers appear on the connector interface, whether you use monoworker, multiworker with openerp-connector-worker or jobrunner. In fact, you never see in the log anything related to the database, so for me the connector is just unable to see the databases, probably because of db_filter. Even if you specify the database directly with -d option My configuration : |
@YannickB the correct option is |
Yep it is a typo |
I have the same issue, spent a long time trying to find out why connector wasn't working! |
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
[FIX] ignore dbfilter containing %d or %h, fixes #58
Fixed in
|
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
This connector worker is not supported with the dbfilter having either %d or %h.
i.e. dbfilter = '^%d.*' then it is not working with the following line of code.
dbfilter = config['dbfilter']
if dbfilter and db_names:
db_names = [d for d in db_names if re.match(dbfilter, d)]
here dbfilter variable having '^%d.*' thats why re.match will not found any matches with this and it is returning [ ](blank list).
same this openerp-connector-worker script is not working with dbfilter.
The text was updated successfully, but these errors were encountered: