Skip to content Skip to sidebar Skip to footer

Record cannot be modified right now: This cron task is currently being executed and may not be modified Please try again in a few minutes

This kind of problem and error message is happening when you tried to install an Odoo module. Regardless if you bought a new, or, created your own.

The main cause of this error message is that there are a background task that currently running and need to be waited until it's done. But somehow, the task feels like forever–and I had a case where it last long for 5 days or so.

Instead of waiting that long, you can just simply find out the main cause and stopping that process. The step below is for Linux Debian Machine, but you can follow along if you are using other machine. You just need to find the same command that equal to these process.

  1. First things first, login to your server as root.
  2. If Odoo is currently running, make sure to stop the operation first by typing

    service odoo stop

  3. Later on, switch to postgresql by typing

    su - postgres

  4. Then type in

    psql

  5. You need to find out what is your database name. Therefore, type in

    \l

  6. Later on, you need to connect to that database by typing in

    \c yourDatabaseName

  7. After that, you need to find all of the running background task or also called cron by typing in :

    SELECT * FROM ir_cron;

    In case you are wondering, this will retrieve and show you all the running odoo "services" from the table called ir_cron.

  8. All of the process will be shown in your screen. Now, you need to identify which one of these process that make your server execute a long process. As my experience happened in past, mostly the problem is caused by indefinite process of Mail : Email Queue Manager as picture show below.


    ir_cron table, list of running process 

  9. Now, kill the process by typin in :

  10. UPDATE ir_cron SET active = False WHERE id = (selected_id)

    Change that selected_id with the number that you see on the left of the screen inside the table.

  11. Now, restart the server by typing in : 

    service odoo restart

  12. Go on try and install your module. If the problem still persist, you need to find the right process that taking your server loading time. Or, sometimes you also need to restart your entire server for it to be applied. It's quite random but it will take some time, and it will do!

Post a Comment for "Record cannot be modified right now: This cron task is currently being executed and may not be modified Please try again in a few minutes"