Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Agent Label to prefect.context.config #1671

Closed
joeschmid opened this issue Oct 28, 2019 · 0 comments · Fixed by #1701
Closed

Add Agent Label to prefect.context.config #1671

joeschmid opened this issue Oct 28, 2019 · 0 comments · Fixed by #1701
Assignees
Labels
enhancement An improvement of an existing feature

Comments

@joeschmid
Copy link

Current behavior

From within a task, basic info about an Agent is available via prefect.context.config:

{'cloud': 
    {'agent': 
      {'level': 'INFO',
       'name': 'agent',
       'resource_manager': <Box: {'loop_interval': 60}>},

Proposed behavior

If running multiple Agents (with Environment Labels), having access to the label setting for the Agent that kicked off execution would be useful.

Example

A Flow that monitors a k8s/Dask cluster could include the environment label in its alerts, e.g. "Found 100 nodes running in the staging environment" where staging was the label the Agent was started with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants