Comments (3)
The interesting line is
odoo.addons.connector_odoo.components.backend_adapter: <traceback object at 0x7fc6bdb0a488>
The next line indicates that the job has been postponed, because of the error. The error being probably this Could not acquire advisory lock
.
The WARNING line indicates that the job has been set on a channel root.odoo
, but this channel has not been configured at the startup of the queue job runner. It will just execute it in in the root
channel.
The last 3 lines are normal operations of the jobrunner.
Back to the advisory lock:
First you may want to show the full traceback in your logs, because <traceback object at 0x7fc6bdb0a488>
is not very informative :)
The exporter tries to acquires the advisory lock here:
https://github.com/OCA/connector-odoo2odoo/pull/7/files#diff-490b3ec0560bd042a97411edb4d1e534R204
If it can't acquires it, it's probably because it has already been acquired by another transaction (but you may find another reason I guess). The purpose of this lock is to prevent 2 jobs to import the same record at the same time. The lock is set on a hash composed from attributes that define the uniqueness of a job (https://github.com/OCA/connector-odoo2odoo/pull/7/files#diff-490b3ec0560bd042a97411edb4d1e534R180). Are you sure the values you use here are unique?
Also, check if you don't have a staled transaction in postgres which would have kept the lock.
I don't see any issue in the queue, it's either in your setup, either in your implementation.
I find it weird that the exception is logged by odoo.addons.connector_odoo.components.backend_adapter
, you should try to display the traceback.
from queue.
Thanks @guewen , I'll gonna give feedback on this
from queue.
Thanks @guewen you're right, a constraint was missing and I had duplicates in bindings !
from queue.
Related Issues (20)
- The job runner does not understand cancelled jobs HOT 7
- Controller method fails HOT 8
- why run with with_delay can not get the new field。。。。???? ValueError: Invalid field 'job_title' on model 'hdjn_oa.employee_ext' HOT 1
- [QUESTION] About channels HOT 1
- Error with PgBouncer HOT 6
- OperationalError, but progress is saved and job is repeated couple more times
- KeyError: 'socket' After install queue.job in odoo 16.0 HOT 9
- [14.0] identity_exact not working w/ chained jobs? HOT 6
- installation not possible in odoo 16 HOT 2
- Since Odoo 15.0 environment.manage is useless warning from migration script in queue_job HOT 2
- Assigning delayable variable to another variable breaks delayable HOT 1
- queue_job_cron_jobrunner for v13 HOT 3
- Cannot install queue_job on odoo 16/windows (OSError: [WinError 10038] An operation was attempted on something that is not a socket) HOT 3
- Migration to version 17.0 HOT 4
- OperationalError: Unable to use a closed cursor HOT 2
- job_record_with_same_identity_key: make states configurable per job HOT 1
- [16.0] queue_job: Autovacuum doesn't clean up sub channels HOT 8
- The latest test change breaks tests on Odoo.sh HOT 2
- [15.0] Queue job in chain does not see changes from previous job HOT 1
- Run job in a chain when previous job/jobs failed?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from queue.