Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-32134

Setting siteaccess for cronjob via tag argument

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2.5.14
    • Cronjobs
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            e8c27efa-d74a-4f0f-93e7-219bc3702db7@accounts.ibexa.co Holger Marx
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: