Skip to content

Commit

Permalink
Remove unnecessary wait between two triggers creation (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
norbjd authored Oct 26, 2023
1 parent f917c52 commit e0d765e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions containers/terraform-triggers/triggers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,10 @@ resource "scaleway_container_trigger" "public" {
}
}

# There is a small bug today when multiple triggers are created at the same time
# We'll wait 10 seconds before creating other triggers
resource "time_sleep" "wait_10_seconds_after_public_trigger_creation" {
depends_on = [scaleway_container_trigger.public]

create_duration = "10s"
}

resource "scaleway_container_trigger" "private" {
container_id = scaleway_container.private.id
name = "private-trigger"
sqs {
queue = scaleway_mnq_sqs_queue.private.name
}

depends_on = [time_sleep.wait_10_seconds_after_public_trigger_creation]
}

0 comments on commit e0d765e

Please sign in to comment.