quartznet
quartznet copied to clipboard
In JobStoreTX the current running trigger has state complete.
Describe the bug
For a long running job I request all triggers with GetTriggersOfJob
. For the returned triggers I request the state with GetTriggerState
.
The returned state is Complete
when I use JobStoreTX
but it's Blocked
with RAMJobStorage
.
Version used
3.8.0
To Reproduce
Use the code in https://github.com/MartinDemberger/quartznet_triggererror to reproduce the error.
Expected behavior
A trigger should be in state Blocked while it is executed.
Additional context
I'm not sure but I think this wrong state can be a real problem if the server is killed and restarted. In this case the trigger is marked as completed and isn't restarted.