Dynatrace / dynatrace-automation-tools

Apache License 2.0
12 stars 2 forks source link

Workflow validation in case multiple SRG exist in a single workflow #41

Open eemrdog opened 1 year ago

eemrdog commented 1 year ago

"dta wf evaluate" as "dta srg evaluate" command would enable evaluating multiple SRGs in a single workflow. This will listen to a generated bizevent from the workflow.

Some possible cases:

drqc commented 1 year ago

a quick fix would be to have a parameter (NUMBER_OF_GUARDIANS_IN_WORKFLOW) in the CLI that the end user can configure with the number of guardians that the target workflows has. Then the CLI will wait for that number of anwers before getting the final result. If one of the results fails then its considered a fail evaluation

eemrdog commented 1 year ago

Instead of specifying an exact number of SRGs in a workflow, can we increase the interval of querying the bizevent?

For example 15 seconds, if there is multiple success results, then wait for another 15 seconds. If the number of success results are greater than the previous iteration, continue until the number of success results remains same. In case of fail result, it will exit immediately. Do you think it makes sense?