blob: 63a9929a6679049193116ae25ea390000536da52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from abc import ABCMeta, abstractmethod
import six
class BaseTrigger(six.with_metaclass(ABCMeta)):
@abstractmethod
def get_next_fire_time(self, start_date):
"""
Returns the next datetime, equal to or greater than ``start_date``, when this trigger will fire.
If no such datetime can be calculated, returns ``None``.
:type start_date: datetime.datetime
"""
|