Comments (14)
Was the job already existing in the database before you added the default_channel
or is it happening an a fresh database?
from queue.
Well, it's not a fresh database, but a fresh job, that is created after confirming the invoice in the code in the second line (https://github.com/OCA/l10n-spain/blob/3baa28b44211fc34516ebe87b9068204231bff47/l10n_es_aeat_sii/models/account_invoice.py#L964)
from queue.
@guewen any news about this?
from queue.
No I couldn't have a look at it 😭
from queue.
@pedrobaeza Is your channel declared/configured into odoo.cfg or on the command line? Is your channel listed into the list of available channels?
from queue.
I confirm the automatic registration of job functions and default channels is no longer working with #49 and #50.
from queue.
Working on a patch.
from queue.
Great, thanks!
from queue.
@pedrobaeza did you encounter the issue in 10.0 or 11.0?
I expect the 10.0 one to works, and the 11.0 failing due to this difference between py2 and py3: #69 (comment)
And indeed I couldn't reproduce on 10.0
from queue.
Thanks for the following-up, Guewen. I found the problem in v10. The line I mentioned (https://github.com/OCA/l10n-spain/blob/3baa28b44211fc34516ebe87b9068204231bff47/l10n_es_aeat_sii/models/account_invoice.py#L964), was for this module in v10: https://github.com/OCA/l10n-spain/tree/10.0/l10n_es_aeat_sii, so there should be something different there.
Tell me if you need that I do any test.
from queue.
I installed l10n_es_aeat_sii from the branch 10.0, and the latest commit of the branch 10.0 of oca/queue, the channels have been created and properly assigned to the job function:
from queue.
Seeing my instances, I don't have the functions on that channels:
What can be the problem? The code is updated (our Docker + module_auto_update system handles that), so I don't understand what can be. Are these functions registered only once or each time I restart the server?
from queue.
@pedrobaeza only once at registry loading, and if they are created without default_channel
the first time, they'll keep the root
channel. You can try to delete the "queue.job.function" rows and they'll be recreated on the registry load, so you can check if the channel is set correctly.
from queue.
OK, that's it! It seems that I install the module with a code version that lacks this and this has remained meanwhile (or maybe there's a problem in installation time...). For now, I'm closing this, and if I observe there's a different behavior on installation than when running afterwards, I'll report back.
Thanks for the support.
from queue.
Related Issues (20)
- [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?
- [QUESTION][16.0] queue_job: How to run parallel queue
- [16][queue_job] JobsTrap perform_enqueued_jobs not working with jobs creating new jobs
- [16.0] Add support to show job progress
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.