Repository navigation
Introducing stop request/runner - #154
Merged
Merged
Conversation
matstech
marked this pull request as ready for review
May 13, 2026 19:56
speziato
requested changes
May 13, 2026
Collaborator
There was a problem hiding this comment.
Overall it looks great! I left some comments with some proposed changes.
I will also leave only a comment here: I don't like very much that the prettify function is in http.ts, maybe it could be placed in utils.ts instead, but it's not really important.
matstech
force-pushed
the
146-stop-request-before-timeout
branch
from
May 16, 2026 12:59
5e00a00 to
7106f8c
Compare
speziato
approved these changes
May 16, 2026
speziato
left a comment
Collaborator
There was a problem hiding this comment.
I left a non-blocking suggestion. This PR highlights that tabStore.svelte.ts is in desperate need of a serious refactor to keep it more "DRY", but we can do that later.
Comment on lines
+101
to
+102
| concurrency: 1, | ||
| iterations: 1, |
Collaborator
There was a problem hiding this comment.
should we keep the same defaults we were using before? like:
Suggested change
| concurrency: 1, | |
| iterations: 1, | |
| concurrency: 5, | |
| iterations: 20, |
maybe using two constants, since this snippet is repeated 3 times
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary 💡
This PR covers two different improvements (I thought they were dependent on each other):
Description 📝
requester.Servicenow acceptscontext.Contextthroughout the execution pipeline, enabling mid-flight cancellation.App.CancelExecute(requestId)cancels a single ongoing request;App.CancelRunner()cancels a parallel run.runner.godispatcher:returnreplaced withbreak loopsowg.Wait()/close(resultChan)are always reached after cancellation.runnerStore.svelte.ts;RequestRunner.svelterefactored to a thin UI layer. Stop buttons added to both the request builder and the runner.Tests performed 🧪
go test ./....format,check,lint,buildall pass.Breaking Changes 💔
None