# Staged pipeline steps not given labels

**URL:** <https://guildai.org/t/staged-pipeline-steps-not-given-labels/791>\
**Category:** Troubleshooting\
**Created:** [January 3, 2022, 10:36pm UTC](https://guildai.org/t/staged-pipeline-steps-not-given-labels/791 "2022-01-03T22:36:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![travis51](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@travis51](https://guildai.org/u/travis51)\
**Post date:** [January 3, 2022, 10:36pm UTC](https://guildai.org/t/staged-pipeline-steps-not-given-labels/791/1 "2022-01-03T22:36:43Z")

</div>

I’ve noticed that guild applies that labels I give to pipelines to each pipeline step when the pipeline stage is ran directly. However, if I instead stage the pipeline operation and then run the staged pipeline operation this doesn’t happen. Instead only the pipeline operation receives label, not the steps of the pipeline. For example, lets say my `guild.yml` is given as follows. The contents of `train.py` and `test.py` aren’t really important.

```
- operations:
    mypipeline:
        steps:
            - train
            - test

    train:
        sourcecode:
            dest: .
            select: train.py
        exec: "python train.py"

    test:
        sourcecode:
            dest: .
            select: test.py
        exec: "python test.py"

```

If I run `guild run mypipeline -y --label debug` I get

```
[1:b21131b7] test 2022-01-03 17:27:55 completed debug
[2:8dd06463] train 2022-01-03 17:27:55 completed debug
[3:092f43f2] mypipeline 2022-01-03 17:27:54 completed debug

```

But if I run `guild run mypipeline -y --label debug --stage && guild run queue -y` I get the following. Note that only the `mypipeline` operation receives the label `debug` while the step operations receive no label.

```
[1:5b2c8b79] test 2022-01-03 17:28:48 completed
[2:85ae374c] train 2022-01-03 17:28:47 completed
[3:a0dc7ef1] mypipeline 2022-01-03 17:28:46 completed debug

```

Note that similar commands like `guild run mypipeline -y --label debug --stage && guild run --start $(guild select 1)` have the same effect.

Is this intended behavior? If so how can I make it so that the steps of the staged pipeline operation receive the same label as the pipeline operation that started them? Thanks

---

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/guildai.org/garrett/32/224_2.png) [@garrett](https://guildai.org/u/garrett)\
**Post date:** [January 3, 2022, 10:40pm UTC](https://guildai.org/t/staged-pipeline-steps-not-given-labels/791/2 "2022-01-03T22:40:22Z")

</div>

This looks like a bug. Guild stores run params in staged runs and my guess is that it’s either not storing this particular param or not using it when starting the staged run. I’ll take a look.

---

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/guildai.org/garrett/32/224_2.png) [@garrett](https://guildai.org/u/garrett)\
**Post date:** [January 7, 2022, 6:24pm UTC](https://guildai.org/t/staged-pipeline-steps-not-given-labels/791/3 "2022-01-07T18:24:30Z")

</div>

This is fixed in master and will be available in the next release (a pre-release will go out later today with this - look for 0.7.5.dev3).

Thanks for the detailed report!

---

<div class="post-metadata">

**Author:** ![travis51](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@travis51](https://guildai.org/u/travis51)\
**Post date:** [January 7, 2022, 8:08pm UTC](https://guildai.org/t/staged-pipeline-steps-not-given-labels/791/4 "2022-01-07T20:08:14Z")

</div>

Good to hear, thanks.
