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

Allow console command specific extra options

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 2.5.13, 3.1.2
    • Fix Version/s: 3.2.0-beta1, 3.2.0, 2.5.14, 3.1.3
    • Component/s: Cronjobs
    • Labels:
      None

      Description

      Allow console command specific extra options.

      Add an additional parameter with which you can add console command specific parameters e.g. for console command cleanup versions or check url

      • for ezplatform:check-urls the option "--quiet"
      • for ezplatform:content:cleanup-versions the options "--keep --status=draft"

      Currently you are not able to add this options in the cron config.

      The config for cleanup versions cronjob would look like this:

       ezplatform.cron.cleanup_version:
              class: eZ\Bundle\EzPublishCoreBundle\Command\CleanupVersionsCommand
              tags:
                  - { name: console.command }
                  - { name: ezplatform.cron.job, schedule: '55 23 3 1-12 *', category: 'monthly', options: '--keep=0 --status=draft' }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            michal.szoltysek@ez.no Michał Szołtysek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: