0f6bc1897f
* Changed method get_scheduled_jobs_count() in the Scheduler interface to has_scheduled_jobs(). In fact, the callers always need to compare the number of jobs with 0, i.e. to see if there are any jobs or not. But more importantly, this semantics (returning just boolean) allows to make a good optimisation for DefaultScheduler and avoid DB calls in a number of cases. Practically, for example, it saves several seconds (5-6) if we run a workflow with 500 parallel no-op tasks that are all merged with one "join" task. Tested on 1 and 2 engines. * Added test assertions for has_scheduled_jobs() * Other minor chagnes Change-Id: Ife48d9e464114fd60a08707d8f32f847a6f623c9 |
||
---|---|---|
.. | ||
__init__.py | ||
test_default_scheduler.py |