Skip to content

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

Merged
merged 2 commits into from
May 12, 2016

Conversation

stephenplusplus
Copy link
Contributor

@stephenplusplus stephenplusplus commented May 6, 2016

Fixes #1285

To Dos

  • Docs
  • Tests
    • System
    • Unit

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 any error listeners.

// cc @jasonpolites

@stephenplusplus stephenplusplus added the api: bigquery Issues related to the BigQuery API. label May 6, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 6, 2016
@coveralls
Copy link

coveralls commented May 6, 2016

Coverage Status

Coverage decreased (-0.4%) to 99.591% when pulling bd09731 on stephenplusplus:spp--1285 into f4e431f on GoogleCloudPlatform:master.

@stephenplusplus
Copy link
Contributor Author

@callmehiphop tests added, ptal! (don't forget to squash and merge 😄 )

@coveralls
Copy link

coveralls commented May 11, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 348dc72 on stephenplusplus:spp--1285 into 339cda2 on GoogleCloudPlatform:master.

* }
* });
* job.on('error', function(err) {});
* job.on('complete', function(metadata) {});

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@stephenplusplus stephenplusplus modified the milestone: v0.33.0 May 11, 2016
@callmehiphop callmehiphop merged commit e4d991a into googleapis:master May 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants