从正在使用Mongo DB的Hangfire Scheduler中获取定期作业详细信息

我必须显示在Mongo DB中创建的Hangfire后台作业详细信息,是否有任何内置函数来查询作业详细信息? 我正在使用.Net核心Hangfire Nuget

doris331 回答:从正在使用Mongo DB的Hangfire Scheduler中获取定期作业详细信息

如果我没看错,您应该在设置的databaseName_prefix中找到相关的收藏集。这些集合的名称为:_prefix + ".notifications"_prefix + ".jobGraph"_prefix + ".schema"_prefix + ".server"

来源:https://github.com/sergeyzwezdin/Hangfire.Mongo/blob/master/src/Hangfire.Mongo/Database/HangfireDbContext.cs

如果您想通过某些API读取它,我会在MongoMonitoringAPI名称空间中进行搜索

https://github.com/sergeyzwezdin/Hangfire.Mongo/blob/master/src/Hangfire.Mongo/MongoMonitoringApi.cs

本文链接:https://www.f2er.com/3162704.html

大家都在问