Skip to content

Commit

Permalink
Extend the Data.stat status to include complete
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Syms <[email protected]>
  • Loading branch information
MarkSymsCtx committed Sep 20, 2024
1 parent 5fa15f0 commit b17a942
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ocaml/xapi-storage/generator/lib/data.ml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ module Data (R : RPC) = struct
open R

type copy_operation_v1 = string [@@deriving rpcty]

type mirror_operation_v1 = string [@@deriving rpcty]

(** The primary key for referring to a long-running operation. *)
Expand All @@ -259,7 +260,10 @@ module Data (R : RPC) = struct
type status = {
failed: bool
(** [failed] will be set to true if the operation has failed for some
reason. *)
reason. *)
; complete: bool
(** [complete] will be set true if the operation is complete, whether
successfully or not, see [failed]. *)
; progress: float option
(** [progress] will be returned for a copy operation, and ranges
between 0 and 1. *)
Expand Down

0 comments on commit b17a942

Please sign in to comment.