10
10
11
11
@check_arg_types
12
12
def run (
13
+ * ,
13
14
debug : bool = False ,
14
15
monitoring_level : MonitoringLevel = MonitoringLevel .AUTO ,
15
16
with_http_server : bool = False ,
16
17
default_logging : bool = True ,
17
18
persistence_config : PersistenceConfig | None = None ,
19
+ runtime_typechecking : bool | None = None ,
18
20
):
19
21
"""Runs the computation graph.
20
22
@@ -30,6 +32,7 @@ def run(
30
32
it to False if you want to set your own logging handler.
31
33
persistence_config: the config for persisting the state in case this
32
34
persistence is required.
35
+ runtime_typechecking: enables additional strict type checking at runtime
33
36
"""
34
37
GraphRunner (
35
38
parse_graph .G ,
@@ -38,22 +41,42 @@ def run(
38
41
with_http_server = with_http_server ,
39
42
default_logging = default_logging ,
40
43
persistence_config = persistence_config ,
44
+ runtime_typechecking = runtime_typechecking ,
41
45
).run_outputs ()
42
46
43
47
44
48
@check_arg_types
45
49
def run_all (
50
+ * ,
46
51
debug : bool = False ,
47
52
monitoring_level : MonitoringLevel = MonitoringLevel .AUTO ,
48
53
with_http_server : bool = False ,
49
54
default_logging : bool = True ,
55
+ persistence_config : PersistenceConfig | None = None ,
50
56
runtime_typechecking : bool | None = None ,
51
57
):
58
+ """Runs the computation graph with disabled tree-shaking optimization.
59
+
60
+ Args:
61
+ debug: enable output out of table.debug() operators
62
+ monitoring_level: the verbosity of stats monitoring mechanism. One of
63
+ pathway.MonitoringLevel.NONE, pathway.MonitoringLevel.IN_OUT,
64
+ pathway.MonitoringLevel.ALL. If unset, pathway will choose between
65
+ NONE and IN_OUT based on output interactivity.
66
+ with_http_server: whether to start a http server with runtime metrics. Learn
67
+ more in a `tutorial </developers/user-guide/deployment/prometheus-monitoring/>`_ .
68
+ default_logging: whether to allow pathway to set its own logging handler. Set
69
+ it to False if you want to set your own logging handler.
70
+ persistence_config: the config for persisting the state in case this
71
+ persistence is required.
72
+ runtime_typechecking: enables additional strict type checking at runtime
73
+ """
52
74
GraphRunner (
53
75
parse_graph .G ,
54
76
debug = debug ,
55
77
monitoring_level = monitoring_level ,
56
78
with_http_server = with_http_server ,
57
79
default_logging = default_logging ,
80
+ persistence_config = persistence_config ,
58
81
runtime_typechecking = runtime_typechecking ,
59
82
).run_all ()
0 commit comments