14 lines
270 B
Python
14 lines
270 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class UpstreamSource(ABC):
|
|
MAX_RETRIES = 2
|
|
RETRY_DELAY = 2 # secondes
|
|
|
|
def __init__(self, name, config):
|
|
self.name = name
|
|
self.config = config
|
|
|
|
@abstractmethod
|
|
def get_latest(self):
|
|
pass
|