SIENTIAPDE-1005
Add initial implementation of data processing activities and filters
This commit is contained in:
18
scouter/activities/redis.py
Normal file
18
scouter/activities/redis.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from temporalio import workflow, activity
|
||||
|
||||
with workflow.unsafe.imports_passed_through():
|
||||
from logging import Logger
|
||||
from sientia_do.notifications.handlers import NotificationHandler
|
||||
from scouter.activities.base import BaseActivity
|
||||
from typing import Any
|
||||
from kafka import KafkaConsumer
|
||||
from pandas import DataFrame
|
||||
|
||||
|
||||
class Redis(BaseActivity):
|
||||
def __init__(self, host: str, port: int, db: int, logger: Logger, notification_handler: NotificationHandler):
|
||||
self.host = host
|
||||
self.port = port
|
||||
self.db = db
|
||||
|
||||
super().__init__(logger, notification_handler)f
|
||||
Reference in New Issue
Block a user