【问题标题】:Cronos cron Service Working Cron Job Demo net core 5Cronos cron Service Working Cron Job Demo net core 5
【发布时间】:2021-08-06 07:35:47
【问题描述】:

我正在使用 Cronos ServiceWorkerCronJobDemo (https://github.com/dotnet-labs/ServiceWorkerCronJob)

在 Dot Net Core 5 应用程序中

就目前而言,它按预期工作。 但是一旦我开始将 cron 表达式更改为我需要的 "0 0 1 * *" 或 @monthly 我需要将它安排在每月的第一天运行。

我得到一个无效的间隔错误值。

有人有解决办法吗?

screen dump of error screen dump of settings

【问题讨论】:

    标签: asp.net-core scheduled-tasks


    【解决方案1】:

    你的cron表达式好像没发现什么问题,我可以用它解析出来。

    能否给出具体的错误和相关代码?

    我回顾了三篇文章,可能对你有帮助:

    1.Cronos

    2.Cron job troubleshooting guide

    3.Schedule Cron Jobs using HostedService in ASP.NET Core

    【讨论】:

    • 我在原帖中添加了一些屏幕转储。
    猜你喜欢
    • 1970-01-01
    • 2016-03-27
    • 2023-03-18
    • 1970-01-01
    • 2017-06-14
    • 2015-06-23
    • 1970-01-01
    • 2022-12-26
    • 1970-01-01
    相关资源
    最近更新 更多