-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
LifeCycle hooks phase not updated at workflow level #8529
Comments
it is known bug, in hooks, the workflow will not be reconciled if it is already completed. I will try to come up with fix. |
@sarabala1979 this is not a popular bug. I'd like someone from the community to try and fix this, rather than the core team, as our goal should always to make the greatest positive impact for our customers. Could I ask you to add some guidance for the engineer trying to fix this? Specifically, link to the exact line of code where you think changes need making. |
@sarabala1979 please ignore my last comment. You have done this already with the linked PR. @Piroddi would you be willing to complete @sarabala1979 PoC PR? |
@sandeepitachi someone needs to take over #8586. Would you like to? |
@alexec I'd love to but I'm not great at coding. 😄 Also not much familiar with Go. |
Go is VERY easy to learn. It is designed to be. Took me about 3h to learn.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions. |
I believe this is still a known bug, so I don't think it should be closed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions. |
I believe this is still a known bug, so I don't think it should be closed. Would be good to know if this is not the case. Otherwise, I think it should stay open. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions. |
This issue has been closed due to inactivity. Feel free to re-open if you still encounter this issue. |
I'm seeing this issue, and I also notice when bringing up the logs for the hook that the logs UI continuously appends the same logs to the displayed log output every second. Closing the logs window and re-opening it clears the logs and then starts continuously appending the same logs once again. |
We're seeing the same behavior for |
) * fix: Workflow level http template hook status update Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: added test Signed-off-by: Saravanan Balasubramanian <[email protected]> Signed-off-by: Saravanan Balasubramanian <[email protected]>
This has been affecting our team also. Seems like a fix is in, thanks @sarabala1979. Will it make 3.4? |
I still have the issue testing in hooks with expression Should we open a new issue? example:
|
As workaround you can use exit handlers https://argoproj.github.io/argo-workflows/walk-through/exit-handlers/ instead hooks for failed and succeeded which works fine updating phase after workflow ends:
|
it also do not work. |
@sarabala1979 I have just upgraded to 3.4.2. However this bug is not resolved. Experiencing the same behaviour |
…8529 (argoproj#8586) * fix: Workflow level http template hook status update Signed-off-by: Saravanan Balasubramanian <[email protected]> * fix: added test Signed-off-by: Saravanan Balasubramanian <[email protected]> Signed-off-by: Saravanan Balasubramanian <[email protected]> Signed-off-by: juchao <[email protected]>
Still an issue. Simple example:
|
Hi @alexec @sarabala1979 I have time to look into this issue. It's really effecting us, as we cant retry steps in long running workflows. Should I create a new issue or can you reopen this one? |
I believe this is still a known bug, so I don't think it should be closed. |
I can confirm is still an issue in v3.4.5 |
I can confirm as well. v3.4.5 |
This is still an issue in v3.4.8 |
The issue got resolved for me in v3.4.7, from the following fix: |
So looks like the above issue is related to http templates. As it works for non http templates:
I think the issue is related to: Which needs to be investigated. Since this issue is already closed. I would recommend opening a new one, specifically for http so it can get more eyes |
Summary
The phase of LifeCycle hooks configured at a workflow level are not updated once completed. They are stuck in
pending
state forever.This prevents workflows from being retried, which negatively impacts long running workflows with lots of steps
What happened/what you expected to happen?
Lifecycle hook phase should change to
Succeeded
once completedWhat version are you running?
v3.3.3
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: