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

Graceful Interruptions #3718

Open
birla opened this issue Apr 29, 2024 · 0 comments
Open

Graceful Interruptions #3718

birla opened this issue Apr 29, 2024 · 0 comments
Assignees

Comments

@birla
Copy link

birla commented Apr 29, 2024

Feature Description

In some cases, there is a requirement to do some cleanup, for each iteration, before it is interrupted. Consider the following VU pseudocode:

  1. Begin a new session (API call)
  2. Loop over certain API calls
  3. End the session (API call)

When a session is interrupted, even when using gracefulStop, the VU code doesn't get a chance to react to the upcoming interruption.

Suggested Solution (optional)

Possibly implement a signal (for example AbortController) for upcoming interruption (for the VU code) or a per-iteration teardown.

Already existing or connected issues / PRs (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants