# Auto inject at deploy

**URL:** <https://discourse.nodered.org/t/auto-inject-at-deploy/53157>\
**Category:** General\
**Created:** [3 November 2021 07:37 UTC](https://discourse.nodered.org/t/auto-inject-at-deploy/53157 "2021-11-03T07:37:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [3 November 2021 07:37 UTC](https://discourse.nodered.org/t/auto-inject-at-deploy/53157/1 "2021-11-03T07:37:33Z")

</div>

I'm playing around with q-gate node and I need it to be open at the start of my testing and sometimes it gets stuck in queued state

So I added an inject node to send the message to open it and I just used to press button to sort things out

Then I got lazy and wanted it to do it automatically when I pressed deploy, so set it to inject after 1 sec but was surprised that it didn't seem to work all the time

Then I worked out that it didn't auto-inject because I'm just deploying changed nodes and so it didn't get triggered

Changing to deploying modified flows of course works

I wondering if there could be a tick box to say - do it on any type of deploy mode

Or is there another way of saving me the trivial effort of clicking the button 🙂

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [3 November 2021 08:21 UTC](https://discourse.nodered.org/t/auto-inject-at-deploy/53157/2 "2021-11-03T08:21:37Z")

</div>

Hi Simon,  
I've ben tripped up by that many times (and gone off looking for a problem that didn't exist).

---

<div class="post-metadata">

**Author:** ![paulkeates](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@paulkeates](https://discourse.nodered.org/u/paulkeates)\
**Post date:** [5 November 2021 00:35 UTC](https://discourse.nodered.org/t/auto-inject-at-deploy/53157/3 "2021-11-05T00:35:10Z")

</div>

Hi,

I noticed the same - intermittently the flow would not start.

It 'seems' like adding " node-red-contrib-startup-trigger" helped in that I don't see the issue anymore but honestly can't remember if other changes may have helped (added PM2 as well).

Cheers,

Paul

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [5 November 2021 13:48 UTC](https://discourse.nodered.org/t/auto-inject-at-deploy/53157/4 "2021-11-05T13:48:20Z")

</div>

> [@cymplecy](#):
>
> sometimes it gets stuck in queued state

Do you think there is a bug in the node? If so, please raise an issue on [GitHub](https://github.com/drmibell/node-red-contrib-queue-gate/issues) or post here with more specifics, and I will take a look.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [5 November 2021 13:59 UTC](https://discourse.nodered.org/t/auto-inject-at-deploy/53157/5 "2021-11-05T13:59:23Z")

</div>

> [@drmibell](#):
>
> Do you think there is a bug in the node?

Not at all 🙂  
It is the way I'm (mis)using it

I'm just using auto-inject to clear up my mistooks 🙂

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [5 November 2021 14:01 UTC](https://discourse.nodered.org/t/auto-inject-at-deploy/53157/6 "2021-11-05T14:01:12Z")

</div>

> [@cymplecy](#):
>
> It is the way I'm (mis)using it

Nothing I can do to cure that... 🙂

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [5 November 2021 14:01 UTC](https://discourse.nodered.org/t/auto-inject-at-deploy/53157/7 "2021-11-05T14:01:35Z")

</div>

Yes- many have tried and failed 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 January 2022 14:01 UTC](https://discourse.nodered.org/t/auto-inject-at-deploy/53157/8 "2022-01-04T14:01:54Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
