Skip to content

Cron job not running since upgrading to Magento 2.2.4

In my old version of my site i had a cron that ran at 2am every morning to product some reports from my Module. I have it set up as normal with my class in the cron folder and the correct xml in crontab.xml but this is what the cron_schedule table is showing :

enter image description here

And i’m also getting this error in cron.log

[2022-08-04 19:08:08] main.ERROR: Cron Job reinitpricing_cronjob has
an error: Too few arguments to function
MagentoCatalogModelResourceModelProductIndexerLinkedProductSelectBuilderByIndexPrice::build(),
1 passed in
/domains/XX.XX.co.uk/http/vendor/magento/framework/Interception/Interceptor.php
on line 58 and exactly 2 expected. Statistics:
{“sum”:0,”count”:1,”realmem”:0,”emalloc”:0,”realmem_start”:106954752,”emalloc_start”:42932736}
[] [] [

Does anyone know how i can resolve this?