github.com/hernad/nomad@v1.6.112/e2e/metrics/input/factorial_windows.nomad (about)

     1  # Copyright (c) HashiCorp, Inc.
     2  # SPDX-License-Identifier: MPL-2.0
     3  
     4  job "factorial_windows" {
     5    datacenters = ["dc1"]
     6    type        = "service"
     7  
     8    constraint {
     9      attribute = "${attr.kernel.name}"
    10      value     = "windows"
    11    }
    12  
    13    group "test" {
    14      count = 1
    15  
    16      task "test1" {
    17        driver = "raw_exec"
    18  
    19        template {
    20          data = <<EOH
    21  foreach ($loopnumber in 1..2147483647) {
    22    $result=1;foreach ($number in 1..2147483647) {
    23      $result = $result * $number
    24    };$result
    25  }
    26    EOH
    27  
    28          destination = "local/factorial.ps1"
    29        }
    30  
    31        config {
    32          command = "powershell"
    33          args    = ["local/factorial.ps1"]
    34        }
    35      }
    36    }
    37  }