Open nitrocode opened 1 year ago
Hi @nitrocode, I tried to reproduce this and I got this behaviour:
If your pre/post workflow hooks are being executed really fast (like when using an echo) you're not going to see the status being updated to pending because github (or other VCS client) will receive 2 updates in a very short time. You can test using a sleep command.
What we can do is to change the current implementation to reset every pre/post workflow even before running the received command, this would set every workflow to pending even before running the first command.
Community Note
Overview of the Issue
Rerunning a plan or running an apply should set
atlantis/post_workflow_hook
topending
This issue may also affect
atlantis/pre_workflow_run
Reproduction Steps
atlantis/post_workflow_hook
is stuck in "succeeded" instead of going to "pending"Logs
N/A
Environment details
Atlantis server-side config file:
Additional Context
The only way to know it is a different run is due to the job id changing in the URL.