# \#task-dependencies

**URL:** https://discuss.hashicorp.com/tag/task-dependencies/49.md

[Latest](https://discuss.hashicorp.com/latest.md) · [Categories](https://discuss.hashicorp.com/categories.md) · [Tags](https://discuss.hashicorp.com/tags.md)

---

## [Taskgroup shutdown when task encounters error](https://discuss.hashicorp.com/t/taskgroup-shutdown-when-task-encounters-error/71609)

<div class="topic-metadata">

**Author:** [@BenAgai](https://discuss.hashicorp.com/u/BenAgai)\
**Replies:** 0\
**Last updated:** [November 27, 2024, 12:27pm UTC](https://discuss.hashicorp.com/t/taskgroup-shutdown-when-task-encounters-error/71609 "2024-11-27T12:27:33Z")

</div>

Hi, I have an environment where I run a nomad taskgroup with two tasks. There is dependancy between them where one task, called “X”, is set as Main and the other one, called “Y”, has “Lifecycle” attribute set to “post…

---

## [Replacement of "aws\_ecs\_task\_definition" resource depends on resource that will be destroyed causing a cycle](https://discuss.hashicorp.com/t/replacement-of-aws-ecs-task-definition-resource-depends-on-resource-that-will-be-destroyed-causing-a-cycle/68451)

<div class="topic-metadata">

**Author:** [@eugeneoei](https://discuss.hashicorp.com/u/eugeneoei)\
**Replies:** 0\
**Last updated:** [July 9, 2024, 9:24am UTC](https://discuss.hashicorp.com/t/replacement-of-aws-ecs-task-definition-resource-depends-on-resource-that-will-be-destroyed-causing-a-cycle/68451 "2024-07-09T09:24:49Z")

</div>

Hi, I am hoping to get some suggestions on how I can resolve a cycle issue “cleanly” that occurred during terraform plan. The terraform setup I have currently looks something similar to the following: locals { ser…

---

## [Different ways of Dependency - dependsOn addDependency et al](https://discuss.hashicorp.com/t/different-ways-of-dependency-dependson-adddependency-et-al/47068)

<div class="topic-metadata">

**Author:** [@hashipk](https://discuss.hashicorp.com/u/hashipk)\
**Replies:** 1\
**Last updated:** [November 21, 2022, 9:37am UTC](https://discuss.hashicorp.com/t/different-ways-of-dependency-dependson-adddependency-et-al/47068 "2022-11-21T09:37:54Z")

</div>

Hi there. I’m trying to get my head around different ways of specifying dependencies: addDependency(…) dependencies.push(…) dependsOn(…) dependables array Like so: someLaterStack.addDependency(someEarlierStack); so…

---

## [Is it possible to execute a single task within a group sequentially based on the count?](https://discuss.hashicorp.com/t/is-it-possible-to-execute-a-single-task-within-a-group-sequentially-based-on-the-count/42591)

<div class="topic-metadata">

**Author:** [@cikob19939](https://discuss.hashicorp.com/u/cikob19939)\
**Replies:** 1\
**Last updated:** [July 29, 2022, 3:28pm UTC](https://discuss.hashicorp.com/t/is-it-possible-to-execute-a-single-task-within-a-group-sequentially-based-on-the-count/42591 "2022-07-29T15:28:00Z")

</div>

group “new\_group” { count=3 task "server" { driver = "raw\_exec" config { command = "/bin/bash" args = \["/home/ubuntu/repo/script.sh"\] } } }

---

## [Nomad plugin reload](https://discuss.hashicorp.com/t/nomad-plugin-reload/39694)

<div class="topic-metadata">

**Author:** [@ValentaTomas](https://discuss.hashicorp.com/u/ValentaTomas)\
**Replies:** 1\
**Last updated:** [May 20, 2022, 3:40pm UTC](https://discuss.hashicorp.com/t/nomad-plugin-reload/39694 "2022-05-20T15:40:23Z")

</div>

Is there a command or instructions on how to load a new plugin to an active Nomad cluster?

---

## [New Guides for Nomad beta v0.11.0!](https://discuss.hashicorp.com/t/new-guides-for-nomad-beta-v0-11-0/7204)

<div class="topic-metadata">

**Author:** [@kaitlincarter-hc](https://discuss.hashicorp.com/u/kaitlincarter-hc)\
**Replies:** 7\
**Last updated:** [May 11, 2022, 11:40pm UTC](https://discuss.hashicorp.com/t/new-guides-for-nomad-beta-v0-11-0/7204 "2022-05-11T23:40:28Z")

</div>

We have created a couple new guides to for Nomad beta v0.11.0 features. In the Express Inter-job Dependencies with Init Tasks guide, you’ll use Nomad task dependencies to create a job that will wait for a service advert…

---

## [How to define task dependency with Docker container mode networking?](https://discuss.hashicorp.com/t/how-to-define-task-dependency-with-docker-container-mode-networking/21933)

<div class="topic-metadata">

**Author:** [@0xbkt](https://discuss.hashicorp.com/u/0xbkt)\
**Replies:** 1\
**Last updated:** [March 12, 2021, 2:06am UTC](https://discuss.hashicorp.com/t/how-to-define-task-dependency-with-docker-container-mode-networking/21933 "2021-03-12T02:06:08Z")

</div>

Hello. With 2 tasks (one sidecar: wireguard, one app container: http-server) in the same group, how can I define that the app container should share the same network interfaces with its sidecar? I normally use --network…

---

## [Eschewing Packer's Parallel build feature on CI](https://discuss.hashicorp.com/t/eschewing-packers-parallel-build-feature-on-ci/21766)

<div class="topic-metadata">

**Author:** [@timblaktu](https://discuss.hashicorp.com/u/timblaktu)\
**Replies:** 2\
**Last updated:** [March 8, 2021, 9:51pm UTC](https://discuss.hashicorp.com/t/eschewing-packers-parallel-build-feature-on-ci/21766 "2021-03-08T21:51:53Z")

</div>

Is Packer’s Parallel builds feature irrelevant, or even downright unhelpful in the context of CI? Packer’s parallel builds feature is a bit selling point, but I’m about to intentionally not use it. Here’s why. I’ve crea…

---

## [Codependent values across different modules?](https://discuss.hashicorp.com/t/codependent-values-across-different-modules/11455)

<div class="topic-metadata">

**Author:** [@onpaws](https://discuss.hashicorp.com/u/onpaws)\
**Replies:** 4\
**Last updated:** [July 17, 2020, 6:16pm UTC](https://discuss.hashicorp.com/t/codependent-values-across-different-modules/11455 "2020-07-17T18:16:11Z")

</div>

I’m trying to bring together three Terraform modules° that comprise a webapp. Separately the modules deploy OK, and my goal now is to arrange things so there’s one terraform apply to run. A problem seems to arise when m…

---

## [Restart Task with Dependencies](https://discuss.hashicorp.com/t/restart-task-with-dependencies/10076)

<div class="topic-metadata">

**Author:** [@seffim](https://discuss.hashicorp.com/u/seffim)\
**Replies:** 0\
**Last updated:** [June 17, 2020, 12:39pm UTC](https://discuss.hashicorp.com/t/restart-task-with-dependencies/10076 "2020-06-17T12:39:40Z")

</div>

We’re looking at Nomad as a potential tool to control our service distribution over multiple nodes. The services are part of a large “legacy” application and implemented as independent windows processes which communicat…

---

## [Is there a way to daisy-chain \`depends\_on\` for resources created using \`count\` or \`for\_each\`?](https://discuss.hashicorp.com/t/is-there-a-way-to-daisy-chain-depends-on-for-resources-created-using-count-or-for-each/8467)

<div class="topic-metadata">

**Author:** [@thatsafunnyname](https://discuss.hashicorp.com/u/thatsafunnyname)\
**Replies:** 4\
**Last updated:** [May 13, 2020, 3:44pm UTC](https://discuss.hashicorp.com/t/is-there-a-way-to-daisy-chain-depends-on-for-resources-created-using-count-or-for-each/8467 "2020-05-13T15:44:08Z")

</div>

Hello and thank you for terraform, Using terraform, is there a way to daisy-chain depends\_on for resources created using count or for\_each ? So inject a dependency into the resource graph? This is for some cluster sta…
