task-queue

Google App Engine: task_retry_limit doesn't work?

六眼飞鱼酱① 提交于 2019-11-27 05:57:48
问题 I have a Python GAE app. I want my tasks to stop running or just retry once if they fail. Right now, they run forever despite what my yaml file is telling them! Here is a queue.yaml entry: - name: globalPurchase rate: 10/s bucket_size: 100 retry_parameters: task_retry_limit: 1 If globalPurchase task fails with a 500 error code, it is retried forever until it succeeds with this message in the logs: "Task named "task14" on queue "globalPurchase" failed with code 500; will retry in 30 seconds"

Parallel processing in PHP - How do you do it?

橙三吉。 提交于 2019-11-26 15:32:32
问题 I am currently trying to implement a job queue in php. The queue will then be processed as a batch job and should be able to process some jobs in parallel. I already did some research and found several ways to implement it, but I am not really aware of their advantages and disadvantages. E.g. doing the parallel processing by calling a script several times through fsockopen like explained here: Easy parallel processing in PHP Another way I found was using the curl_multi functions. curl_multi

Is there a performance difference between pooling connections or channels in rabbitmq?

梦想与她 提交于 2019-11-26 11:54:07
问题 I\'m a newbie with Rabbitmq(and programming) so sorry in advance if this is obvious. I am creating a pool to share between threads that are working on a queue but I\'m not sure if I should use connections or channels in the pool. I know I need channels to do the actual work but is there a performance benefit of having one channel per connection(in terms of more throughput from the queue)? or am I better off just using a single connection per application and pool many channels? note: because I