Comments (3)
Thanks for using it. I'm not sure how to resolve this problem. Normally you just need to wait for action state != running.
The library is currently also missing pagination support and floating ip handling. I've a managed client on my todo, too. This shouldn't be just a low level api client. The managed client should auto-poll for action finish, in a modarate poll level to not reach the rate limits.
Possibly this will help you:
while c.actions.find(action.id).status == "running"
sleep 1
end
from hcloud-ruby.
Actually the "find" action was the missing link.
This works:
action,server = c.servers.create(name: "moo5", server_type: "cx11", image: "ubuntu-16.04")
while action.status == "running"
puts "Waiting for Action #{action.id} to complete ..."
action = c.actions.find(action.id)
server = c.servers.find(server.id)
puts "Action Status: #{action.status}"
puts "Server Status: #{server.status}"
puts "Server IP Config: #{server.public_net["ipv4"]}"
sleep 5
end
I think it is worth adding it do the documentation.
from hcloud-ruby.
Oh, great. I'll close the issue if the readme has been updated 😄 .
from hcloud-ruby.
Related Issues (20)
- [Dependencies] Unpin activesupport HOT 1
- [Feature] Add missing Resources/Endpoints Q1/2022 HOT 1
- [Feature] Add Firewalls HOT 1
- [Feature] Add Certificates
- [Feature] Add PlacementGroups HOT 1
- [Feature] Add Pricing
- [Feature] Add LoadBalancers and -Types
- [Enhancement] Add missing fields / endpoints to Images + Servers HOT 3
- [CI] Build + Push to mirror
- Doubles tests failure with seed 50938 HOT 1
- [Bug] IPv6 global address is not parsed correctly
- [Bug] Firewalls do not expose actions
- [Feature] Add Primary IPs HOT 2
- [Feature] Add Primary IPs HOT 1
- [CI] Change fake service tests to integration tests
- [Enhancement] Make Typhoeus call check more natural to read
- CI-Adjustments to allow manual triggers
- question: could you point out the differences to other hcloud gem? HOT 2
- ARM64 Support
- 1.2.0 release raises `undefined method 'blank?'` errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hcloud-ruby.