Skip to content
DocsTry Aspire
DocsTry

UpdateConfig Properties

ClassProperties6 members
Defines the update configuration settings for service deployments in a Docker Swarm environment.
DelaySection titled Delaynullablestring?
Represents the delay between each update operation for a service node in a swarm configuration.
public string? Delay { get; set; }
FailureActionSection titled FailureActionnullablestring?
Gets or sets the action to take when an update fails. Valid values are "continue", "rollback", and "pause".
public string? FailureAction { get; set; }
MaxFailureRatioSection titled MaxFailureRationullablestring?
Gets or sets the maximum failure ratio allowed during the update process. This property specifies the threshold for the ratio of failed tasks over the total number of tasks during a service update. If the failure ratio exceeds this value, the update will be rolled back or stopped depending on the configured failure action.
public string? MaxFailureRatio { get; set; }
MonitorSection titled Monitornullablestring?
Gets or sets the duration or interval for monitoring the progress of an update. This property is typically used to specify the time span the system will monitor the update process before determining its status (success or failure).
public string? Monitor { get; set; }
OrderSection titled Ordernullablestring?
Represents the execution order of service updates during the update process. Specifies the sequence in which the update operations are applied (e.g., "start-first" or "stop-first").
public string? Order { get; set; }
ParallelismSection titled Parallelismnullableint?
Gets or sets the maximum number of service tasks that can be updated simultaneously.
public int? Parallelism { get; set; }