简体   繁体   English

从使用 Mongo DB 的 Hangfire Scheduler 获取重复作业详细信息

[英]Fetch Recurring Job Details from Hangfire Scheduler which is using Mongo DB

I have to display the Hangfire background job details which are created in Mongo DB, Is there any built in functions to query the job details?我必须显示在 Mongo DB 中创建的 Hangfire 后台作业详细信息,是否有任何内置函数来查询作业详细信息? I am using.Net core Hangfire Nuget我正在使用.Net core Hangfire Nuget

If I read it correctly, you should find your relevant collections in the databaseName , and _prefix , that you set.如果我没看错,您应该在您设置的databaseName_prefix中找到相关的 collections 。 The collections are named: _prefix + ".notifications" , _prefix + ".jobGraph" , _prefix + ".schema" , _prefix + ".server" collections 被命名为: _prefix + ".notifications" , _prefix + ".jobGraph" , _prefix + ".schema" , _prefix + ".server"

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

If you want to read it through some API I would search in the MongoMonitoringAPI namespace如果你想通过一些 API 阅读它,我会在MongoMonitoringAPI命名空间中搜索

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM