We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f58bf41 commit 4754f2fCopy full SHA for 4754f2f
scaletest/templates/scaletest-runner/main.tf
@@ -13,10 +13,11 @@ terraform {
13
14
resource "time_static" "start_time" {
15
# We con't set `count = data.coder_workspace.me.start_count` here because then
16
- # we can't use this value in `locals`. The permission check is recreated on
17
- # 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.
18
triggers = {
19
- count : length(null_resource.permission_check)
+ count : data.coder_workspace.me.start_count
20
+ id : data.coder_workspace.me.start_count > 0 ? data.coder_workspace.me.id : ""
21
}
22
23
0 commit comments