HDP-TIH - Advanced Dependency Condition
Adds advanced conditions for uproc jobs.
ENGLISH DESCRIPTION :
In $U, dependency condition on HDP uproc only offers 2 options
: "All required" and "One is enough"
Target environments: Any perl environment
Prerequisites: Any $U that can launch perl script
Implementation: This script is intended to be the code of the uproc
This script, which must be the code of the conditioned uproc, allow to :
- handle one or many HDP uprocs as dependencies conditions
- wait that all HDP uprocs are "COMPLETED" or "ABORTED"
- [OPTIONAL] : specify a minimum percentage of required "COMPLETED" uprocs. The percentage is global (whatever is the number of HDP uprocs)
Functioning of the script :
1 - The script will analyze the T_TARGET
2 - Check every uproc status
3 - Wait 'N' seconds before doing a new check
4 - As soon as all uprocs will be "COMPLETED" or "ABORTED" (And if the value of the required percentage is different from zero), the script will calculate the percentage of "COMPLETED" uproc and determine its own status ("COMPLETED" or "ABORTED")
Setup :
Paste the content of the text file as the end session' uproc content (CL_INT). The end session uproc
should be set as a OK son of the header uproc.
Uproc' variables :
- T_WAIT : waiting time between each check (seconds)
- T_PERCENT : minimum percentage of "COMPLETED" uproc required
- T_TARGET
NOTES :
1 ) At each check run, the script will write into the job log which uproc is not yet "COMPLETED"
or "ABORTED".
If you want to remove this feature, you just have to delete / comment line 64.
2 ) Variables
T_TARGET
====================================================================================
DESCRIPTION EN FRANCAIS :
Dans $U, la gestion des conditions d'enchainement sur une uproc
en TIH n'offre que 2 options : "Toutes nécessaires" et "Une suffisante"
Ce script, placé dans le code de l'uproc qui doit avoir cette condition d'enchainement, permet de :
- conditionner de 1 à N uproc tournant en TIH
- d'attendre que toutes les uprocs en TIH soient au status "COMPLETED" ou "ABORTED"
- [OPTIONNEL] : de spécifier un pourcentage minimun global requis (au cas ou plusieurs uprocs en TIH soient attendues) d'uproc au status "COMPLETED"
Fonctionnement du script :
1 - Le script va analyser les variables contenant les couples
2 - Controler pour chaque Uproc son status
3 - Attendre 'N' secondes avant de refaire un contrôle
4 - Quand toutes les uprocs seront en "COMPLETED" ou "ABORTED" (et si un pourcentage est spécifié), calculer le pourcentage d'uproc en "COMPLETED" et déterminer son status ("COMPLETED" ou "ABORTED") selon le résultat
Mise en place :
Copier le contenu du fichier dans le code l'uproc de fin de la session et la mettre comme fils
normal de l'uproc d'en-tête
Variables d'uproc :
- T_WAIT : temps d'attente entre chaque vérification (en secondes)
- T_PERCENT : pourcentage d'uproc en "COMPLETED" requis
- T_TARGET
NOTES :
1 ) le script indique pour chaque contrôle, quelles sont les uprocs qui ne sont pas au status
"COMPLETED" ou "ABORTED".
Si vous souhaitez désactiver cette fonction, il suffit de supprimer / commenter la ligne 64
du script.
2 ) Les variables T_TARGET
Products | Workload Automation, Dollar Universe Workload Automation |
Last update | 2015-06-09 17:34:27.0 |
Supported by | |
Community Source | hdp-tih-advanced-dependency-condition |
Broadcom does not support, maintain or warrant Solutions, Templates, Actions and any other content published on the Community
and is subject to Broadcom Community Terms and Conditions.
|