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 configuration to kill_infrastructure signature #9250

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

desertaxle
Copy link
Member

@desertaxle desertaxle commented Apr 18, 2023

Updates BaseWorker to pass configuration to kill_infrastructure calls which allow worker implementations to retrieve the credentials needed to tear down created infrastructure for flow runs.

This update doesn't affect the ProcessWorker since it doesn't rely on a configuration object, but other worker implementations in Prefect integration packages will need pin their prefect dependency to the version where this change is implemented. Note that no other workers have implemented flow run cancellation yet.

Example

Checklist

  • This pull request references any related issue by including "closes <link to issue>"
    • If no issue exists and your change is not a small fix, please create an issue first.
  • This pull request includes tests or only affects documentation.
  • This pull request includes a label categorizing the change e.g. fix, feature, enhancement, docs.

@desertaxle desertaxle added the fix A fix for a bug in an existing feature label Apr 18, 2023
@desertaxle desertaxle requested a review from a team April 18, 2023 15:08
@desertaxle desertaxle force-pushed the fix-missing-config-in-kill-infra branch from 49aaef9 to 8cfd062 Compare April 18, 2023 15:09
@netlify
Copy link

netlify bot commented Apr 18, 2023

Deploy Preview for prefect-docs-preview ready!

Name Link
🔨 Latest commit 8cfd062
🔍 Latest deploy log https://app.netlify.com/sites/prefect-docs-preview/deploys/643eb2c549e0ec00081374d8
😎 Deploy Preview https://deploy-preview-9250--prefect-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@desertaxle desertaxle changed the title Adds configuration to kill_infrastructure signature Add configuration to kill_infrastructure signature Apr 18, 2023
@desertaxle desertaxle marked this pull request as ready for review April 18, 2023 15:39
@desertaxle desertaxle requested a review from a team as a code owner April 18, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A fix for a bug in an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants