mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-16 18:29:40 +00:00
Integrate posthog and log events to track usage (#17)
This commit is contained in:
parent
7322eac7b9
commit
879bc616d3
9 changed files with 112 additions and 1 deletions
|
@ -6,6 +6,7 @@ from datetime import datetime
|
|||
import requests
|
||||
import structlog
|
||||
|
||||
from scripts import tracking
|
||||
from skyvern.exceptions import (
|
||||
FailedToSendWebhook,
|
||||
MissingValueForParameter,
|
||||
|
@ -374,6 +375,7 @@ class WorkflowService:
|
|||
api_key: str | None = None,
|
||||
close_browser_on_completion: bool = True,
|
||||
) -> None:
|
||||
tracking.capture("skyvern-oss-agent-workflow-status", {"status": workflow_run.status})
|
||||
browser_state = await app.BROWSER_MANAGER.cleanup_for_workflow_run(
|
||||
workflow_run.workflow_run_id, close_browser_on_completion
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue