INNER CODE UNIT · Rust
deploy_job
tangle-network/blueprint · crates/blueprint-faas/src/lib.rs:172
pub async fn deploy_job(
provider_config: FaasProviderConfig,
job_id: u32,
binary: &[u8],
) -> Result<FaasDeployment, FaasError> {
let executor = create_executor(provider_config.clone()).await?;
let faas_config = FaasConfig {
memory_mb: provider_config.default_memory_mb,
timeout_secs: provider_config.default_timeout_secs,
..Default::default()
};
executor.deploy_job(job_id, binary, &faas_config).await
}
}
/// Common utilities shared across providers