question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Start a Local Agent without Default Storage Labels

See original GitHub issue

Current behavior

Starting a LocalAgent will add storage labels by default, which can be confusing for new users and cluttered for users with many agents. Typically, starting a LocalAgent will produce the following by default:

[2020-09-01 15:34:50,612] INFO - agent | Starting LocalAgent with labels ['my-machine.local', 'azure-flow-storage', 'gcs-flow-storage', 's3-flow-storage', 'github-flow-storage', 'webhook-flow-storage']

Proposed behavior

Starting a Local Agent should automatically exclude the following labels: ‘azure-flow-storage’, ‘gcs-flow-storage’, ‘s3-flow-storage’, ‘github-flow-storage’, ‘webhook-flow-storage’

These labels should have some option to turn off by default or be removed by default.

Implemented here: https://github.com/PrefectHQ/prefect/blob/5edb9b39bb53e2cb11d37832f3f3f56bb1a3bc6a/src/prefect/agent/local/agent.py#L97

Example

prefect agent start -t “TOKEN” Produces:

[2020-09-01 17:56:00,216] INFO - agent | Starting LocalAgent with labels ['my-machine.local', 'azure-flow-storage', 'gcs-flow-storage', 's3-flow-storage', 'github-flow-storage', 'webhook-flow-storage']
[2020-09-01 17:56:00,216] INFO - agent | Agent documentation can be found at https://docs.prefect.io/orchestration/
[2020-09-01 17:56:00,216] INFO - agent | Agent connecting to the Prefect API at https://api.prefect.io
[2020-09-01 17:56:00,532] INFO - agent | Waiting for flow runs...

But can clutter the UI: 0

Potential Results: Agent management will be decluttered for users with many Agents. Quality of life change - specifying execution environments via flow affinity is a bit easier to navigate.

Please let me know if there is a current solution or reasoning I’m not aware of!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
clanzettcommented, Sep 19, 2020

Or maybe add some information about best practice regarding multiple agents on different hosts working on different runs of the same flow or something like that…

1reaction
flavienbwkcommented, Oct 10, 2020

I perfectly agree with @kmoonwright. Prefect shouldn’t force me to use labels and these should be disabled by default (such as how GitLab Runners system is working for example).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft-hosted agents for Azure Pipelines
Microsoft-hosted agents can run jobs directly on the VM or in a container. Azure Pipelines provides a predefined agent pool named Azure ...
Read more >
Labels - GitLab Docs
Generate default project labels. If a project or its parent group has no labels, you can generate a default set of project labels...
Read more >
Environments Overview - Prefect Docs
Prefect supports many storage types ranging from local storage to Docker ... "staging"] and run an Agent with the labels ["dev"] then it...
Read more >
Amazon ECS container agent configuration
If the default cluster does not exist, the Amazon ECS container agent ... If you are running the agent via ecs-init , which...
Read more >
Java agent configuration: Config file | New Relic Documentation
These settings are not included in newrelic.yml by default. You do not need to restart your JVM after changing them. If you want...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found