Skip to content

Commit c9e5720

Browse files
committed
Implement workflow & activity registry
1 parent 8a85575 commit c9e5720

File tree

6 files changed

+898
-2
lines changed

6 files changed

+898
-2
lines changed

cadence/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Cadence Python Client
3+
4+
A Python framework for authoring workflows and activities for Cadence.
5+
"""
6+
7+
# Import main client functionality
8+
from .client import Client
9+
10+
__version__ = "0.1.0"
11+
12+
__all__ = [
13+
"Client",
14+
]

cadence/worker/__init__.py

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,46 @@
55
WorkerOptions
66
)
77

8+
from ._registry import (
9+
Registry,
10+
RegistryError,
11+
WorkflowNotFoundError,
12+
ActivityNotFoundError,
13+
DuplicateRegistrationError,
14+
registry,
15+
new_registry,
16+
register_workflow,
17+
register_activity,
18+
get_workflow,
19+
get_activity,
20+
list_workflows,
21+
list_activities,
22+
has_workflow,
23+
has_activity,
24+
get_total_workflow_count,
25+
get_total_activity_count,
26+
clear_registry,
27+
)
28+
829
__all__ = [
930
"Worker",
10-
"WorkerOptions"
11-
]
31+
"WorkerOptions",
32+
'Registry',
33+
'RegistryError',
34+
'WorkflowNotFoundError',
35+
'ActivityNotFoundError',
36+
'DuplicateRegistrationError',
37+
'registry',
38+
'new_registry',
39+
'register_workflow',
40+
'register_activity',
41+
'get_workflow',
42+
'get_activity',
43+
'list_workflows',
44+
'list_activities',
45+
'has_workflow',
46+
'has_activity',
47+
'get_total_workflow_count',
48+
'get_total_activity_count',
49+
'clear_registry',
50+
]

0 commit comments

Comments
 (0)