-
Notifications
You must be signed in to change notification settings - Fork 8
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 dev_server library #173
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth including something to clean up the Dev Server process if the parent process is killed?
Experimental so no need now!
self._process = subprocess.Popen( | ||
[ | ||
"npx", | ||
"--yes", | ||
"inngest-cli@latest", | ||
"dev", | ||
"--no-discovery", | ||
"--no-poll", | ||
"--port", | ||
f"{self.port}", | ||
], | ||
bufsize=1, | ||
stderr=subprocess.STDOUT, | ||
stdout=subprocess.PIPE, | ||
text=True, | ||
universal_newlines=True, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to move away from npx
for the Python SDK when this comes out of experimental - npm
could be an extra tool folks have to install.
Not sure what we've move to, though, outside of managing a /tmp/
version where we install the binary directly.
Add
inngest.experimental.dev_server
library, which is used to start and stop a Dev Server during integration testing. It's dogfooded in all of this repo's integration tests.