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

"Run" request to server always takes maximum allowed time (macOS) #174

Open
ots22 opened this issue Oct 31, 2018 · 0 comments
Open

"Run" request to server always takes maximum allowed time (macOS) #174

ots22 opened this issue Oct 31, 2018 · 0 comments
Labels

Comments

@ots22
Copy link
Member

ots22 commented Oct 31, 2018

When running on macOS, a run submitted via the server always takes the length of time specified by the nanosleep in sheep-server.cpp, even if running the circuit takes much less time. (To reproduce, submit any simple circuit calculation using the 'clear' context via the web interface, which should return very quickly; instead this returns successfully after 10 seconds, when the timeout is reached).

The expected behaviour is for the request to return as soon as the run completes. The process spawned to handle the request returns SIGCHLD to the parent server process, which should interrupt the nanosleep but does not seem to on macOS. It was verified that SIGCHLD is received by the parent, however 'nanosleep' returns 0, indicating it was not interrupted.

@ots22 ots22 added the bug label Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant