In which scope does Magento 2 run cron jobs?
If I have a multi-site system, does the framework invoke my job once for the entire system, or does it repeat the job for each store?
The doc says they run in store view scope, however, my practical experiments show only one invocation.
If they indeed run in store view scope, then how do I identify the site/store scope for which it runs?
Best Answer
Cron runs under console and system (server) doesn't know which store you are requested like on frontend.
I do not think you need to care about scope in crontab. System runs cron jobs in crontab area and if you need to change something for the store you need to create new cron job, load this store and change it.
Actually you can simply check this..
Run in console:
Here is result: