2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

Revert "master/worker: pause/resume devices"

This reverts commit 437b37b158.
This commit is contained in:
Sebastien Bourdeauducq 2016-06-11 10:11:11 -06:00
parent 44724197c5
commit eb359ce50b

View File

@ -77,19 +77,12 @@ set_watchdog_factory(Watchdog)
class Scheduler:
def __init__(self, device_mgr):
self.device_mgr = device_mgr
pause_noexc = staticmethod(make_parent_action("pause"))
@host_only
def pause(self):
self.device_mgr.pause_devices()
try:
if self.pause_noexc():
raise TerminationRequested
finally:
self.device_mgr.resume_devices()
if self.pause_noexc():
raise TerminationRequested
submit = staticmethod(make_parent_action("scheduler_submit"))
delete = staticmethod(make_parent_action("scheduler_delete"))
@ -186,8 +179,8 @@ def main():
exp_inst = None
repository_path = None
device_mgr = DeviceManager(ParentDeviceDB)
device_mgr.virtual_devices["scheduler"] = Scheduler(device_mgr)
device_mgr = DeviceManager(ParentDeviceDB,
virtual_devices={"scheduler": Scheduler()})
dataset_mgr = DatasetManager(ParentDatasetDB)
try: