DIRAC icon indicating copy to clipboard operation
DIRAC copied to clipboard

ThreadScheduler task is blocking for the others

Open chaen opened this issue 5 years ago • 2 comments

I just had the case of a periodic task not being executed anymore. This is because the previous task was pending for ever. It would be nice if we could avoid such a lock.

chaen avatar Jun 02 '20 15:06 chaen

Does it have any relation with the ThreadPool? Did you try DIRAC_USE_NEWTHREADPOOL=yes (v7r1) ?

fstagni avatar Jun 03 '20 14:06 fstagni

I checked, the variable was not set. In any case, it is not related to the threadPool. At least from a quick glance. I did not take time to investigate in depth. But the impression I had is that this task scheduler is not using a threadpool. It is just one extra thread, doing periodic tasks

chaen avatar Jun 03 '20 14:06 chaen