Added scheduler process marker interface
authorThierry Florac <thierry.florac@onf.fr>
Thu, 10 Jan 2019 17:12:55 +0100
changeset 80 0c69defba0af
parent 79 6dfbdc00a812
child 81 64b3a28afb23
Added scheduler process marker interface
src/pyams_scheduler/interfaces/__init__.py
--- a/src/pyams_scheduler/interfaces/__init__.py	Fri Dec 28 11:09:17 2018 +0100
+++ b/src/pyams_scheduler/interfaces/__init__.py	Thu Jan 10 17:12:55 2019 +0100
@@ -12,17 +12,13 @@
 
 __docformat__ = 'restructuredtext'
 
-
-# import standard library
-
-# import interfaces
 from zope.annotation.interfaces import IAttributeAnnotatable
+from zope.container.constraints import containers, contains
+from zope.interface import Attribute, Interface, implementer
 from zope.interface.interfaces import IObjectEvent, ObjectEvent
+from zope.schema import Bool, Bytes, Choice, Datetime, Float, Int, List, Object, Text, TextLine
 
-# import packages
-from zope.container.constraints import contains, containers
-from zope.interface import implementer, Interface, Attribute
-from zope.schema import Date, Datetime, Choice, Text, TextLine, Bool, Int, Float, List, Object, Bytes
+from pyams_zmq.interfaces import IZMQProcess
 
 from pyams_scheduler import _
 
@@ -94,8 +90,12 @@
 SCHEDULER_JOBSTORE_KEY = 'pyams_scheduler.jobs'
 
 
+class ISchedulerProcess(IZMQProcess):
+    """Scheduler process marker interface"""
+
+
 class ISchedulerHandler(Interface):
-    """Scheduler managemer marker interface"""
+    """Scheduler manager marker interface"""
 
 
 class IScheduler(IAttributeAnnotatable):