Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
11472 Vues

As I am using queue_jobs for odoo 11 in my code. According to the document, I have added all the modifications in configuration file as specified in Job Queue documentation of odoo apps.

In odoo.sh, I found the odoo.conf file and tried to edit without using super user credentials i.e

nano odoo.conf

I added the lines in file and saved it. If I try to modify the odoo.conf file in odoo.sh from web shell,it does not make any impact on execution of queue_job.

Is there any other solution for executing queue job at server odoo.sh?

Would you like to suggest any other solution for the same or for queue jobs as well?


Avatar
Ignorer

any answers ?

Meilleure réponse

Hi,

  1. Install the queue_job_cron_jobrunner module.
  2. No additional configuration is required—the module automates job processing via Odoo’s native cron scheduler.


Hope it helps

Avatar
Ignorer
Meilleure réponse

In Odoo, the odoo.conf file contains the configuration settings for the server, including settings for the Job Queue. To make changes to the odoo.conf file, you typically need to have superuser privileges.

If you are running Odoo on a shared hosting platform like odoo.sh and don't have access to superuser credentials, you may not be able to modify the odoo.conf file directly. In this case, you can try using environment variables to set the Job Queue settings instead of modifying the odoo.conf file.

To do this, you can set the following environment variables in your server environment:

OPENERP_SERVER_WORKERS: This variable sets the number of worker processes that will process the jobs in the Job Queue. You can set it to a number that matches the number of CPU cores on your server. For example, to set it to 4, you can use the command export OPENERP_SERVER_WORKERS=4.

OPENERP_SERVER_JOB_TIMEOUT: This variable sets the maximum time (in seconds) that a job can run before it times out. You can set it to a value that is appropriate for your specific jobs. For example, to set it to 3600 seconds (1 hour), you can use the command export OPENERP_SERVER_JOB_TIMEOUT=3600.

By setting these environment variables, you can configure the Job Queue without having to modify the odoo.conf file directly.

Additionally, make sure that you have installed the queue_job module and configured it properly. You can refer to the Job Queue documentation for more information on how to use this modul.

Avatar
Ignorer
Meilleure réponse

You need to run odoosh-restart http afterwards

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
févr. 25
2961
1
janv. 25
959
1
janv. 25
4132
1
janv. 25
1477
2
janv. 25
6030