pub struct PostPublishPollConfig {
pub enabled: bool,
pub interval: HumanDuration,
pub timeout: HumanDuration,
}Expand description
Per-publisher post-publish polling config block.
See module-level docs for the polling lifecycle. Default values:
enabled: true, interval: 30s, timeout: 30m.
Fields§
§enabled: boolWhether to poll at all. Default false — the upstream moderation
queues these publishers feed (Chocolatey, winget-pkgs) routinely
take HOURS to DAYS; the publish stage cannot reasonably block on
them in a CI workflow. Opt in to in-band verification by setting
true per-publisher (e.g. when running locally and willing to
wait).
interval: HumanDurationHow long to wait between successive status checks. Default 30s.
timeout: HumanDurationTotal wall-clock budget for polling. When exhausted, the poller
emits PostPublishStatus::Timeout with the last observed state.
Default 30m.
Implementations§
Source§impl PostPublishPollConfig
impl PostPublishPollConfig
Sourcepub const DEFAULT_INTERVAL: Duration
pub const DEFAULT_INTERVAL: Duration
Default interval between successive polls (30 seconds).
Sourcepub const DEFAULT_TIMEOUT: Duration
pub const DEFAULT_TIMEOUT: Duration
Default total polling budget (30 minutes).
Trait Implementations§
Source§impl Clone for PostPublishPollConfig
impl Clone for PostPublishPollConfig
Source§fn clone(&self) -> PostPublishPollConfig
fn clone(&self) -> PostPublishPollConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PostPublishPollConfig
Source§impl Debug for PostPublishPollConfig
impl Debug for PostPublishPollConfig
Source§impl Default for PostPublishPollConfig
impl Default for PostPublishPollConfig
Source§impl<'de> Deserialize<'de> for PostPublishPollConfigwhere
PostPublishPollConfig: Default,
impl<'de> Deserialize<'de> for PostPublishPollConfigwhere
PostPublishPollConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for PostPublishPollConfig
impl JsonSchema for PostPublishPollConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more