Skip to content

Commit 0d1e647

Browse files
committed
list tasks
1 parent 201d324 commit 0d1e647

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • app/lib/client/resources

app/lib/client/resources/ecs.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,18 @@ def initialize
6565
}
6666
end
6767
end
68-
@client.list_tasks(cluster: UC3::UC3Client.cluster_name, max_results: 100).task_arns.each do |task_arn|
68+
arns = @client.list_tasks(cluster: UC3::UC3Client.cluster_name, max_results: 100).task_arns
69+
puts arns.inspect
70+
arns.each do |task_arn|
6971
id = task_arn.split('/').last
70-
task = {id: id}
72+
puts "Task id: #{id}"
73+
task = { id: id }
7174
@tasks[id] = task
7275
@client.describe_tasks(
7376
cluster: UC3::UC3Client.cluster_name,
7477
tasks: [id]
7578
).tasks.each do |task|
79+
puts task.inspect
7680
@tasks[id] = {
7781
id: id,
7882
name: task.group,

0 commit comments

Comments
 (0)