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

Help Needed ! How to control multiple decorators in pipeline #7

Open
kriti218 opened this issue Mar 30, 2022 · 1 comment
Open

Help Needed ! How to control multiple decorators in pipeline #7

kriti218 opened this issue Mar 30, 2022 · 1 comment

Comments

@kriti218
Copy link

kriti218 commented Mar 30, 2022

@n3wt0n We have a scenario where 2 decorators are getting injected in our pipelines from 2 different extensions. The problem statement is we want say 1st decorator to check what all tasks are injected by 2nd decorator and then take a decision whether to let 2nd decorator run or fail the build based on tasks.
Is there a way to control this behavior based on our business case?
Can you please suggest asap as it is a blocker for us.

@kriti218 kriti218 changed the title How to control multiple decorators in pipeline Help Needed ! How to control multiple decorators in pipeline Mar 30, 2022
@n3wt0n
Copy link
Owner

n3wt0n commented May 5, 2022

Hey sorry for the super delay, I've somehow missed this...

Unfortunately, there is no way to achieve what you need.

Decorators are injected at runtime, so that is the first issue.
Also, there is no way for a decorator to "know" what other parts of the pipeline will do, they can only access the context of the pipeline and the variables.

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

No branches or pull requests

2 participants