Unable to change Auto Restart chron schedule

Issue #47 resolved
Zach Risher created an issue

Hello,

After starting a server with the latest versions of SESM and SESE, if I:

  • to go Server Settings -> Jobs
  • change "Auto Restart Cron" to any other valid value (i.e. 0 0 * * ? instead of 0 0 0 * ?)
  • click "Save"

I receive this error notification:

Error SRV-SSESESET-EX Exception :Quartz.ObjectAlreadyExistsException: Unable to store Job: 'AutoRestart.AutoRestart202', because one already exists with this identification. at Quartz.Simpl.RAMJobStore.StoreJob(IJobDetail newJob, Boolean replaceExisting) at Quartz.Simpl.RAMJobStore.StoreJobAndTrigger(IJobDetail newJob, IOperableTrigger newTrigger) at Quartz.Core.QuartzScheduler.ScheduleJob(IJobDetail jobDetail, ITrigger trigger) at SESM.Controllers.API.APIServerController.SetJobsSettings()

If I:

  • Toggle off the "Auto Restart" slider
  • Save (successful)
  • Change chron schedule (successful)
  • Toggle on "Auto Restart"
  • Attempt to save

I get the same error.

Comments (2)

  1. remygrandin NA repo owner

    i've found the bug (and a mislabelled error code) : instead of deleting the autorestart job, it delete .... the autoupdate job .....(silly copy paste). Anyway, i will push a patch in the evening.

  2. Log in to comment