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

Fix cancellation bug #8315

Merged
merged 5 commits into from
Feb 1, 2023
Merged

Fix cancellation bug #8315

merged 5 commits into from
Feb 1, 2023

Conversation

anticorrelator
Copy link
Contributor

Agents were not properly updating Cancelling runs to a Cancelled state after cancellation logic has fired. This update fixes that.

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

@anticorrelator anticorrelator added the fix A fix for a bug in an existing feature label Jan 30, 2023
@anticorrelator anticorrelator requested a review from a team as a code owner January 30, 2023 20:54
@netlify
Copy link

netlify bot commented Jan 30, 2023

Deploy Preview for prefect-orion ready!

Name Link
🔨 Latest commit 6ca04b4
🔍 Latest deploy log https://app.netlify.com/sites/prefect-orion/deploys/63d83d2e0ac92c0008b0c4d8
😎 Deploy Preview https://deploy-preview-8315--prefect-orion.netlify.app/api-ref/prefect/agent
📱 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.

@pytest.mark.parametrize(
"cancelling_constructor", [legacy_named_cancelling_state, Cancelling]
)
async def test_agent_cancel_run_preserves_other_state_properties(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we keep this test and just include type in the expected changed fields?

src/prefect/agent.py Fixed Show fixed Hide fixed
@anticorrelator anticorrelator merged commit c076a93 into main Feb 1, 2023
@anticorrelator anticorrelator deleted the fix-agent-cancelling-bug branch February 1, 2023 19:52
@zanieb zanieb mentioned this pull request Feb 3, 2023
3 tasks
zanieb pushed a commit that referenced this pull request Feb 3, 2023
zanieb pushed a commit that referenced this pull request Feb 3, 2023
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.

3 participants