Closed (fixed)
Project:
Examples for Developers
Version:
7.x-1.x-dev
Component:
Other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2010 at 04:27 UTC
Updated:
19 Jul 2011 at 23:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
rfayA fantastic idea.
Comment #2
coltraneHere's an example module. It provides a page for creating queue items and another for viewing them and deleting. Marking this CNR for time being but I still need to write tests. Any feedback is welcome.
Thanks!
Comment #3
rfayThanks so much for this! It's going to help lots of people.
Please add a paragraph here that gives an explanation of the Queue API and the key buzzwords used with it. I see "claim" and "leased". Also please add a link to any and all handbook or api.d.o documentation there is.
I think just "Queue Example"
Please implement hook_help() with a decent description of what's going on with each page. I'm unfamiliar with the term "claim" in queueing context, and was not clear what it meant to release. The entire "items" page was a mystery. Does it work correctly? I think if you implement hook_help() for those two pages things will be much better.
And as you said, tests would be much appreciated.
Powered by Dreditor.
Comment #4
chx commentedi will review this later
Comment #5
rfayI'd like to see still more functionality (BatchQueue and MemoryQueue, for example) demonstrated here. John VanDyk's DrupalconSF presentation is a nice resource: video and slides
Comment #6
rfayOK, here's another pass at this, with more user interface and added comments, and tests.
Comment #7
rfayI committed this to HEAD: http://drupal.org/cvs?commit=370440.
Thanks, @coltrane for showing me how it works and getting this started.
Followup issues are encouraged.
Comment #8
rfayFollowup to fix a typo in the test: http://drupal.org/cvs?commit=372390
Comment #10
webchickJust a note to say THANKS! This is a wonderful example module. Appreciated the pointer to http://www.ent.iastate.edu/it/Batch_and_Queue.pdf too.