workflow.core 1.9.9__tar.gz → 1.9.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {workflow_core-1.9.9 → workflow_core-1.9.11}/PKG-INFO +1 -1
- {workflow_core-1.9.9 → workflow_core-1.9.11}/pyproject.toml +1 -1
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/cli/run.py +23 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/lifecycle/attempt.py +1 -1
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/lifecycle/configure.py +21 -12
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/workspaces/chimefrb.yml +4 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/README.md +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/__init__.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/cli/__init__.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/cli/buckets.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/cli/configs.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/cli/main.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/cli/pipelines.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/cli/results.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/cli/schedules.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/cli/workspace.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/daemons/__init__.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/daemons/audit.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/daemons/transfer.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/definitions/__init__.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/definitions/config.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/definitions/jsonschema.md +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/definitions/notify.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/definitions/work.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/definitions/workspace.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/examples/autocomplete.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/examples/function.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/examples/sample.svg +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/examples/sample.workflow.yml +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/exceptions.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/helpers/__init__.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/helpers/date.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/http/__init__.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/http/buckets.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/http/client.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/http/configs.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/http/context.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/http/pipelines.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/http/results.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/http/schedules.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/lifecycle/__init__.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/lifecycle/archive/__init__.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/lifecycle/archive/http.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/lifecycle/archive/posix.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/lifecycle/archive/s3.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/lifecycle/execute.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/utils/__init__.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/utils/decorators.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/utils/logger.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/utils/prompt.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/utils/read.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/utils/renderers.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/utils/tmate.sh +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/utils/validate.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/utils/variables.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/utils/write.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/workspaces/__init__.py +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/workspaces/development.yml +0 -0
- {workflow_core-1.9.9 → workflow_core-1.9.11}/workflow/workspaces/site-dev.yml +0 -0
|
@@ -196,6 +196,29 @@ def run(
|
|
|
196
196
|
"[bold red]Backend Checks [/bold red]",
|
|
197
197
|
extra=dict(markup=True, color="green"),
|
|
198
198
|
)
|
|
199
|
+
# Add pipeline and site to loki tags
|
|
200
|
+
if config.get("logging", {}).get("loki", {}).get("tags", {}):
|
|
201
|
+
# Loki tags exist, add pipeline and site
|
|
202
|
+
config["logging"]["loki"]["tags"].update(
|
|
203
|
+
{
|
|
204
|
+
# Assumes that there is only one bucket
|
|
205
|
+
"pipeline": buckets[0],
|
|
206
|
+
"site": site,
|
|
207
|
+
}
|
|
208
|
+
)
|
|
209
|
+
else:
|
|
210
|
+
# Missing Logging config in Workspace
|
|
211
|
+
config.update({
|
|
212
|
+
"logging": {
|
|
213
|
+
"loki": {
|
|
214
|
+
"tags": {
|
|
215
|
+
# Assumes that there is only one bucket
|
|
216
|
+
"pipeline": buckets[0],
|
|
217
|
+
"site": site,
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
})
|
|
199
222
|
loki_status: bool = configure.loki(logger=logger, config=config)
|
|
200
223
|
logger.info(f"Loki Logs: {'✅' if loki_status else '❌'}")
|
|
201
224
|
http: HTTPContext = HTTPContext(backends=["buckets"])
|
|
@@ -133,19 +133,28 @@ def defaults(func: Callable[..., Any], work: Work) -> Work:
|
|
|
133
133
|
logger.info(f"click cli detected for func {work.function}")
|
|
134
134
|
# Get default options from the click command
|
|
135
135
|
for parameter in func.params:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
if parameter
|
|
144
|
-
|
|
136
|
+
name_in_cli = parameter.opts[-1]
|
|
137
|
+
name_in_function = parameter.name
|
|
138
|
+
|
|
139
|
+
if name_in_function not in known:
|
|
140
|
+
if hasattr(parameter, "default") and parameter.default:
|
|
141
|
+
parameter_default_value = parameter.default
|
|
142
|
+
|
|
143
|
+
if hasattr(parameter, "is_flag") and parameter.is_flag:
|
|
144
|
+
if parameter_default_value is True:
|
|
145
|
+
# Flags aren't assigned values, its CLI name is just included or not included
|
|
146
|
+
options[name_in_cli] = None
|
|
147
|
+
else:
|
|
148
|
+
options[name_in_cli] = parameter_default_value
|
|
149
|
+
else:
|
|
150
|
+
parameter_given_value = parameters.get(name_in_function) # type: ignore
|
|
151
|
+
|
|
152
|
+
if hasattr(parameter, "is_flag") and parameter.is_flag:
|
|
153
|
+
if parameter_given_value is True:
|
|
154
|
+
# Flags aren't assigned values, its CLI name is just included or not included
|
|
155
|
+
options[name_in_cli] = None
|
|
145
156
|
else:
|
|
146
|
-
options[
|
|
147
|
-
parameter.name # type: ignore
|
|
148
|
-
)
|
|
157
|
+
options[name_in_cli] = parameter_given_value
|
|
149
158
|
logger.info(f"click cli options: {options}")
|
|
150
159
|
work.parameters = options
|
|
151
160
|
logger.debug(f"work parameters: {work.parameters}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|