Skip to content
Snippets Groups Projects
Commit 7190e00c authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-566: even if we start the dynsched service, even then the dynamic...

TMSS-566: even if we start the dynsched service, even then the dynamic scheduling is disable in the settings
parent 839ddc70
No related branches found
No related tags found
1 merge request!314Resolve TMSS-566
......@@ -376,11 +376,8 @@ class TMSSTestEnvironment:
if self._start_dynamic_scheduler:
from lofar.sas.tmss.services.scheduling.dynamic_scheduling import create_dynamic_scheduling_service, models
# by default, dynamic scheduling is disabled in TMSS.
# In this test environment, we do want to have it enabled. Why else would we wanna start this service?
setting = models.Setting.objects.get(name=models.Flag.Choices.DYNAMIC_SCHEDULING_ENABLED.value)
setting.value = True
setting.save()
# beware: by default, dynamic scheduling is disabled in TMSS.
# so, even if we start the service, even then the dynamic scheduling is disable in the settings.
self.dynamic_scheduler = create_dynamic_scheduling_service(exchange=self._exchange, broker=self._broker)
self.dynamic_scheduler.start_listening()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment