Skip to content

Conversation

@Marenz
Copy link
Contributor

@Marenz Marenz commented May 15, 2025

No description provided.

Copilot AI review requested due to automatic review settings May 15, 2025 09:44
@Marenz Marenz requested a review from a team as a code owner May 15, 2025 09:44
@github-actions github-actions bot added part:docs Affects the documentation part:dispatcher Affects the high-level dispatcher interface labels May 15, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the dispatch URL used in examples to a dummy URL.

  • Updated the default dispatch URL in multiple run functions within _dispatcher.py.
  • Updated the URL in the main function of _actor_dispatcher.py.
  • Updated the URL in the README example.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/frequenz/dispatch/_dispatcher.py Updated default URL in several run functions.
src/frequenz/dispatch/_actor_dispatcher.py Updated default URL in the main function.
README.md Updated dispatch URL in example code.

async def run():
url = os.getenv("DISPATCH_API_URL", "grpc://fz-0004.frequenz.io:50051")
url = os.getenv("DISPATCH_API_URL", "grpc://dispatch.url.goes.here.example.com")
Copy link

Copilot AI May 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The default dispatch URL assignment appears in multiple run functions; consider centralizing this logic (for example, via a helper or a shared constant) to simplify future updates.

Suggested change
url = os.getenv("DISPATCH_API_URL", "grpc://dispatch.url.goes.here.example.com")
url = os.getenv("DISPATCH_API_URL", DEFAULT_DISPATCH_URL)

Copilot uses AI. Check for mistakes.
async def main():
url = os.getenv("DISPATCH_API_URL", "grpc://fz-0004.frequenz.io:50051")
url = os.getenv("DISPATCH_API_URL", "grpc://dispatch.url.goes.here.example.com")
Copy link

Copilot AI May 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Similar to other changes, the repeated assignment of the default dispatch URL could be consolidated into a common module or constant for better maintainability.

Suggested change
url = os.getenv("DISPATCH_API_URL", "grpc://dispatch.url.goes.here.example.com")
url = os.getenv("DISPATCH_API_URL", DEFAULT_DISPATCH_URL)

Copilot uses AI. Check for mistakes.
@Marenz Marenz added the cmd:skip-release-notes It is not necessary to update release notes for this PR label May 15, 2025
@Marenz Marenz added this pull request to the merge queue May 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 15, 2025
@Marenz Marenz added this pull request to the merge queue May 15, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit b906c7e May 15, 2025
5 of 6 checks passed
@Marenz Marenz deleted the update_url branch May 15, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:dispatcher Affects the high-level dispatcher interface part:docs Affects the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants