Commit 94fba0a4 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

tweaks

parent 71707f5b
...@@ -69,5 +69,6 @@ class BaseDAG: ...@@ -69,5 +69,6 @@ class BaseDAG:
return dag_run_id return dag_run_id
@abstractmethod @abstractmethod
def push(self, msg: str) -> None: def push(self, msg_dict: dict) -> None:
return self.dfs.redis.push(msg) msg_str = json.dumps(msg_dict, ensure_ascii=False, indent=None)
return self.dfs.redis.push(msg_str)
...@@ -101,7 +101,4 @@ class CsstMscL1Mbi(BaseDAG): ...@@ -101,7 +101,4 @@ class CsstMscL1Mbi(BaseDAG):
) )
assert this_update.success, this_update.message assert this_update.success, this_update.message
msgs.append(this_msg) msgs.append(this_msg)
# self.push(msg)
return msgs return msgs
# push msg
# update prc_status
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment