workflow.core 1.8.0__tar.gz → 1.9.0__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.8.0 → workflow_core-1.9.0}/PKG-INFO +1 -1
- {workflow_core-1.8.0 → workflow_core-1.9.0}/pyproject.toml +1 -1
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/daemons/transfer.py +17 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/workspaces/chimefrb.yml +11 -5
- {workflow_core-1.8.0 → workflow_core-1.9.0}/README.md +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/__init__.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/cli/__init__.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/cli/buckets.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/cli/configs.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/cli/main.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/cli/pipelines.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/cli/results.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/cli/run.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/cli/schedules.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/cli/workspace.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/daemons/__init__.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/daemons/audit.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/definitions/__init__.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/definitions/config.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/definitions/jsonschema.md +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/definitions/notify.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/definitions/work.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/definitions/workspace.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/examples/function.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/examples/sample.svg +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/examples/sample.workflow.yml +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/exceptions.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/helpers/__init__.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/helpers/date.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/http/__init__.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/http/buckets.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/http/client.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/http/configs.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/http/context.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/http/pipelines.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/http/results.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/http/schedules.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/lifecycle/__init__.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/lifecycle/archive/__init__.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/lifecycle/archive/http.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/lifecycle/archive/posix.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/lifecycle/archive/s3.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/lifecycle/attempt.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/lifecycle/configure.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/lifecycle/execute.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/utils/__init__.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/utils/decorators.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/utils/logger.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/utils/prompt.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/utils/read.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/utils/renderers.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/utils/tmate.sh +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/utils/validate.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/utils/variables.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/utils/write.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/workspaces/__init__.py +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/workspaces/development.yml +0 -0
- {workflow_core-1.8.0 → workflow_core-1.9.0}/workflow/workspaces/site-dev.yml +0 -0
|
@@ -109,6 +109,22 @@ def transfer(
|
|
|
109
109
|
time.sleep(sleep)
|
|
110
110
|
|
|
111
111
|
|
|
112
|
+
def check(payload: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
|
|
113
|
+
"""Check payload for existing work in results backend.
|
|
114
|
+
|
|
115
|
+
Args:
|
|
116
|
+
payload (List[Dict[str, Any]]): list of work to check.
|
|
117
|
+
|
|
118
|
+
Returns:
|
|
119
|
+
List[Dict[str, Any]]: list of work that does not exist in results.
|
|
120
|
+
"""
|
|
121
|
+
for data in payload:
|
|
122
|
+
for key in ["products", "plots", "logs"]:
|
|
123
|
+
if data["config"]["archive"][key] == "pass":
|
|
124
|
+
data["config"]["archive"][key] = "bypass"
|
|
125
|
+
return payload
|
|
126
|
+
|
|
127
|
+
|
|
112
128
|
def perform(
|
|
113
129
|
archive: bool,
|
|
114
130
|
limit: int,
|
|
@@ -190,6 +206,7 @@ def perform(
|
|
|
190
206
|
payload = http.buckets.view(
|
|
191
207
|
query={"id": {"$in": transfer}}, projection={}, skip=0, limit=limit * 3
|
|
192
208
|
)
|
|
209
|
+
payload = check(payload)
|
|
193
210
|
try:
|
|
194
211
|
logger.debug(f"tx {len(payload)} works to results")
|
|
195
212
|
response = http.results.deposit(payload)
|
|
@@ -13,12 +13,18 @@ sites:
|
|
|
13
13
|
|
|
14
14
|
http:
|
|
15
15
|
baseurls:
|
|
16
|
-
buckets:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
buckets:
|
|
17
|
+
- http://frb-vsop.chime:8004
|
|
18
|
+
- https://frb.chimenet.ca/buckets
|
|
19
|
+
results:
|
|
20
|
+
- http://frb-vsop.chime:8005
|
|
21
|
+
- https://frb.chimenet.ca/results
|
|
22
|
+
pipelines:
|
|
23
|
+
- http://frb-vsop.chime:8007
|
|
24
|
+
- https://frb.chimenet.ca/pipelines
|
|
25
|
+
loki: https://frb.chimenet.ca/loki/loki/api/v1/push
|
|
20
26
|
# This is the prefix url to make a output data plot or product accessible to the user
|
|
21
|
-
products:
|
|
27
|
+
products: https://frb.chimenet.ca/frb-master/v1/events/query-file?filename=
|
|
22
28
|
|
|
23
29
|
archive:
|
|
24
30
|
posix:
|
|
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
|
|
File without changes
|