guryanovev / CrystalQuartz

pluggable UI for Quartz.NET
MIT License
999 stars 312 forks source link

execute_job command does not return InProgress #105

Closed mobergs closed 1 year ago

mobergs commented 1 year ago

CrystalQuartz Panel v6.11.0.3, Quarts v3.6.3.0, .NET v4.5.2

Hello CrystalQuartz team, The execute_job api response does not return any InProgress (ip) value due to async job schedule of the manual trigger. If no timely NextFireDate (nfd) existing in the returned schedule it will default the next UI refresh to the MAX_UPDATE_INTERVAL (5m). Is it possible to have the completion of the "execute_job" command trigger the next UI refresh at the MIN or DEFAULT interval in order to see that the executed triggers status?

mobergs commented 1 year ago

I was able to fix this by updating the Quartz3ScheduleCommander to run the trigger synchronously and sleep for 1s. this was the only way I could get the api to return the executing trigger as InProgress