(DIO-908) Floaty can now report the status of ABS requests

- If ABS queries returns a body for 200 or 202, floaty will print it
this is useful in the new version of ABS, since it shows the progress
for ondemand requests (AWS or vmpooler)
- removed the queue_place and querying the queue for a 'get' request
this queue_place number was misleading since it was just a redis index
and did not represent well where the request was in the queue
- Also added a flag option --continue to be used when the cli was
interrupted for example with ctrl-c
This commit is contained in:
Samuel Beaulieu 2021-02-09 11:29:08 -06:00
parent 85a63e85fe
commit a3d8484124
6 changed files with 30 additions and 31 deletions

View file

@ -77,10 +77,10 @@ class Service
@service_object.list_active verbose, url, token, user
end
def retrieve(verbose, os_types, use_token = true, ondemand = nil)
def retrieve(verbose, os_types, use_token = true, ondemand = nil, continue = nil)
FloatyLogger.info 'Requesting a vm without a token...' unless use_token
token_value = use_token ? token : nil
@service_object.retrieve verbose, os_types, token_value, url, user, @config, ondemand
@service_object.retrieve verbose, os_types, token_value, url, user, @config, ondemand, continue
end
def wait_for_request(verbose, requestid)