Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: Nomad should be able to schedule tasks in order #2851

Closed
sebamontini opened this issue Jul 18, 2017 · 9 comments
Closed

Improvement: Nomad should be able to schedule tasks in order #2851

sebamontini opened this issue Jul 18, 2017 · 9 comments

Comments

@sebamontini
Copy link

It should be awesome to be able to schedule the tasks in order as they are defined, or at least enable some sort of configuration in a group tasks to ensure dependency between tasks, something like "when this tasks finishes, trigger this other tasks" or at least be able to do so with jobs

@dadgar
Copy link
Contributor

dadgar commented Jul 18, 2017

Are you asking to do that within a task group or between task groups/jobs?

@sebamontini
Copy link
Author

within a task group would be great I think. So you can create a job with a task group like

job process-data:
  group1:
    task1: download stuff
    task2: process that stuff
    tasks3: upload resulting data to another place

and have them run in order and one as a dependency of another.

but being able to do so between jobs would be ok also (if it's easier to be implemented that way), to be able to trigger a job2 after job1 has finished succesfully (and have one job per task)

@afterdesign
Copy link

This is exactly the usecase I wanted to use nomad for. As I've in debug log every task is spawning new process so this might be a bit problematic to do. But if there could be option to create process only for one task at a time then this could work.

@shantanugadgil
Copy link
Contributor

@dadgar

I think, 'chaining tasks within a job' and creating dependencies among jobs, both would be useful features.
Something analogous to Terraform's "depend_on" 😄
(task 2 runs only after task 1 finishes, etc.)

@dreh23
Copy link

dreh23 commented Sep 22, 2017

This looks like a duplicate of #1061 (and #2767) or at least it's related.

@sebamontini
Copy link
Author

@dreh23 it's not exactly the same, those are hooks or commands to ensure proper setup of the environment (or cleanup) for some task, here I'm asking to be able to chain tasks or even jobs (similar to Airflow) to be able to set precedence or even dependencies between jobs/task to build a whole procesing pipeline in some cases

@dadgar
Copy link
Contributor

dadgar commented Sep 25, 2017

This is a duplicate of #419

@dadgar dadgar closed this as completed Sep 25, 2017
@sagarrakshe
Copy link

An attempt to address this issue: https://github.com/sagarrakshe/nomad-dtree

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants