تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
9236 أدوات العرض

Hi, 

i'm using OCA framework queue.job, and i'm facing a problem in my local machine.

In my code, I have a method read_file() which calls the method with @job decorator, with with_delay()

def read_file(self):

    ...

    self.with_delay(priority=8).process_rows(args)

---

@job(default_channel='root.process_rows)'

@api.multi

def process_rows(self, args ):

    //code here is never executed


The problem is that the job created in order to run  process_rows(), is always 'pending' and the code inside is never executed. And when i manually edit the job state to 'done', it seems like nothing happens...

What can I do to execute process_rows() inside a job? what am I missing in my code/configuration?

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

solved with server_wide_modules = web,queue_job inside Odoo configuration file.

--> Readme https://github.com/OCA/queue/tree/14.0/queue_job

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 25
11
2
يوليو 24
2649
1
يونيو 24
5126
1
أكتوبر 23
10829
1
أكتوبر 23
98