karanpratapsingh / preview-environments

Quickly create temporary preview environments
MIT License
14 stars 4 forks source link

Catch case when no task in cluster #10

Closed moisesrodriguez closed 2 years ago

moisesrodriguez commented 2 years ago

When it's the first time running the provision it runs stopTask to check if there exists any running tasks in the cluster, but since it's the first time, it returns an empty array taskArns":[]. Currently fails because the next function getTasksDetails will get an empty array and needs at least one task to function properly.

moisesrodriguez commented 2 years ago

@karanpratapsingh done.