# Windows exec runner stuck

**URL:** https://drone.discourse.group/t/windows-exec-runner-stuck/8552
**Category:** Drone Support
**Created:** [August 24, 2019, 3:19pm UTC](https://drone.discourse.group/t/windows-exec-runner-stuck/8552 "2019-08-24T15:19:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AlexandrePTJ](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/alexandreptj/32/4427_2.png) [@AlexandrePTJ](https://drone.discourse.group/u/AlexandrePTJ)
#### Post date: [August 24, 2019, 3:19pm UTC](https://drone.discourse.group/t/windows-exec-runner-stuck/8552/1 "2019-08-24T15:19:40Z")

</div>

Hello,

I have this sample code:

```
kind: pipeline
name: linux64

steps:
  - name: Echo
    image: fedora:30
    commands:
      - echo $DRONE_MACHINE

---

kind: exec
name: windows64

platform:
  os: windows
  arch: amd64

steps:
- name: Echo
  commands:
    - echo %DRONE_MACHINE%

```

Jobs is running well on linux target but on windows, jobs is stuck to “Pending”.

Configuration on Windows runner is:

```
DRONE_RPC_PROTO=http
DRONE_RPC_HOST=drone.home.lan
DRONE_RPC_SECRET=<key>
DRONE_RUNNER_NAME=windows64
DRONE_RUNNER_CAPACITY=2 

```

What did I miss ?

Drone: docker drone/drone:latest  
drone-runner-exec: 1.0.0-beta3

---

<div class="post-metadata">

### Author: ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)
#### Post date: [August 24, 2019, 3:48pm UTC](https://drone.discourse.group/t/windows-exec-runner-stuck/8552/2 "2019-08-24T15:48:23Z")

</div>

The first thing that jumps out is the yaml parameters are incorrect. As a result the pipeline will sit in the queue in a pending state waiting for a runner with a matching kind and type to accept the job (which in this case will never happen)

```diff
-kind: exec
+kind: pipeline
+type: exec

```

See [https://docs.drone.io/pipeline/exec/overview/](https://docs.drone.io/pipeline/exec/overview/)

---

<div class="post-metadata">

### Author: ![AlexandrePTJ](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/alexandreptj/32/4427_2.png) [@AlexandrePTJ](https://drone.discourse.group/u/AlexandrePTJ)
#### Post date: [August 25, 2019, 6:04pm UTC](https://drone.discourse.group/t/windows-exec-runner-stuck/8552/3 "2019-08-25T18:04:38Z")

</div>

🤦‍♂️ Thanks !
