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

Feature request: Have the rspec-queue executable output the queue size #93

Open
tennety opened this issue Jan 2, 2019 · 0 comments
Open

Comments

@tennety
Copy link

tennety commented Jan 2, 2019

Since ci-queue cannot by necessity respect before(:all) hooks, I have a workaround to run the required setup in my CI script. However, I'd like to avoid running it if the queue is empty (i.e. other workers have already exhausted it), so it would be cool to have something like:

unless `rspec-queue --query queue-size`.chomp! == '0'
  # do expensive setup
end

If there's already a straightforward programmatic way to do this, I'm happy to use that instead of adding a feature!

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

1 participant