Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2009 at 21:10 UTC
Updated:
30 Dec 2009 at 19:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
chx commentedPlease roll a patch with the -up parameters. (There is a handbook page) For reviewers: we discussed this in IRC and fgm claimed SQS can do a ChangeMessageVisibility(0) for release and beanstalkd has a release op. I am not so sure, the SQS docs say You could call ChangeMessageVisiblity with a value of two hours and the effective timeout would be two hours and 30 minutes. -- so calling it with 0 is a no-op?
Comment #2
damien tournoud commentedFor what I understand, ChangeMessageVisiblity actually works like set_time_limit(): it simply sets the running timeout counter to the new value. In that sense, if your item is about to timeout, calling
ChangeMessageVisiblity(300)actually "extends" its visibility timeout.The example paragraph in
ChangeMessageVisiblityis actually misleading.Comment #3
fgmPatch rerolled. For reference for reviewers:
Comment #4
fgmForgot to set status.
Comment #5
chx commentedI am fine with this after all. Given that there is no ordering guarantee if a queue implementation cant do this, there is no harm, after all and it can be useful.
Comment #6
dries commentedWhat about DamZ's comment in #2? Is there a documentation improvement required?
Comment #7
fgmI think that the documentation DamZ is referring to is the one provided by Amazon on their site.
In our case, releasing would be performed by a SQS implementation of DrupalQueue by setting visibility to 0, anyway.
Comment #8
dries commentedThanks for clarifying. Committed to CVS HEAD. Thanks.
Comment #9
yched commentedJust a note that this broke #629794: Scaling issues with batch API, which lies in the RTBC queue for a month.
No harsh feelings, but before updating the patch for the 6th time :-p, I'd like a word of confirmation from drieschick that it has a chance to get in.