pub struct BatchService { /* private fields */ }Implementations§
Source§impl BatchService
impl BatchService
pub fn new(state: SharedBatchState) -> Self
pub fn with_snapshot_store(self, store: Arc<dyn SnapshotStore>) -> Self
Sourcepub fn with_ecs(
self,
state: SharedEcsState,
runtime: Option<Arc<EcsRuntime>>,
) -> Self
pub fn with_ecs( self, state: SharedEcsState, runtime: Option<Arc<EcsRuntime>>, ) -> Self
Attach the ECS backend so SubmitJob launches a real container-backed task and drives the job status off its real exit code.
Sourcepub fn snapshot_hook(&self) -> Option<SnapshotHook>
pub fn snapshot_hook(&self) -> Option<SnapshotHook>
CloudFormation write-through hook (used once the CFN provisioner lands).
Sourcepub async fn reconcile_persisted_jobs(&self)
pub async fn reconcile_persisted_jobs(&self)
Reconcile jobs restored from a snapshot. After a restart the background drivers that advance a job (status-sync / dependency-waiter) are gone and the backing ECS task was already STOPPED by the ECS reconcile, so an in-flight job can never reach a terminal state on its own — it would hang at RUNNING/PENDING forever. Fail every non-terminal job with a clear reason instead of leaving a zombie.
Trait Implementations§
Source§impl AwsService for BatchService
impl AwsService for BatchService
Source§fn service_name(&self) -> &str
fn service_name(&self) -> &str
The AWS service identifier (e.g., “sqs”, “sns”, “sts”, “events”, “ssm”).
Source§fn supported_actions(&self) -> &[&str]
fn supported_actions(&self) -> &[&str]
List of actions this service supports (for introspection).
Source§fn handle<'life0, 'async_trait>(
&'life0 self,
req: AwsRequest,
) -> Pin<Box<dyn Future<Output = Result<AwsResponse, AwsServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle<'life0, 'async_trait>(
&'life0 self,
req: AwsRequest,
) -> Pin<Box<dyn Future<Output = Result<AwsResponse, AwsServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle an incoming request.
Source§fn iam_enforceable(&self) -> bool
fn iam_enforceable(&self) -> bool
Whether this service participates in opt-in IAM enforcement
(
FAKECLOUD_IAM=soft|strict). Read moreSource§fn iam_action_for(&self, _request: &AwsRequest) -> Option<IamAction>
fn iam_action_for(&self, _request: &AwsRequest) -> Option<IamAction>
Derive the IAM action + resource ARN for an incoming request. Read more
Source§fn iam_condition_keys_for(
&self,
_request: &AwsRequest,
_action: &IamAction,
) -> BTreeMap<String, Vec<String>>
fn iam_condition_keys_for( &self, _request: &AwsRequest, _action: &IamAction, ) -> BTreeMap<String, Vec<String>>
Derive service-specific IAM condition keys for an incoming request. Read more
Return the tags on the resource identified by
resource_arn. Read moreExtract tags being sent in the request (e.g. on CreateQueue,
PutObject with
x-amz-tagging, TagResource). Read moreAuto Trait Implementations§
impl !RefUnwindSafe for BatchService
impl !UnwindSafe for BatchService
impl Freeze for BatchService
impl Send for BatchService
impl Sync for BatchService
impl Unpin for BatchService
impl UnsafeUnpin for BatchService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more