diff --git a/lambdas/src/bna-fargate-run.rs b/lambdas/src/bna-fargate-run.rs index 7453140..632ab95 100644 --- a/lambdas/src/bna-fargate-run.rs +++ b/lambdas/src/bna-fargate-run.rs @@ -6,7 +6,7 @@ use aws_sdk_ecs::types::{ use bnacore::aws::get_aws_parameter_value; use bnalambdas::{ authenticate_service_account, update_pipeline, AnalysisParameters, BrokenspokePipeline, - BrokenspokeState, Context, AWSS3, + BrokenspokeState, AWSS3, }; use lambda_runtime::{run, service_fn, Error, LambdaEvent}; use serde::{Deserialize, Serialize}; @@ -16,7 +16,6 @@ use tracing::info; struct TaskInput { analysis_parameters: AnalysisParameters, aws_s3: AWSS3, - context: Context, } #[derive(Serialize)] @@ -45,8 +44,7 @@ async fn function_handler(event: LambdaEvent) -> Result) -> Result) -> Result) -> Result<(), Error> { +async fn function_handler(_event: LambdaEvent) -> Result<(), Error> { // Retrieve API hostname. let api_hostname = get_aws_parameter_value("BNA_API_HOSTNAME").await?; @@ -36,8 +36,7 @@ async fn function_handler(event: LambdaEvent) -> Result<(), Error> { .map_err(|e| format!("cannot authenticate service account: {e}"))?; // Read the task inputs. - let state_machine_context = &event.payload.context; - let (state_machine_id, _) = state_machine_context.execution.ids()?; + let (state_machine_id, _) = (uuid::Uuid::new_v4(), uuid::Uuid::new_v4()); // Update the pipeline status. let patch_url = format!("{url}/{state_machine_id}");