workflow.core 1.9.8__tar.gz → 1.9.10__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.8 → workflow_core-1.9.10}/PKG-INFO +1 -1
- {workflow_core-1.9.8 → workflow_core-1.9.10}/pyproject.toml +1 -1
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/daemons/transfer.py +2 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/definitions/config.py +6 -1
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/lifecycle/attempt.py +1 -1
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/lifecycle/configure.py +8 -13
- {workflow_core-1.9.8 → workflow_core-1.9.10}/README.md +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/__init__.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/cli/__init__.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/cli/buckets.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/cli/configs.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/cli/main.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/cli/pipelines.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/cli/results.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/cli/run.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/cli/schedules.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/cli/workspace.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/daemons/__init__.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/daemons/audit.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/definitions/__init__.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/definitions/jsonschema.md +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/definitions/notify.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/definitions/work.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/definitions/workspace.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/examples/autocomplete.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/examples/function.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/examples/sample.svg +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/examples/sample.workflow.yml +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/exceptions.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/helpers/__init__.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/helpers/date.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/http/__init__.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/http/buckets.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/http/client.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/http/configs.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/http/context.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/http/pipelines.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/http/results.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/http/schedules.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/lifecycle/__init__.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/lifecycle/archive/__init__.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/lifecycle/archive/http.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/lifecycle/archive/posix.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/lifecycle/archive/s3.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/lifecycle/execute.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/utils/__init__.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/utils/decorators.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/utils/logger.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/utils/prompt.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/utils/read.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/utils/renderers.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/utils/tmate.sh +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/utils/validate.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/utils/variables.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/utils/write.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/workspaces/__init__.py +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/workspaces/chimefrb.yml +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/workspaces/development.yml +0 -0
- {workflow_core-1.9.8 → workflow_core-1.9.10}/workflow/workspaces/site-dev.yml +0 -0
|
@@ -120,6 +120,8 @@ def check(payload: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
|
|
|
120
120
|
"""
|
|
121
121
|
for data in payload:
|
|
122
122
|
for key in ["products", "plots", "logs"]:
|
|
123
|
+
if key not in data["config"]["archive"].keys():
|
|
124
|
+
continue
|
|
123
125
|
if data["config"]["archive"][key] == "pass":
|
|
124
126
|
data["config"]["archive"][key] = "bypass"
|
|
125
127
|
return payload
|
|
@@ -47,8 +47,13 @@ class Archive(BaseSettings):
|
|
|
47
47
|
description="Archive strategy for the plots.",
|
|
48
48
|
examples=["move"],
|
|
49
49
|
)
|
|
50
|
+
logs: str = Field(
|
|
51
|
+
default="move",
|
|
52
|
+
description="Archive strategy for the logs.",
|
|
53
|
+
examples=["move"],
|
|
54
|
+
)
|
|
50
55
|
|
|
51
|
-
@field_validator("products", "plots")
|
|
56
|
+
@field_validator("products", "plots", "logs")
|
|
52
57
|
def validate_archive(cls, value: str) -> str:
|
|
53
58
|
"""Validate the archive strategy.
|
|
54
59
|
|
|
@@ -133,19 +133,14 @@ 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
|
-
|
|
144
|
-
options[parameter.opts[-1]] = None
|
|
145
|
-
else:
|
|
146
|
-
options[parameter.opts[-1]] = parameters.get(
|
|
147
|
-
parameter.name # type: ignore
|
|
148
|
-
)
|
|
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"):
|
|
141
|
+
options[name_in_cli] = parameter.default
|
|
142
|
+
elif name_in_function in known:
|
|
143
|
+
options[name_in_cli] = parameters.get(name_in_function) # type: ignore
|
|
149
144
|
logger.info(f"click cli options: {options}")
|
|
150
145
|
work.parameters = options
|
|
151
146
|
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
|