saas-addons icon indicating copy to clipboard operation
saas-addons copied to clipboard

[14.0] jobs build_post_init, action_install errors db isn't exist

Open gaelTorrecillas opened this issue 2 years ago • 4 comments

Hello,

We use saas on OCB 14.0 with this configuration on master (is odoo create others odoo): workers: 4 max_cron_threads: 3

When we create one db, we have 3 jobs : create_db action_install_missing_mandatory_modules build_post_init

The job create_db the software runs for a few minutes but the other jobs don't stay and raise error : The db is not exist

And when create_db finish, we have the db

do you know how i can fix this problem?

gaelTorrecillas avatar Jul 19 '22 06:07 gaelTorrecillas

Hi,

If you do these jobs manually, you should wait the create_db status to become ready (refresh page) and then do the rest. If you do them by script it will need again to check the status of the job and then start next one which status you will need to check too.

killday avatar Jul 23 '22 16:07 killday

Hi,

when we create new db with button on template ( open wizard etc.) all jobs are launch, we can't run one after other. How you create these jobs manually?

gaelTorrecillas avatar Jul 25 '22 07:07 gaelTorrecillas

Hi

the jobs are started in order -> crate database ->Module installation -> Extra initialization Module installation should not start before Create database template_create

killday avatar Jul 26 '22 13:07 killday

Hello @killday, yes but the db is not created before the launch module installation, so this job will be error status.

I tested the group of job delay this pr : https://github.com/it-projects-llc/saas-addons/pull/139

gaelTorrecillas avatar Oct 03 '22 14:10 gaelTorrecillas

Fixed by https://github.com/it-projects-llc/saas-addons/commit/c858615f8b8e609889eca7aeed741356dfae01a3

em230418 avatar Nov 30 '22 08:11 em230418