-
Notifications
You must be signed in to change notification settings - Fork 616
bigquery: implement Job as an event emitter #1294
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
Conversation
bd09731
to
348dc72
Compare
@callmehiphop tests added, ptal! (don't forget to squash and merge 😄 ) |
* } | ||
* }); | ||
* job.on('error', function(err) {}); | ||
* job.on('complete', function(metadata) {}); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Fixes #1285
To Dos
Like Compute Engine Operation objects, BigQuery Job objects are now event emitters. Only after registering a
complete
listener, we start polling the job for updates. Errors are parsed and emitted to anyerror
listeners.// cc @jasonpolites