Bases: Family
A family whose tasks are only run once a month while another/superior YMD is daily.
Parameters#
name : str Family name. start : datetime | None First date to calculate first occurrence from, today if None (default). day_of_month : int Day of the month. Negative values are relative to 1st of month, i.e. -1 is last day of month. ymd : pf.Variable | None Other YMD to track, by default uses the superior YMD. **kwargs : Any arguments passed to the family.
Source code in wellies/triggers.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
generate_node()
#
Before generating node, make sure update_ymd_task is only triggered when all other tasks have completed.
Source code in wellies/triggers.py
Bases: Task
Class that automatically sets ecflow variables for each submit_arguments key:value pair as they are in the host configuration file.
Using variables makes it easier to change job directives values after deployment and using ecflow api.
Also, inspects task tree for identical key:values pairs defined in higher levels to avoid creating duplicated variable at every level.
:Attention: Following names are protected and will not be touched: - STHOST - ECF_*
!!! Attention Following names will generate variables with other names than config keys: - TMPDIR -> SSDTMP
Source code in wellies/tasks.py
Bases: AnchorFamily
Source code in wellies/data.py
__init__(data_store, submit_arguments=None, name='deploy_data', **kwargs)
#
Defines "static_data" family contaning all tasks needed to deploy all types of datasets defined on a [data.StaticDataStore].
Parameters#
data_store : data.StaticDataStore A static data store object, usually created from a dictionary-like definition. submit_arguments : dict, optional An saubmit argument mapping to configure each task submit arguments, by default None
Source code in wellies/data.py
Bases: AnchorFamily
The deployTools Family contains all the nodes required to install the tools of the suite in the target location (lib directory, $LIB_DIR).
The structure is the following
- The first level contains the environments, which includes a setup Task.
- The second level contains the packages to install in the environment.
The environment will be created in $LIB_DIR/env_name.
Source code in wellies/tools.py
957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 | |
__init__(tools, submit_arguments=None, name='deploy_tools', **kwargs)
#
Creates the DeployToolsFamily and pass the extra arguments to the Family constructor.
Parameters#
tools : ToolStore The name of the tool. submit_arguments : Dict[str, any], optional The execution context of the nodes, by default {}.
Source code in wellies/tools.py
Bases: Family
A deployment family class for the packages of an environment.