作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
ITrigger cronTrigger = TriggerBuilder.Create()
.WithIdentity("trigger1", "group1")
.WithCronSchedule(0 0/1 * 1/1 * ? *)
.Build();
此代码将运行时间设置为比我希望的早一小时,因此不是在 1:40 运行,而是在 12:40 运行。我可以将 Itrigger 的时区设置为英国时间吗?
最佳答案
ITrigger trigger = TriggerBuilder.Create()
.WithIdentity("trigger3", "group1")
.WithCronSchedule(
"Your CRON Expression comes here",
x => x.InTimeZone(TimeZoneInfo.FindSystemTimeZoneById("Your Time Zone Id comes here"))
)
.ForJob("GUID / any unique combination ID comes here ")
.Build()
关于c# - Quartz.net 为 ITrigger 设置时区?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17970691/
我使用实现 ITrigger 接口(interface)的触发器 jar 将数据从 Cassandra 发送到 Kafka。 为了确保我只在某些服务器可用时才尝试向 Kafka 发送消息(以避免超时开
ITrigger cronTrigger = TriggerBuilder.Create() .WithIdentity("trigger1", "group1")
我的意思是如果我有这样的触发器: ITrigger trigger = TriggerBuilder.Create() .WithSimpleSchedule(x => x .W
我是一名优秀的程序员,十分优秀!