Class: Aws::Omics::Waiters::TaskRunning
- Inherits:
-
Object
- Object
- Aws::Omics::Waiters::TaskRunning
- Defined in:
- lib/aws-sdk-omics/waiters.rb
Overview
Wait until a task is running.
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ TaskRunning
constructor
A new instance of TaskRunning.
-
#wait(params = {}) ⇒ Types::GetRunTaskResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ TaskRunning
Returns a new instance of TaskRunning.
880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 |
# File 'lib/aws-sdk-omics/waiters.rb', line 880 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 20, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :get_run_task, acceptors: [ { "matcher" => "path", "argument" => "status", "state" => "success", "expected" => "RUNNING" }, { "matcher" => "path", "argument" => "status", "state" => "retry", "expected" => "PENDING" }, { "matcher" => "path", "argument" => "status", "state" => "retry", "expected" => "STARTING" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "FAILED" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "CANCELLED" } ] ) }.merge()) end |
Instance Attribute Details
#waiter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
930 931 932 |
# File 'lib/aws-sdk-omics/waiters.rb', line 930 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetRunTaskResponse
Returns a response object which responds to the following methods:
-
#task_id => String
-
#status => String
-
#name => String
-
#cpus => Integer
-
#cache_hit => Boolean
-
#cache_s3_uri => String
-
#memory => Integer
-
#creation_time => Time
-
#start_time => Time
-
#stop_time => Time
-
#status_message => String
-
#log_stream => String
-
#gpus => Integer
-
#instance_type => String
-
#failure_reason => String
-
#image_details => Types::ImageDetails
925 926 927 |
# File 'lib/aws-sdk-omics/waiters.rb', line 925 def wait(params = {}) @waiter.wait(client: @client, params: params) end |