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

When server reloads, any current server method is rerun #11

Open
mitar opened this issue Jan 28, 2016 · 1 comment
Open

When server reloads, any current server method is rerun #11

mitar opened this issue Jan 28, 2016 · 1 comment

Comments

@mitar
Copy link
Member

mitar commented Jan 28, 2016

If tests are just in running a @runOnServer test, then if the server is restarted at that time (because some test changed), client retries the method, but the test instance does not exist anymore, so errors are thrown in the server side console.

One option would be to find a way to call those methods without them be retried on server restart.

Another is to pass current connection ID when calling the method, so that if the server is retried, an old connection ID will be send as an argument. Server side then checks that the connection ID matches current connection ID before progressing.

@mitar
Copy link
Member Author

mitar commented Jan 28, 2016

Related: meteor/meteor#6108

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