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

autoStart with custom init #109

Open
JakeHamix opened this issue Oct 24, 2022 · 0 comments
Open

autoStart with custom init #109

JakeHamix opened this issue Oct 24, 2022 · 0 comments

Comments

@JakeHamix
Copy link

I've been unable to successfully take advantage of the autoStart parameter.

autoStart when set to true will start the workers as early as possible. Use this when your workers have to do expensive initialization. That way they'll be ready when the first request comes through.

In my use-case, I'd like my Workers to initialize a connection to another (logging) application (which can take up to several hundred milliseconds) before they start accepting/executing called methods.

It was my understanding that this parameter is present for these cases, when one needs to make expensive initialization. But I could not figure out what is the intended way of implementing such behavior and could find no such examples.

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

No branches or pull requests

1 participant