Skip to content

feat(scaletest/templates): add support for concurrent scenarios #11753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix updating of static time
  • Loading branch information
mafredri committed Jan 24, 2024
commit 4754f2f0959efeb5e76e1b728401ea9860cac555
7 changes: 4 additions & 3 deletions scaletest/templates/scaletest-runner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ terraform {

resource "time_static" "start_time" {
# We con't set `count = data.coder_workspace.me.start_count` here because then
# we can't use this value in `locals`. The permission check is recreated on
# start, which will update the timestamp.
# we can't use this value in `locals`, but we want to trigger recreation when
# the scaletest is restarted.
triggers = {
count : length(null_resource.permission_check)
count : data.coder_workspace.me.start_count
id : data.coder_workspace.me.start_count > 0 ? data.coder_workspace.me.id : ""
}
}

Expand Down