fix: add status/duration/fps to FileDetailResponse; fix progress API with HSET+HGETALL
This commit is contained in:
@@ -86,7 +86,9 @@ class RedisPublisher:
|
||||
|
||||
try:
|
||||
client: redis.Redis = self._client
|
||||
client.publish(self.channel, json.dumps(asdict(msg)))
|
||||
json_data = json.dumps(asdict(msg))
|
||||
client.publish(self.channel, json_data)
|
||||
client.hset(self.channel, msg.processor, json_data)
|
||||
return True
|
||||
except Exception as e:
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user