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

Configurable wait_interval #146

Open
GLStephen opened this issue Aug 31, 2017 · 2 comments
Open

Configurable wait_interval #146

GLStephen opened this issue Aug 31, 2017 · 2 comments

Comments

@GLStephen
Copy link
Contributor

Environments

  • fluentd version: 14
  • plugin version: 1.0.0

I'm considering making wait_interval configurable in the version of fluent-plugin-bigquery that I am using. The current wait time for jobs is too short and my debug view is very very chatty. Would you like a PR for this?

@joker1007
Copy link
Collaborator

I see. It's reasonable!!
Welcome PR 👍

@GLStephen
Copy link
Contributor Author

GLStephen commented Oct 20, 2017

@joker1007 I am seeing instances where even with the default 10 second sleep this code will be called every 1 second.

until _response.status.state == "DONE"
          log.debug "wait for load job finish", state: _response.status.state, job_id: _response.job_reference.job_id
          sleep wait_interval
          _response = client.get_job(project, _response.job_reference.job_id)
        end

I was exploring extending the time, but there seems to be something else waking up the thread constantly.

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