Skip to content

Commit 3597337

Browse files
committed
Added support for tags
1 parent e5212bb commit 3597337

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

spawn/eigr/functions/actors/api/actor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def register_timer_action_handler(function):
6363

6464

6565
def invoke(function, parameters):
66-
print("Parameters {}".format(parameters))
6766
ordered_parameters = []
6867
for parameter_definition in inspect.signature(function).parameters.values():
6968
annotation = parameter_definition.annotation

spawn/eigr/functions/actors/api/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from enum import Enum
2-
from typing import Generic, TypeVar
2+
from typing import Generic, MutableMapping, TypeVar
33

44
T = TypeVar('T')
55

@@ -18,12 +18,15 @@ def __init__(
1818
stateful: bool = True,
1919
state_type: Generic[T] = None,
2020
channel: str = None,
21+
metadata: MutableMapping[str, str] = dict(),
22+
tags: MutableMapping[str, str] = dict(),
2123
deactivate_timeout: int = 30000,
2224
snapshot_timeout: int = 2000):
2325
self.name = name
2426
self.kind = kind
2527
self.stateful = stateful
2628
self.state_type = state_type
2729
self.channel = channel
30+
self.tags = tags
2831
self.deactivate_timeout = deactivate_timeout
2932
self.snapshot_timeout = snapshot_timeout

0 commit comments

Comments
 (0)