workflow.core 1.9.11__tar.gz → 1.10.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.9.11 → workflow_core-1.10.0}/PKG-INFO +1 -1
- {workflow_core-1.9.11 → workflow_core-1.10.0}/pyproject.toml +1 -1
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/cli/buckets.py +7 -1
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/http/buckets.py +3 -1
- {workflow_core-1.9.11 → workflow_core-1.10.0}/README.md +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/__init__.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/cli/__init__.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/cli/configs.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/cli/main.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/cli/pipelines.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/cli/results.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/cli/run.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/cli/schedules.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/cli/workspace.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/daemons/__init__.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/daemons/audit.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/daemons/transfer.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/definitions/__init__.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/definitions/config.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/definitions/jsonschema.md +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/definitions/notify.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/definitions/work.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/definitions/workspace.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/examples/autocomplete.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/examples/function.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/examples/sample.svg +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/examples/sample.workflow.yml +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/exceptions.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/helpers/__init__.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/helpers/date.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/http/__init__.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/http/client.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/http/configs.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/http/context.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/http/pipelines.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/http/results.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/http/schedules.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/lifecycle/__init__.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/lifecycle/archive/__init__.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/lifecycle/archive/http.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/lifecycle/archive/posix.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/lifecycle/archive/s3.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/lifecycle/attempt.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/lifecycle/configure.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/lifecycle/execute.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/utils/__init__.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/utils/decorators.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/utils/logger.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/utils/prompt.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/utils/read.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/utils/renderers.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/utils/tmate.sh +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/utils/validate.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/utils/variables.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/utils/write.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/workspaces/__init__.py +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/workspaces/chimefrb.yml +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/workspaces/development.yml +0 -0
- {workflow_core-1.9.11 → workflow_core-1.10.0}/workflow/workspaces/site-dev.yml +0 -0
|
@@ -38,6 +38,9 @@ def buckets():
|
|
|
38
38
|
)
|
|
39
39
|
@click.option("-p", "--parent", type=str, required=False, help="Filter by parent.")
|
|
40
40
|
@click.option("-f", "--force", is_flag=True, help="Do not prompt for confirmation")
|
|
41
|
+
@click.option(
|
|
42
|
+
"-l", "--limit", type=int, required=False, help="Limit of Work objects to remove."
|
|
43
|
+
)
|
|
41
44
|
def remove(
|
|
42
45
|
bucket: str,
|
|
43
46
|
status: Optional[str] = None,
|
|
@@ -45,6 +48,7 @@ def remove(
|
|
|
45
48
|
tag: Optional[Tuple[str]] = None,
|
|
46
49
|
parent: Optional[str] = None,
|
|
47
50
|
force: bool = False,
|
|
51
|
+
limit: Optional[int] = 100,
|
|
48
52
|
):
|
|
49
53
|
"""Remove work[s] from the buckets.
|
|
50
54
|
|
|
@@ -55,8 +59,9 @@ def remove(
|
|
|
55
59
|
tag (Optional[Tuple[str]], optional): Filter by tag. Defaults to None.
|
|
56
60
|
parent (Optional[str], optional): Filter by parent. Defaults to None.
|
|
57
61
|
force (bool, optional): Do not prompt for confirmation. Defaults to False.
|
|
62
|
+
limit (int, optional): Limit of Work objects to remove. Defaults to False.
|
|
58
63
|
"""
|
|
59
|
-
http = HTTPContext()
|
|
64
|
+
http = HTTPContext(backends=["buckets"])
|
|
60
65
|
events: Optional[List[int]] = None
|
|
61
66
|
tags: Optional[List[str]] = None
|
|
62
67
|
if event:
|
|
@@ -70,6 +75,7 @@ def remove(
|
|
|
70
75
|
tags=tags,
|
|
71
76
|
parent=parent,
|
|
72
77
|
force=force,
|
|
78
|
+
limit=limit,
|
|
73
79
|
)
|
|
74
80
|
|
|
75
81
|
|
|
@@ -148,6 +148,7 @@ class Buckets(Client):
|
|
|
148
148
|
tags: Optional[List[str]] = None,
|
|
149
149
|
parent: Optional[str] = None,
|
|
150
150
|
force: bool = False,
|
|
151
|
+
limit: Optional[int] = 100
|
|
151
152
|
) -> bool:
|
|
152
153
|
"""Delete works belonging to a pipeline from the buckets backend.
|
|
153
154
|
|
|
@@ -161,6 +162,7 @@ class Buckets(Client):
|
|
|
161
162
|
event (Optional[List[int]]): The event to delete works with.
|
|
162
163
|
force (bool, optional): Whether to force the deletion without requiring
|
|
163
164
|
user confirmation. Defaults to False.
|
|
165
|
+
limit (int, optional): Limit of Work objects to remove. Defaults to False.
|
|
164
166
|
|
|
165
167
|
Returns:
|
|
166
168
|
bool: Whether any works were deleted.
|
|
@@ -171,7 +173,7 @@ class Buckets(Client):
|
|
|
171
173
|
query.update({"tags": {"$in": tags}} if tags else {})
|
|
172
174
|
query.update({"config.parent": parent} if parent else {})
|
|
173
175
|
projection = {"id": True}
|
|
174
|
-
result = self.view(query, projection)
|
|
176
|
+
result = self.view(query, projection, limit=limit)
|
|
175
177
|
ids: List[str] = []
|
|
176
178
|
if result:
|
|
177
179
|
ids = [work["id"] for work in result]
|
|
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
|
|
File without changes
|