nutankumari / django-tasks

Automatically exported from code.google.com/p/django-tasks
0 stars 0 forks source link

If tasks take longer than 5 seconds, multiple tasks get started #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Start multiple tasks longer that take longer than 5 seconds 

What is the expected output? What do you see instead?

Only one tasks should start, and the remainding tasks should wait for it to 
finish. However, every 5 seconds, a new task is started regardless of how many 
tasks are already running.

What version of the product are you using? On what operating system?

r51, using Django 1.6 on Ubuntu 12.04 Server.

Please provide any additional information below.

I've attached a patch that checks for running tasks and only starts a new task 
if there aren't any running tasks.

Original issue reported on code.google.com by cebi...@gmail.com on 5 Dec 2013 at 12:01

Attachments: