1. 09 Jun, 2022 1 commit
    • totten's avatar
      Civi::queue() - Add support for 'template' queues · b656ba01
      totten authored
      Overview
      --------
      
      Suppose you are in the habit of making separate queue-instances for
      different batches of work.  However, you want to allow the sysadmin to
      configure options like `type`, `batch_limit`, and `retry_interval`.
      
      Solution: Make a template
      
      After
      -----
      
      ```php
      // Use the API to register a template, eg
      \Civi\Api4\Queue::create()->setValues([
        'name' => 'template-name',
        'is_template' => TRUE,
        ...
      ])->execute();
      
      // Later, create a queue from the template
      $q = Civi::queue('new-queue', ['template' => 'template-name']);
      ```
      b656ba01
  2. 02 Jun, 2022 1 commit
    • totten's avatar
      Civi::queue(...$queueSpec) - Accept the 'status' and 'error' options · 86ffee74
      totten authored
      Note: We only enforce this requirement for queues that use the `runner`
      option.  Older queue-users may not specify a `runner` -- in which case
      they're responsible for establishing their own runner, and their runner
      problem doesn't care what is specified here.
      86ffee74
  3. 01 Mar, 2022 2 commits
  4. 22 Feb, 2022 1 commit
  5. 01 Feb, 2022 1 commit
    • totten's avatar
      CRM_Queue_Service - Add support for persistent queues · 26c70956
      totten authored
      Before:
      
      * `CRM_Queue_Service::create()` traditionally provided support for
        instantiating queue objects.
      * `civicrm_queue` was recently added for tracking persistent
        metadata about queues.
      
      After:
      
      * `CRM_Queue_Service::create()` works as before, and it also accepts
         parameters `is_persistent` and `is_autorun`.
      26c70956
  6. 29 Jan, 2022 1 commit
  7. 21 Aug, 2021 1 commit
  8. 30 Jul, 2021 1 commit
  9. 13 May, 2020 1 commit
  10. 14 Nov, 2019 1 commit
  11. 07 Nov, 2019 1 commit
  12. 02 Jun, 2019 1 commit
    • eileen's avatar
      PHPCS fixes. · 041ecc95
      eileen authored
      Improves compliance with drupal standard
      041ecc95
  13. 05 Apr, 2019 1 commit
  14. 13 Dec, 2018 1 commit
  15. 19 Apr, 2018 1 commit
    • totten's avatar
      (NFC) Update version in header · fee14197
      totten authored
      This is a simple administrative update to the headers. It was generated with the command:
      
      ```
      rgrep '| CiviCRM version 4.7' CRM/ Civi ang api bin extern install/ settings/ templates -l \
        | xargs sed -i'' "s/| CiviCRM version 4.7/| CiviCRM version 5  /g"
      ```
      
      Tthe inclusion of `|` aimed to avoid matching any non-header text (e.g. inline docs that
      mentioned the version incidentally). But then I did a looser search and for just
      
      ```
      rgrep 'CiviCRM version 4.7'
      ````
      
      and manually patched the remainder.
      
      Note: I'm not really keen on doing this every month, so I relaxed the header
      statement -- instead of `CiviCRM version 5.0`, it's just `CiviCRM version 5`.
      fee14197
  16. 23 Feb, 2018 1 commit
  17. 02 Jan, 2017 1 commit
  18. 21 Mar, 2016 1 commit
  19. 16 Aug, 2015 1 commit
  20. 27 Mar, 2015 1 commit
  21. 04 Feb, 2015 1 commit
  22. 20 Jan, 2015 2 commits
  23. 09 Jan, 2015 1 commit
  24. 29 Dec, 2014 1 commit
  25. 23 Dec, 2014 1 commit
  26. 30 Nov, 2014 1 commit
  27. 24 May, 2014 1 commit
  28. 21 May, 2014 2 commits
  29. 09 May, 2014 1 commit
  30. 28 Mar, 2014 1 commit
  31. 15 Aug, 2013 1 commit
  32. 01 Mar, 2013 1 commit