Skip to content

Commit

Permalink
Add worker_task attribute to TelemetryService to avoid AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Nov 18, 2024
1 parent a7aa3ab commit c0548b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/base/langflow/services/telemetry/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, settings_service: SettingsService):

self.ot = OpenTelemetry(prometheus_enabled=settings_service.settings.prometheus_enabled)
self.architecture: str | None = None

self.worker_task: asyncio.Task | None = None
# Check for do-not-track settings
self.do_not_track = (
os.getenv("DO_NOT_TRACK", "False").lower() == "true" or settings_service.settings.do_not_track
Expand Down

0 comments on commit c0548b6

Please sign in to comment.