---
pipeline:
  name: tempAirSingle_qaqc_specific
transform:
  cmd:
  - Rscript
  - ./flow.qaqc.temp.air.aspi.R
  - DirIn=$DIR_IN
  - DirOut=/pfs/out
  - SensTermTemp=prt:temperature
  - SensTermTbne=dualfan:turbine_speed
  - SensTermWind1=windobserverii:u_axis_wind_speed:v_axis_wind_speed
  - SensTermHeat=heater:state
  - RmvFlow=TRUE
  - RmvHeat=TRUE
  - FileSchmQf=$SCHEMA_FLAGS
  image: quay.io/battelleecology/neon-is-qaqc-temp-air-aspi-r:039a10a7
  image_pull_secrets:
  - battelleecology-quay-read-all-pull-secret
  env:
    LOG_LEVEL: INFO
    PARALLELIZATION_INTERNAL: '2' # Parallelization within R. If increased, adjust resource requests appropriately.
input:
  cross:
  - pfs:
      name: DIR_IN
      repo: tempAirSingle_group_path
      glob: /*/*/*
  - pfs:
      name: SCHEMA_FLAGS
      repo: tempAirSingle_avro_schemas
      glob: /tempAirSingle/flags_tempAir_specific.avsc
parallelism_spec:
  constant: 2
resource_requests:
  memory: 1G
  cpu: 2
autoscaling: true
scheduling_spec:
  node_selector:
    cloud.google.com/gke-ephemeral-storage-local-ssd: "true"
    nodepool.neonscience.org/pipeline: "yes"
    cloud.google.com/gke-spot: "true"
pod_spec: |-
  { "tolerations": [
    {
      "key": "nodepool.neonscience.org/pipeline",
      "operator": "Exists"
    },
    {
      "effect": "NoSchedule",
      "key": "cloud.google.com/gke-spot",
      "operator": "Exists"
    }  
  ] }
pod_patch: |-
  [
    { "op": "replace",
      "path":"/containers/1/resources/requests/memory",
      "value":"2.2G"
    },
    { "op": "replace",
      "path": "/containers/1/resources/requests/cpu",
      "value": "0.5"
    }
  ]
