Skip to content

fix: Hangfire UI crash on Awaiting#160

Open
MasterBlaster9001 wants to merge 1 commit intomarcoCasamento:masterfrom
MasterBlaster9001:fix/hangfire-ui-crash
Open

fix: Hangfire UI crash on Awaiting#160
MasterBlaster9001 wants to merge 1 commit intomarcoCasamento:masterfrom
MasterBlaster9001:fix/hangfire-ui-crash

Conversation

@MasterBlaster9001
Copy link

Deserialize the task result, not the task itself.

It works when there are no jobs though :)

Deserialize the task result, not the task itself.

It works when there are no jobs though :)
@MasterBlaster9001
Copy link
Author

@marcoCasamento could you please check it?

@hwoarang84
Copy link

@MasterBlaster9001 use TryGetValue

LastHistoryEntry = histories.TryGetValue(jobId, out var history)
    ? SerializationHelper.Deserialize<Dictionary<string, string>>(history.Result.ToString())
    : null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants