Skip to content

BulkOperationLock

The lease-lock record stored in .git/obsidian-bulk-operation.json while a bulk operation runs.

Import:

import type { BulkOperationLock } from '@mnaoumov/obsidian-lib/bulk-operation';

Signature:

export interface BulkOperationLock

Properties

PropertyTypeDescription
heartbeatAtnumberWhen the lock was last refreshed by the operation's progress, as epoch milliseconds.
hoststringThe host name of the machine running the operation.
operationIdstringThe operation id, such as OP12.
pluginIdstringThe id of the plugin running the operation.
processIdnumberThe id of the process running Obsidian. Only a fast path for an app crash; staleness never depends on it.
processStartedAtnumberWhen the process running Obsidian started, as epoch milliseconds, so a recycled process id is not mistaken for the original one.
startedAtnumberWhen the operation started, as epoch milliseconds.

Links to this page: