Remove some blocking code

* added 2 new statuses: creating and deleting
  * remove wait on create/delete, speeding things up a bit
This commit is contained in:
Gabriel Adrian Samfira 2022-05-13 23:34:16 +00:00
parent e7eb13acc9
commit 98eb594cd6
4 changed files with 86 additions and 63 deletions

View file

@ -65,6 +65,8 @@ type Store interface {
ListRepoInstances(ctx context.Context, repoID string) ([]params.Instance, error)
ListOrgInstances(ctx context.Context, orgID string) ([]params.Instance, error)
PoolInstanceCount(ctx context.Context, poolID string) (int64, error)
// Probably a bad idea without some king of filter or at least pagination
// TODO: add filter/pagination
ListAllInstances(ctx context.Context) ([]params.Instance, error)