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

Add a TaskBuilder method to modify the value for the runAfter part of the task's yaml #44

Closed
David-M-IBM opened this issue May 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@David-M-IBM
Copy link

David-M-IBM commented May 24, 2024

Currently there is no way to change the runAfter value of a task to have custom multiple, single, or no value, and it is always the one before it. This isn't always what you want in a pipeline, especially if you want certain tasks to run in parallel.

Adding a method to the TaskBuilder class to specify the runAfter value would solve the problem.

An example of what the main.ts section could look like:

.withTask(new TaskBuilder(this, "task-id")
      .specifyRunAfter(["array","of","task","ids"])
      .withName("task-name")
  )

An example of what the section of pipeline yaml could look like:

   - name: task-id
      runAfter:
        - array
        - of
        - task
        - ids
      taskRef:
        kind: Task
        name: task-name
@snehajais22
Copy link
Collaborator

Closed by #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants