@@ -437,6 +437,8 @@ pub struct BackgroundTaskConfig {
437437 pub attached_subnet_manager : AttachedSubnetManagerConfig ,
438438 /// configuration for console session cleanup task
439439 pub session_cleanup : SessionCleanupConfig ,
440+ /// configuration for audit log incomplete timeout task
441+ pub audit_log_timeout_incomplete : AuditLogTimeoutIncompleteConfig ,
440442}
441443
442444#[ serde_as]
@@ -450,6 +452,21 @@ pub struct SessionCleanupConfig {
450452 pub max_delete_per_activation : u32 ,
451453}
452454
455+ #[ serde_as]
456+ #[ derive( Clone , Debug , Deserialize , Eq , PartialEq , Serialize ) ]
457+ pub struct AuditLogTimeoutIncompleteConfig {
458+ /// period (in seconds) for periodic activations of this task
459+ #[ serde_as( as = "DurationSeconds<u64>" ) ]
460+ pub period_secs : Duration ,
461+
462+ /// how old an incomplete entry must be before it is timed out
463+ #[ serde_as( as = "DurationSeconds<u64>" ) ]
464+ pub timeout_secs : Duration ,
465+
466+ /// max rows per SQL statement
467+ pub max_update_per_activation : u32 ,
468+ }
469+
453470#[ serde_as]
454471#[ derive( Clone , Debug , Deserialize , Eq , PartialEq , Serialize ) ]
455472pub struct DnsTasksConfig {
@@ -1267,6 +1284,9 @@ mod test {
12671284 attached_subnet_manager.period_secs = 60
12681285 session_cleanup.period_secs = 300
12691286 session_cleanup.max_delete_per_activation = 10000
1287+ audit_log_timeout_incomplete.period_secs = 600
1288+ audit_log_timeout_incomplete.timeout_secs = 14400
1289+ audit_log_timeout_incomplete.max_update_per_activation = 1000
12701290 [default_region_allocation_strategy]
12711291 type = "random"
12721292 seed = 0
@@ -1534,6 +1554,12 @@ mod test {
15341554 period_secs: Duration :: from_secs( 300 ) ,
15351555 max_delete_per_activation: 10_000 ,
15361556 } ,
1557+ audit_log_timeout_incomplete:
1558+ AuditLogTimeoutIncompleteConfig {
1559+ period_secs: Duration :: from_secs( 600 ) ,
1560+ timeout_secs: Duration :: from_secs( 14400 ) ,
1561+ max_update_per_activation: 1000 ,
1562+ } ,
15371563 } ,
15381564 multicast: MulticastConfig { enabled: false } ,
15391565 default_region_allocation_strategy:
@@ -1641,6 +1667,9 @@ mod test {
16411667 attached_subnet_manager.period_secs = 60
16421668 session_cleanup.period_secs = 300
16431669 session_cleanup.max_delete_per_activation = 10000
1670+ audit_log_timeout_incomplete.period_secs = 600
1671+ audit_log_timeout_incomplete.timeout_secs = 14400
1672+ audit_log_timeout_incomplete.max_update_per_activation = 1000
16441673
16451674 [default_region_allocation_strategy]
16461675 type = "random"
0 commit comments