def lambda_handler(event, context): print(json.dumps(event)) tasks = list(map(task_factory, event.get("Records", []))) filtered_tasks = list(filter(None, tasks)) TaskEngine(*filtered_tasks).run() return event
def __init__(self): self._start_time = time.time() self._command = None self._builder = None self._logger = Logger() self._stop_event = threading.Event() self._logger_worker = LoggerWorker(self._logger, self._stop_event) self._task_engine = TaskEngine(self._logger) self._args = None self._config = None