Commit Graph

320 Commits (8550540b511967961c095fc085c8cc8062c424f3)

Author SHA1 Message Date
Dries Buytaert 4ef77a590c - Patch #391340 by chx, dww, neclimdul, Crell, alex_b, et al: job queue API.
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.
2009-05-06 10:37:28 +00:00
Dries Buytaert 5f08579bfe - Patch #240873 by Gábor Hojtsy, sun: block system clean-ups. Thanks for the review sun. 2009-04-30 21:44:20 +00:00
Dries Buytaert 94c3dceeda - Patch #240873 by Gábor Hojtsy: move custom help settings to blocks. Very exciting. 2009-04-29 08:04:24 +00:00
Dries Buytaert 5c629b76c7 - Patch #445062 by Arancaytar: check for PHP tokenizer extension to be installed. 2009-04-26 14:57:36 +00:00
Angie Byron d30a41e791 Roll-back of #333054; needs more discussion. 2009-04-20 02:23:17 +00:00
Dries Buytaert 2f9af75438 - Patch #430342 by kkaefer et al: usability improvement: changed 'site maintenance' to 'maintenance mode'. 2009-04-19 19:10:08 +00:00
Dries Buytaert ee9421a84c - Patch #363262 by Dave Reid: adds a lost index to the URL table. 2009-04-03 17:50:21 +00:00
Dries Buytaert 27d7455edb - Patch #333054 by c960657: page cache should be case sensitive. 2009-04-01 20:00:47 +00:00
Dries Buytaert 0184860b58 - Patch #333156 by stella: add ability to configure the default country. 2009-03-17 15:26:29 +00:00
Angie Byron 27369e8b96 #304163 by chx: Allow update.php to re-generate settings.php. Now possible to upgrade Drupal 6 to Drupal 7. Oh, yeah. 2009-03-01 09:32:17 +00:00
Angie Byron 665c9fdc2c Roll-back of users -> user table name change in #330983: Broken pgsql is no fun. 2009-02-26 07:30:29 +00:00
Dries Buytaert 094e999013 - Patch #383318 by mr.baileys: incorrect memory shortage warning when memory limit is unlimited. 2009-02-25 13:33:53 +00:00
Angie Byron ff9e842730 #330983 by recidive and boombatower: Rename users/users_roles tables to user/user_role for consistency. 2009-02-18 15:19:57 +00:00
Angie Byron df591c8f40 #215080 by drifter and robertDouglass: Add index on system name and type to speed query. 2009-02-18 15:14:11 +00:00
Dries Buytaert d4867346f5 - Patch #367380 by Moshe: make block module optional. 2009-02-03 12:30:14 +00:00
Angie Byron 2c381622a5 #88264 by Rob Loach and kscheirer: Make variable_get()'s defaultparameter default to NULL so that NULLs do not need to be specified. 2009-01-31 16:50:57 +00:00
Angie Byron 8851b57acf #227486 follow-up by catch: Move update 7010 to 6048 so that the 6.x and 7.x updates stay in sync. 2009-01-25 16:46:05 +00:00
Angie Byron 5951daf881 #363262 by catch and Damien Tournoud: Replace src index on the {url_alias} table with src, language for better performance. 2009-01-25 13:57:21 +00:00
Angie Byron 4bf29632d4 #363644 by chx: Remove annoying whitespace. 2009-01-25 12:22:09 +00:00
Dries Buytaert 3dc1157a1e - Patch #244904 by edkwh, keith.smith: renamed 'input format' to 'text format' based on UMN usability study. 2009-01-21 16:58:42 +00:00
Dries Buytaert d20e457121 - Patch #201122 by c960657, Moshe Weitzman: never write anonymous sessions, unless something has been written to . This is an important performance improvements -- as long as you use modules that use carefully. It might be good to report some analytics about this in the performance settings page so administrators can see if there is a 'broken' module. 2009-01-19 10:46:52 +00:00
Angie Byron 9e8bfddf29 #360104 by drewish: Allow taxomomy module to be uninstalled. 2009-01-19 01:53:26 +00:00
Angie Byron 0c57b989f5 #360106 by Dave Reid: Allow comment module to be uninstalled. 2009-01-19 01:23:39 +00:00
Dries Buytaert 534287b1bc - Patch #245990 by pwolanin: further clean-up of the HTTP request status fail problem. 2009-01-14 21:13:42 +00:00
Angie Byron cb159b9ff1 #143434 by Jody Lynn: Move 'display post information' to where users would expect. 2009-01-09 16:19:56 +00:00
Dries Buytaert 92a8adea65 - Patch #352470 by scor: fixed typos and grammar in comments. 2008-12-30 16:43:20 +00:00
Dries Buytaert 9120540d19 - Patch #339588 by jhedstrom, Josh Waihi, mikl: remove *_unsigned types and rework their sizes. Fixes exception on PostgreSQL. 2008-12-26 11:04:39 +00:00
Dries Buytaert 0c63d9e24f - Patch #349504 by keith.smith: clean up sentence spacing in code comments. 2008-12-20 18:24:41 +00:00
Dries Buytaert ec4eba68d7 - Patch #323528 by jhedstrom: fixed alias usage in queries for PostgreSQL. 2008-12-19 03:55:23 +00:00
Dries Buytaert cadd9bd54c - Patch #335086 by recidive: rename node, filter and comment module tables to singular for consistency. Oh my. 2008-12-03 16:32:22 +00:00
Dries Buytaert bc719d0c55 - Patch #337820 by Dave Reid, Damien Tournoud, et al: rename menu path 'logout' to 'user/logout'. For real now. 2008-11-29 09:33:51 +00:00
Angie Byron d7f706f291 Reverting #337820 once more, as it causes mysterious test failures. 2008-11-27 07:07:01 +00:00
Dries Buytaert c01f85bc37 - Patch #337820 by Dave Reid: rename menu path logout to user/logout. 2008-11-25 13:16:39 +00:00
Dries Buytaert 5083e13522 - Patch #333143 by justinrandell: cleaning up the Drupal bootstrap code, removing bootstrap flag in system table. 2008-11-24 10:41:40 +00:00
Angie Byron bd9554952c Reverting #337820 which causes menu tests to fail, unbeknownst to testing bot. Hrm... 2008-11-24 04:22:02 +00:00
Angie Byron 251a761eaa #337820 by Dave Reid: Rename menu path 'logout' to 'user/logout' for consistency. 2008-11-23 21:17:48 +00:00
Angie Byron c30376a50b #337820 follow-up: Reverting conflict cruft that somehow got introduced the last commit. 2008-11-23 20:29:36 +00:00
Dries Buytaert a7b2b9dfd1 - Patch #332980 by scor and keith.smith: documentation improvements + typo fixed. 2008-11-23 16:54:49 +00:00
Dries Buytaert 3e0e9c6f87 - Patch #245504 by David Rothstein: throttle module is gone now. For real. 2008-11-22 10:59:49 +00:00
Angie Byron 53f53b6db5 #11077 by mfb, KarenS, macgirvin, and jjkd: Can you say Daylight Savings Time? I bet you didn't think Drupal ever would! :) 2008-11-20 06:56:17 +00:00
Dries Buytaert 15671f471b - Patch #332123 by webchick, lilou: remove t() function from schema descriptions. 2008-11-15 13:01:11 +00:00
Dries Buytaert 10104ba94a - Patch #331570 by recidive: rename block module tables to singular. Requires you to run update.php. 2008-11-15 08:23:07 +00:00
Dries Buytaert 9a0618b98f - Patch #93509 by catch: automatically run cron after installation, improve the cron notifications. 2008-11-05 14:28:04 +00:00
Angie Byron a28f1ad9d2 #257910 follow-up by Damien Tournoud: Fix location of search.install update code and remove redundant index. 2008-11-03 06:33:21 +00:00
Angie Byron d0f8f90a36 #303889 by David_Rothstein, kbahey, and chx: Make it possible to update D6 -> D7. 2008-11-03 05:55:57 +00:00
Dries Buytaert 2cea471b5d - Patch #257910 by Damien Tournoud: use primary key instead. 2008-11-02 17:56:20 +00:00
Dries Buytaert b65907b89c - Patch #257910 by douggreen et al: Performance Issue during Indexing - search_dataset.sid_type unique key should be an Index. 2008-11-02 14:56:15 +00:00
Dries Buytaert e2a6a3ed61 - Patch #298600 by chx, justinrandell, Damien, et al: make module_implements work regardless of bootstrap phase. 2008-10-31 02:18:22 +00:00
Dries Buytaert f7e61d77e9 - Patch #296321 by pwolanin, swentel: link to cron.php broken when clean URLs are disabled. 2008-10-13 20:29:42 +00:00
Angie Byron f76acb2d9d #282405 by Damien Tournoud, lilou, Dave Reid: Enforce coding standard on elseif. 2008-10-12 04:30:09 +00:00