adam
adam

Reputation: 685

python scheduler

I am looking for a scheduler in python that will start a series of threads at the same time(exactly 8 of them), and when one of them completes it will add a new one to the job pool, and start it. This process will continue till all the threads (~100) are completed.

I have looked at the APScheduler package. Maybe by using add_job, I might be able to do it, though it is not clear since I could not find any example.

add_job(trigger, func, args, kwargs, jobstore='default', **options)

Does anyone know how to set a trigger in this function

Upvotes: 2

Views: 2269

Answers (1)

adam
adam

Reputation: 685

The answer to this question is to use the concurrent futures

http://docs.python.org/dev/library/concurrent.futures.html

Upvotes: 2

Related Questions