Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Force sequential execution of callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
jondequinor authored and sondreso committed Mar 10, 2021
1 parent 10cd45e commit 63ac795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/job_queue/job_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ static void handle_run_jobs(job_queue_type * queue, int num_total_run, bool verb
potentially be quite high while running the DONE callback - should therefor not use
too many threads.
*/
const int NUM_WORKER_THREADS = 4;
const int NUM_WORKER_THREADS = 1;
queue->work_pool = thread_pool_alloc(NUM_WORKER_THREADS, true);
res_log_debug("Allocated thread pool in job_queue_run_jobs");

Expand Down
2 changes: 1 addition & 1 deletion python/res/job_queue/job_queue_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from res.job_queue import JobStatusType
from threading import BoundedSemaphore

CONCURRENT_INTERNALIZATION = 10
CONCURRENT_INTERNALIZATION = 1


# TODO: there's no need for this class, all the behavior belongs in the queue
Expand Down

0 comments on commit 63ac795

Please sign in to comment.