Skip to content

Commit

Permalink
feat(engine): Replace loggers + add contextvar for workflow run
Browse files Browse the repository at this point in the history
  • Loading branch information
daryllimyt committed May 8, 2024
1 parent 35b56bb commit 32cc183
Show file tree
Hide file tree
Showing 5 changed files with 295 additions and 279 deletions.
1 change: 1 addition & 0 deletions tracecat/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@


ctx_session_role: ContextVar[Role] = ContextVar("session_role", default=None)
# TODO: Deprecate this contextvar
ctx_workflow: ContextVar[Workflow] = ContextVar("workflow", default=None)
ctx_workflow_run: ContextVar[WorkflowRunContext] = ContextVar(
"workflow_run", default=None
Expand Down

0 comments on commit 32cc183

Please sign in to comment.