Details
-
Improvement
-
Resolution: Unresolved
-
Medium
-
None
-
2.5.14
-
None
Description
With this improvement it will be possible to set the siteaccess for a cronjob via the options argument of service tag.
eg
{{}}
date_based_published.cron.publish_scheduled: class: EzSystems\DateBasedPublisherBundle\Command\PublishScheduledCommand tags: - { name: console.command } - { name: ezplatform.cron.job, schedule: '* * * * *', category: 'default', options: 'siteaccess=siteaccess_xyz' }
{{}}
Use case:
You want to run a cronjob for multiple siteaccesses (number of siteaccesses will increase in future). Actually you have to setup a crontab entry for each siteaccess.
With this improvement you need to setup only one crontab entry and configure the needed siteaccesses in your cronjob service by adding a tag for each siteaccess.