<#2979 [BUG] AWS batch job failed and plugin repor...
# flyte-github
a
#2979 [BUG] AWS batch job failed and plugin report failed but flyte console shows task still running Issue created by jw0515 Describe the bug When there's an exception happened, flyte will catch the error and the AWS batch job status goes into a SUCCEEDED state and the flyte AWS batch plugin reports catch the error back. So when clicking the running task on the execution page the task "Map Execution" tab will show the AWS batch job failed. But on the execution page, the task's status is still "running" and never stops. One can only abort the execution to stop the execution. Expected behavior Once the exception happened, although flyte catches it, the AWS batch job status should go to "Failed", the flyte task should failed and the execution should stop. Additional context to reproduce
Copy code
@workflow
def batch_inference_pipeline(model_path: str, scaler_path: str) -> int:

    inference_inputs = prepare_inference_inputs(model_path=model_path, scaler_path=scaler_path)
    batch_inference(inference_inputs=inference_inputs)
    return 0
Copy code
config = AWSBatchConfig(
    platformCapabilities="EC2",
)
@task(requests=Resources(mem="16Gi", cpu="8"), task_config=config)
def batch_inference(inference_inputs: List[InferenceInput]) -> int:
    # pool = multiprocessing.Pool()
    # pool.map(inference, inference_inputs)
    for inference_input in inference_inputs:
        inference(inference_input)
    return 0

https://flyte-org.slack.com/archives/C01P3B761A6/p1664980783943249
Screenshots

image▾

image▾

This shows that flyte catches the error and log the error but didn't raise the exception in aws batch:

image▾

Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte