0

I have Magento 2 setup of version 2.2.2.

I have set the cronjobs as per guidelines.

When I check the cron_schedule table I can see multiple duplicate cronjobs entries. created_at is the same for the same job_code and scheduled_at time is set with a difference of 1 minute as per the below image.

enter image description here

I haven't changed any default configurations in configuration -> Advance -> System -> Cron (Scheduled Tasks).

8
  • I think you set 1-minute interval cron. Right? Commented Nov 7, 2019 at 12:50
  • you are talking in crontab? Commented Nov 7, 2019 at 12:58
  • Yes @RizwanKhan Commented Nov 7, 2019 at 12:59
  • Yes it is 1 miniute interval cron [* * * * *] Commented Nov 7, 2019 at 13:07
  • That's why scheduled_at time is set with a difference of 1 minutes. Commented Nov 7, 2019 at 13:08

1 Answer 1

2

Go to configuration -> Advance -> System -> Cron (Scheduled Tasks) -> Cron configuration options for group: default.

Set Schedule Ahead for field as 1.

Please see the below screenshot.

enter image description here

And then check it.

1
  • Thanks! This works and I've been trying to find out what was the cause of this issue
    – Rejith
    Commented Aug 5 at 10:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.