mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-14 21:52:56 +08:00
🚨 auto fix by pre-commit hooks
This commit is contained in:
parent
6815caf805
commit
e6f6ad0559
@ -468,9 +468,7 @@ class SchedulerManager:
|
||||
"required_permission": required_permission,
|
||||
"source": source,
|
||||
"is_one_off": is_one_off,
|
||||
"execution_options": model_dump(
|
||||
validated_options, exclude_none=True
|
||||
),
|
||||
"execution_options": model_dump(validated_options, exclude_none=True),
|
||||
}
|
||||
|
||||
defaults = {k: v for k, v in defaults.items() if v is not None}
|
||||
|
||||
@ -77,6 +77,7 @@ class Trigger:
|
||||
"""创建一个 Date 触发器配置。"""
|
||||
return DateTrigger(**kwargs)
|
||||
|
||||
|
||||
class ExecutionOptions(BaseModel):
|
||||
"""
|
||||
封装定时任务的执行策略,包括重试和回调。
|
||||
|
||||
Loading…
Reference in New Issue
Block a user