tradefurniturecompany / site

tradefurniturecompany.co.uk (Magento 2)
https://upwork.com/fl/mage2pro
2 stars 1 forks source link

«Could not acquire lock for cron group: apptrian_imageoptimizer» #45

Open dmitrii-fediuk opened 4 years ago

dmitrii-fediuk commented 4 years ago

It could be related to https://github.com/tradefurniturecompany/site/issues/32

dmitrii-fediuk commented 4 years ago

It occurs at the beggining of each hour:

[2020-02-22 00:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 00:02:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 01:01:06] main.WARNING: Could not acquire lock for cron group: default, skipping run [] []
[2020-02-22 01:01:24] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 01:02:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 02:01:06] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 03:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 04:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 05:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 06:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 07:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 07:02:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 08:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 09:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 10:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 10:02:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 11:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 11:02:06] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 11:03:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 12:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 12:02:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 12:03:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 13:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 13:02:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 13:03:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 14:01:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 14:02:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 14:03:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-02-22 14:04:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
dmitrii-fediuk commented 4 years ago

It seems that the system is too busy at the beggining of each hour and it does not have enough time to finish the previous apptrian_imageoptimizer Cron job. A simple solution would be to increase the interval between apptrian_imageoptimizer Cron jobs.

dmitrii-fediuk commented 4 years ago
SELECT * FROM `cron_schedule` WHERE 'apptrian_imageoptimizer_optimize' = job_code

02

dmitrii-fediuk commented 4 years ago

The problem is not solved:

[2020-03-01 03:34:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-03-01 03:35:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []
[2020-03-01 03:36:07] main.WARNING: Could not acquire lock for cron group: apptrian_imageoptimizer, skipping run [] []