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

Defer user logout on HIT submission #81

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

mizzao
Copy link
Member

@mizzao mizzao commented Jul 1, 2016

This fixes (maybe) one of the potential issues described in #28, where there is a race condition on the client between the browser logging itself out and the HIT submitting to MTurk. In the case where the former happens first, the MTurk submit form doesn't work properly and the user sees an error.

This is not a reliable bug to reproduce, but we've seen it enough that if this works in most cases it may be better than what we have so far.

@mizzao
Copy link
Member Author

mizzao commented Jul 14, 2016

One reason this approach might cause issues is that it will log a user out right after accepting a new HIT, because of the delay. This would not work for apps that allow users to do a sequence of HITs.

@mizzao
Copy link
Member Author

mizzao commented Nov 10, 2019

TODO: rebase this on the JS version of the file.

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

Successfully merging this pull request may close these issues.

1 participant