Schedule persistence

Product: PowerShell Universal
Version: 1.4.6

I am working on a project, where the requirement is:

  • call and endpoint API of PSU
  • the API should create two schedules:
    • a one-time schedule (to put an AD user into a group)
    • another one-time schedule (some point latter in time) to remove the same user from the above group
      to call a script on the server

This is working as intended, however I observed: when the PowerShellUniversal service is restarted (I am guessing that would be the case for a server reboot as well), the subsequent schedules disappear → this, if happens between the two schedules, leaves the users in the group, so should not happen…

Can you advise if it can be prevented? Maybe using other than the default DB…?

Thanks,
F.

(Also, version deployed is current, 5.0.15

One-time schedules do not persist when using SQLite as a database. If you use SQL or PostgreSQL, they will persist.

Thanks @adam .