1. 08 Jun, 2012 2 commits
  2. 07 Jun, 2012 1 commit
  3. 06 Jun, 2012 4 commits
  4. 05 Jun, 2012 2 commits
  5. 03 Jun, 2012 1 commit
  6. 02 Jun, 2012 1 commit
  7. 01 Jun, 2012 1 commit
  8. 30 May, 2012 2 commits
  9. 04 May, 2012 1 commit
  10. 03 May, 2012 1 commit
  11. 13 Apr, 2012 1 commit
  12. 15 Mar, 2012 1 commit
  13. 14 Mar, 2012 1 commit
  14. 12 Mar, 2012 1 commit
  15. 11 Mar, 2012 2 commits
  16. 10 Mar, 2012 1 commit
  17. 01 Nov, 2011 1 commit
  18. 21 Mar, 2011 1 commit
  19. 25 Feb, 2011 1 commit
  20. 20 Dec, 2010 1 commit
  21. 15 Dec, 2009 1 commit
  22. 17 Nov, 2009 1 commit
  23. 15 Oct, 2009 2 commits
  24. 31 Aug, 2009 1 commit
  25. 19 Aug, 2009 1 commit
  26. 17 Jun, 2009 1 commit
  27. 08 Jun, 2009 1 commit
  28. 06 May, 2009 1 commit
    • Dries's avatar
      - Patch #391340 by chx, dww, neclimdul, Crell, alex_b, et al: job queue API. · 4ef77a59
      Dries authored
      The queue system allows placing items in a queue and processing them later.  The system tries to ensure that only one consumer can process an item.
      
      Before a queue can be used it needs to be created by DrupalQueueInterface::createQueue().
      
      Items can be added to the queue by passing an arbitrary data object to DrupalQueueInterface::createItem().
      
      To process an item, call DrupalQueueInterface::claimItem() and specify how long you want to have a lease for working on that item. When finished processing, the item needs to be deleted by calling DrupalQueueInterface::deleteItem(). If the consumer dies, the item will be made available again by the DrapalQueueInterface implementation once the lease expires. Another consumer will then be able to receive it when calling DrupalQueueInterface::claimItem().
      
      The $item object used by the DrupalQueueInterface can contain arbitrary metadata depending on the implementation. Systems using the interface should only rely on the data property which will contain the information passed to DrupalQueueInterface::createItem(). The full queue item returned by DrupalQueueInterface::createItem() needs to be passed to DrupalQueueInterface::deleteItem() once processing is completed.
      
      While the queue system makes a best effort to preserve order in messages, due to the pluggable nature of the queue, there is no guarantee that items will be delivered on claim in the order they were sent. For example, some implementations like beanstalkd or others with distributed back-ends like Amazon SQS will be managing jobs for a large set of producers and consumers where a strict FIFO ordering will likely not be preserved.
      
      The system also makes no guarantees about a task only being executed once: callers that have non-idempotent tasks either need to live with the possiblity of the task being invoked multiple times in cases where a claim lease expires, or need to implement their own transactions to make their tasks idempotent.
      4ef77a59
  29. 12 Oct, 2008 1 commit
  30. 11 Oct, 2008 2 commits
  31. 09 Oct, 2008 1 commit