Skip to content

Commit

Permalink
add: worker thread names
Browse files Browse the repository at this point in the history
  • Loading branch information
colebaileygit committed Jun 20, 2024
1 parent 1f82462 commit 9df63d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def __init__(

def initialize(self, evaluation_context: EvaluationContext) -> None:
self.active = True
self.thread = threading.Thread(target=self.refresh_file, daemon=True)
self.thread = threading.Thread(
target=self.refresh_file, daemon=True, name="FlagdFileWatcherWorkerThread"
)
self.thread.start()

# Let this throw exceptions so that provider status is set correctly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def __init__(

def initialize(self, context: EvaluationContext) -> None:
self.active = True
self.thread = threading.Thread(target=self.sync_flags, daemon=True)
self.thread = threading.Thread(
target=self.sync_flags, daemon=True, name="FlagdGrpcSyncWorkerThread"
)
self.thread.start()

## block until ready or deadline reached
Expand Down

0 comments on commit 9df63d2

Please sign in to comment.