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
b74fb66939
commit
7b04d81074
@ -120,5 +120,5 @@ __plugin_meta__ = PluginMetadata(
|
||||
type=int,
|
||||
),
|
||||
],
|
||||
).to_dict(),
|
||||
)
|
||||
).to_dict(),
|
||||
)
|
||||
|
||||
@ -47,7 +47,7 @@ class ScheduledJob(Model):
|
||||
execution_options = fields.JSONField(
|
||||
null=True,
|
||||
description="任务执行的额外选项 (例如: jitter, spread, "
|
||||
"interval, concurrency_policy)",
|
||||
"interval, concurrency_policy)",
|
||||
)
|
||||
create_time = fields.DatetimeField(auto_now_add=True)
|
||||
|
||||
|
||||
@ -472,9 +472,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