zfs.tier.rewrite_job_query¶
Subscribe to ZFS rewrite job collection events (ADDED, CHANGED, REMOVED). On subscribe, sends ADDED for all existing jobs, then polls every 5 seconds and fires CHANGED when a job transitions state or REMOVED when it disappears.
This event is generated by a dynamic source. If you want to specify subscription params, subscribe to it using the name in the following format zfs.tier.rewrite_job_query:{“param”: “value”}
ZfsTierRewriteJobQueryEventSourceArgs
Type: objectNo arguments — subscribes to all rewrite job lifecycle events.
ZfsTierRewriteJobQueryEventSourceEvent
Type: objectNo Additional Properties
ZfsTierRewriteJobQueryEventSourceEvent
Type: objectNo Additional Properties
ZfsTierRewriteJobEntry
Type: objectCurrent job entry reflecting the latest lifecycle state.
No Additional PropertiesTier Job Id
Type: stringRewrite job identifier in dataset_name@job_uuid format.
Must be at least 1 characters long
Dataset Name
Type: stringZFS dataset this job is operating on.
Must be at least 1 characters long
Job Uuid
Type: stringUnique identifier for this rewrite job.
Must be at least 1 characters long
Status
Type: enum (of string)Current lifecycle state of the job.
COMPLETE- All files in the dataset have been processed.RUNNING- Job is actively processing files.QUEUED- Job is waiting for a free execution slot (seemax_concurrent_jobs).CANCELLED- Job was stopped viazfs_tier_job.cancel. Not resumable.STOPPED- Job was RUNNING but its process is no longer active (e.g. daemon restart). This state is computed on read and is never written to persistent storage.ERROR- Job halted due to an unrecoverable error. Usezfs_tier_job.recoverto retry failed files.
Must be one of:
- "COMPLETE"
- "RUNNING"
- "QUEUED"
- "CANCELLED"
- "STOPPED"
- "ERROR"
Required roles: DATASET_READ