Skip to content

Commit ae0983a

Browse files
committed
Update comment
Signed-off-by: joshvanl <me@joshvanl.dev>
1 parent 04cfbc9 commit ae0983a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

dapr/actor/runtime/config.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,13 @@ def __init__(
130130
actor_scan_interval (datetime.timedelta): The duration which specifies how often to scan
131131
for actors to deactivate idle actors. Actors that have been idle longer than
132132
actor_idle_timeout will be deactivated.
133-
drain_ongoing_call_timeout (datetime.timedelta): The duration which specifies the
134-
timeout for the current active actor method to finish before actor deactivation.
135-
If there is no current actor method call, this is ignored.
133+
drain_ongoing_call_timeout (Optional[datetime.timedelta]): The duration which
134+
specifies the timeout for the current active actor method to finish before
135+
actor deactivation. If there is no current actor method call, this is
136+
ignored. Defaults to None, which omits the field from the configuration
137+
sent to daprd so the runtime applies its own default. An explicit value
138+
must be shorter than the daprd placement dissemination timeout, otherwise
139+
daprd will clamp it.
136140
drain_rebalanced_actors (bool): If true, Dapr will wait for drain_ongoing_call_timeout
137141
to allow a current actor call to complete before trying to deactivate an actor.
138142
reentrancy (ActorReentrancyConfig): Configure the reentrancy behavior for an actor.

0 commit comments

Comments
 (0)