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

[Feature request] Specify failure context to tasks "on check failure" #2067

Open
P6g9YHK6 opened this issue Nov 11, 2024 · 0 comments
Open

Comments

@P6g9YHK6
Copy link

P6g9YHK6 commented Nov 11, 2024

Is your feature request related to a problem? Please describe.

Currently, it is impossible to have tasks run on specific conditions when a check fails, which could have consequences. For example, a check failure due to a timeout or a runtime error in PowerShell might trigger unwanted task execution.

In my example, I have two scripts:

  1. Check ESET status
  2. Fix borked ESET

That would result in two cases that goes from inconvenient to outright unwanted

  1. I cannot set the Fix borked ESET task to run only when the ESET status check detects that ESET is broken in a way that requires the fix script. This would require creating a specific check called Detect when ESET is borked.
  2. Even with a Detect when ESET is borked check, there are edge cases that would trigger unwanted tasks runs:
    • When the check times out (exit 98)
    • When the check encounters a runtime error (exit 1 or else)
    • When a minor divinity of a minor cult woke up on the wrong side of the bed
    • System.OutOfMemoryException
    • etc etc

Describe the solution you'd like

The ability to specify exit codes on which to run tasks to avoid unwanted behavior and help prevent duplication of checks

Describe alternatives you've considered

Having to adapt the tasks to check that the failure was relevant

Additional context

image

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

1 participant