Skip to content

setting Run on startup for timespan does not work #148

@vilisikio

Description

@vilisikio

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions