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

Getting empty metadata file never returns #66

Open
hbredin opened this issue Jun 3, 2016 · 3 comments
Open

Getting empty metadata file never returns #66

hbredin opened this issue Jun 3, 2016 · 3 comments

Comments

@hbredin
Copy link
Member

hbredin commented Jun 3, 2016

_, emptyFile = tempfile.mkstemp()
client.sendCorpusMetadataFile(corpus, 'key', emptyFile)
client.getCorpusMetadata(corpus, path='key')

The last line never returns.

@hbredin
Copy link
Member Author

hbredin commented Jun 3, 2016

@marc-j any idea?

@marc-j
Copy link
Contributor

marc-j commented Jun 3, 2016

Add sleep, file save is asynchronous !

@hbredin
Copy link
Member Author

hbredin commented Jun 3, 2016

Same problem with

_, emptyFile = tempfile.mkstemp()
client.sendCorpusMetadataFile(corpus, 'key', emptyFile)
time.sleep(5.0)
client.getCorpusMetadata(corpus, path='key')

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

2 participants