HangfireIO / HangfireIO/Hangfire
Is it Possible to Add Async Overloads of Jobs Creation's Methods ?
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
As I understood, "The control is returned to a caller just after Hangfire serializes the given information and saves it to the storage."
I suggest to support the async/await pattern (i.e. no blocking of threads) by overloading the jobs creation's methods, example:
`await BackgroundJob.EnqueueAsync(() => SomeClass.DoWork());`
I know such feature may requires to re-engineer the Hangfire but I have to ask if is it possible to see this methods soon ?
Contributor guide
Research direction
Start with the BackgroundJob.Enqueue entry point and trace how job information is serialized and saved to storage. Determine which job-creation methods would need async overloads and whether the storage path supports non-blocking operations. Done means the requested async/await API is defined with compatible behavior and its effects are covered by appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100