mistral/mistral/tests/unit/scheduler
Renat Akhmerov 0f6bc1897f Improve new scheduler
* 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
2019-08-16 13:39:39 +07:00
..
__init__.py New experimental scheduler: the first working version 2018-08-14 14:02:19 +07:00
test_default_scheduler.py Improve new scheduler 2019-08-16 13:39:39 +07:00