HangfireIO / HangfireIO/Hangfire

How to know if job is aborted?

Open
#2,500 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

If the job is running and server restarted for some reason. The job shows in Processing Jobs list with ! sign says "Looks like the job was aborted" and its state shows In Process.
In dotnet core, When I fetch the list of processing jobs, this job appears in the list with other job, but doesn't show any difference. How do we know that this job is aborted, so we could delete it?

![Image](https://github.com/user-attachments/assets/eee13325-d011-45cf-ba5b-7203c729a9eb)

Contributor guide

Open the contributing guide

Research direction

Reproduce the case by restarting the server while a job is running, then compare the processing-jobs result with the Dashboard's aborted indication. Trace how the job state is exposed to .NET Core callers; done when callers can reliably identify an aborted job or the supported way to delete it is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.