-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Task queue setting "RunOnVaultStartup" for TimeSpanEx, does not have any effect. The queue is always ran on startup.
If also there is nothing set as a timespan values (even if it is set on the Configurations in the code), it will repeatedly run the code as often as possible (for example every 30 milliseconds).
The interval problem can be supressed by setting the interval in M-Files admin. After that the code is run according to the interval, but still the queue starts automatically at vault restart.
Currently I can't find a way to not start interval task at the vault startup.
Documentation is also out of date:
https://github.com/M-Files/VAF.Extensions.Community/tree/master/MFiles.VAF.Extensions#suppressing-an-interval-based-task-from-running-at-vault-startup
The example code there doesn't compile.
I think the correct example code should be:
[DataMember] [RecurringOperationConfiguration ( VaultApplication.QueueId, VaultApplication.ExportLicenseUsageTaskType )] public TimeSpanEx Interval { get; set; } = new TimeSpanEx( new TimeSpan(0, 10, 0), false);