Open MobileVet opened 3 years ago
Thanks for reporting.
Would you open a PR with a failing test case? I think we have node cluster configuration built into Parse Server, so it may be possible to write a test.
@mtrezza Will take a look. I didn't realize the cluster configuration was possible with Parse Server setup. We have been using Throng outside of our PS setup.
Yes, not only is it possible, it should be conveniently configurable with a single option.
New Issue Checklist
Issue Description
Making a change to a
User
in one thread, does not show up immediately in another worker thread. For instance, if you create a super simple cloud function (see below) that changes a property on theUser
object and another cloud function that reads back that value (after having it hydrated from the request)... even if youawait
the change function, if you call the readUser function immediately after you will get the original value back.If you add an async wait and THEN call the readUser function, the value will be updated properly. Even running locally the wait must be several seconds to be effective.
Steps to reproduce
await
Actual Outcome
User.testVal
Expected Outcome
User.testVal
Failing Test Case / Pull Request
Will look at this... not sure if test env has ability to utilize clustering.
Environment
Server
Database
Client
Functions
Client Test function
Logs