Skip to content

EMR Serverless client should auto-refresh Spark UI URL as it expires for long running jobs #33684

Description

@juhai

What's the issue?

With Dagster pipes EMR Serverless client, the spark UI URL is provided when the job changes to running state. The URL is only valid for a fixed period of time, around 1 hour. There should to be a timed refresh operation that gives a new URL every X minutes, possibly 15-30 minutes to ensure the current URL is valid until the next one is fetched.

This is the message when an expired link is used: The authorization token included in the request has expired. Please generate a new URL.

What did you expect to happen?

The URL provided in the dagster UI is valid and shows spark UI when clicked.

How to reproduce?

Have a spark job running in EMR Serverless for more than an hour and observe the link expiring and no access to Spark UI is possible after this.

Dagster version

0.12.2

Deployment type

Dagster Cloud

Deployment details

No response

Additional information

The dagster-aws version I am using is 0.28.2 but the current main branch has no handling for this situation in the _wait_for_completion method.

Message from the maintainers

Impacted by this issue? Give it a 👍! We factor engagement into prioritization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions