I'm using Hangfire in my ASP.NET application to execute methodos in the background but I need to create my own process monitor, so I need to get (select) a collection of Jobs, making filters by date, status, etc ... How can I do this?
ASP.NET MVC Hangfire Get Collection of Jobs with details
1.6k Views Asked by GustavoZafra At
2
There are 2 best solutions below
0
Simsons
On
Use Hangfire JobStorage
var recurringJobs = Hangfire.JobStorage.Current.GetConnection().GetRecurringJobs();
You can use this to return from a controller.
public ActionResult Index()
{
var recurringJobs = Hangfire.JobStorage.Current.GetConnection().GetRecurringJobs();
return View(recurringJobs);
}
Then create your view (Right Click on Index > Add View). This will show the list of views.
Now you can write your script to sort/filter.
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in ASP.NET-MVC
- Can MVC.NET prevent SQL-injection at razor or controller level?
- Getting and passing MVC Model data to AngularJS controller
- Access property of an object of type [Model] in JQuery
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Bundling and minification issue in MVC
- ASP-MVC Code-first migrations checkbox not active
- Why does Azure CloudConfigurationManager.GetSetting return null
- Dynamic roles list in CustomAuthorize ASP MVC
- Jquery: Change contents of <select> tag dynamically
- Why web API return 404 when deploy to IIS
- MVC route URL not containing parameter
- Invalidate user credentials when password changes
- MVC : Insert data to two tables
- MVC - Only allow users to edit their own data
- Submit Button on Razor View doesn't call Action Result - MVC
Related Questions in JOBS
- how to identify user who created a specific job on jenkins?
- Sort order for job steps in SQL Server 2008 R2
- Laravel 5.2 Job with delay fires instantly instead of waiting
- Qt5: How to do a cleanup manager (1 or more tasks) that run periodically to do cleaning-job?
- Scheduled job to copy data
- Why hadoop slave cannot run a job?
- Threadpool how to make a thread pool with queue in C?
- What is the role of the last argument ( $uniqueId ) in PHP Gearman's doNormal()?
- Defining node agenda jobs for these use cases
- Job not executing at fixed rate
- Jenkins jobs running on slaves
- Jenkins jobs configuration checking before run it
- Best way to check multiple tasks done in Celery?
- Chaining steps in spring batch
- Jenkins Permission's to user according to jobs
Related Questions in HANGFIRE
- Hangfire single instance recurring job
- send SignalR client message from background thread
- Hangfire configuration and Ninject configuration
- Hangfire + Crystal Reports email?
- Hangfire has no active servers
- Hangfire queues recurring jobs
- Hangfire Job: Fires and does not execute and still status is successful
- Using Hangfire with Redis, is there an easy way to partition jobs to the various Redis servers using key-hashes?
- Hangfire EnqueuedJobs parameters
- ASP.NET MVC Hangfire Get Collection of Jobs with details
- Hangfire job not firing when called inside of ASP.NET MVC Action method
- Adding a recurring hangfire job to an ASP.NET MVC application
- Recurring HangFire job for each user of an ASP.NET Core MVC app (w/ SignalR)
- Increase the recurring job polling interval for hangfire and enabling/disabling the recurring job process
- Hangfire MySqlStorage - HttpConfiguration does not contain a definition for 'UseStorage'
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Did you try to get jobs from database? Hangfire can store them if you configure it in your Startup class.