Skip to content

Make time resource versions more predictable #45

@jwntrs

Description

@jwntrs

What challenge are you facing?

Right now time resource versions are unpredictable. The resource check will output the current timestamp after its interval has elapsed (or whatever other configuration is used). However, if the check gets delayed then the gap between versions is unpredictable.

What would make this better?

Make time resource versions more predictable. Instead of emitting the current timestamp, emit versions at set times based on the interval specified. This means that if the last version emitted was 1:42:05 and the interval was 1m then if the check runs at say 1:45:30 the following versions would be emitted: 1:43:05, 1:44:05, 1:45:05. This way regardless of when the check actually runs, we end up with a deterministic set of versions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions