Skip to content

Commit a5b1982

Browse files
committed
cleanup
1 parent f94f3b9 commit a5b1982

File tree

3 files changed

+48
-101
lines changed

3 files changed

+48
-101
lines changed

sdks/python/hatchet_sdk/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ class ClientConfig(BaseSettings):
137137

138138
# Cancellation configuration
139139
cancellation_grace_period: timedelta = Field(
140-
default=timedelta(seconds=5),
140+
default=timedelta(milliseconds=1000),
141141
description="The maximum time to wait for a task to complete after cancellation is triggered before force-cancelling. Value is interpreted as seconds when provided as int/float.",
142142
)
143143
cancellation_warning_threshold: timedelta = Field(
144-
default=timedelta(seconds=3),
144+
default=timedelta(milliseconds=300),
145145
description="If a task has not completed cancellation within this duration, a warning will be logged. Value is interpreted as seconds when provided as int/float.",
146146
)
147147

0 commit comments

Comments
 (0)