-
Notifications
You must be signed in to change notification settings - Fork 761
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
feat: enable migration testing #1583
Conversation
I just realised, this solution will force users to press |
Unfortunately, no. Windows supports only |
I want them to use different shortcut. This shouldnt be the default, rather an opt-in. Migrations are rather apify specific thing, so is their testing. I was thinking about something similar to watch mode in some test runners like vitest, where it listens to your input on prompt (while printing the logs), so you can press anything and map any behavior this way. I hope it could be done easily, if not, I'd at least hide this behind a config toggle and keep it disabled by default. |
This would support #1531, right? That seems generally useful but maybe people did not yet hit a real need for it to be asking us :) |
Yes, so you would be fine with doing this by default? Maybe we should add the same mechanism, with a 10s exit automatically triggered, right now it will wait for the second |
After you press CTRL+C it will gracefully shut down (migration state). If you press CTRL+C again then it will force shutdown. |
We would have to show them how to do this (stty command), I never had the need to add another interrupt signal keyboard shortcuts. |
It woudn't be an interrupt signal, it would be a shortcut to trigger the pause code - it would be a different event, not sigint. |
|
Actually Reverted back to handling just |
_pauseOnMigration
does not stop the autoscaled pool, keeping the event loop alive. Is this expected?Google Meet summary: probably, let's consult with Ondra
Resolution: it should probably not block the event loop, but there's bunch of other things that are blocking the event loop, such as snapshotter so probably not worth the change
Flaky tests encountered (should be a separate issue?):
Closes #1531