fix: add status/duration/fps to FileDetailResponse; fix progress API with HSET+HGETALL

This commit is contained in:
M5Max128
2026-05-25 03:40:02 +08:00
parent 29eabf6d88
commit 0806d44df4
3 changed files with 143 additions and 61 deletions

View File

@@ -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