Skip to content

Commit

Permalink
forgotten imports
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoxos committed Sep 26, 2023
1 parent 6e44c7c commit 701bb78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mupifDB/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ def get_execution_outputs(uid: str):
@app.get("/executions/{uid}/livelog/{num}", tags=["Executions"])
def get_execution_livelog(uid: str, num: int):
if (rec:=db.WorkflowExecutions.find_one({"_id": bson.objectid.ObjectId(uid)})) and (uri:=rec.get('loggerURI',None)):
import Pyro5.api
import serpent
import pickle
import logging
fmt=logging.Formatter(fmt='%(asctime)s %(levelname)s %(filename)s:%(lineno)s %(message)s')
proxy=Pyro5.api.Proxy(uri)
proxy._pyroTimeout=5
ll=proxy.tail(num,raw=True)
Expand Down

0 comments on commit 701bb78

Please sign in to comment.