Add 'tail' and 'pop' to InvDescriptor to influence sorting during digestion
opened this issue · comments
It would be beneficial to influence the digestion order to "emulate" a 'waitFor' behavior.
For dynamic content, it is quite useful for a container to wait until all possible content is loaded.
For example, let's start with 100 apps and 1 application server.
You may always want to deploy the 100 apps.
In a super-ecosystem, it is quite costly (time, resources, support, ...) to always deploy everything every time.
tail
would allow the application server to wait for "any" available application in the current INV execution BEFORE startup.
Thus, loading 10, 25 or 100 application INV groovy file, it will wait.
pop
is the opposite of tail
Syntax example:
inv {
name "my-tailing-inv"
tail true // false by default
}
inv {
name "my-popping-inv"
pop true //false by default
}
What to expect when sorting for digestion:
1. POP=true, TAIL=false
2. POP=false, TAIL=false
3. POP=false, TAIL=false
4. POP=false, TAIL=true
Rules:
- Can't set both
pop
andtail
at true