You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing EMR Serverless jobs with the PipesEMRServerlessClient, the execution fails if the step is on QUEUED state. The issue is that this state is not on the possible states here
dagster._core.errors.DagsterInvariantViolationError: Unexpected state for AWS EMR Serverless job XXXX: QUEUED
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster/_core/execution/plan/execute_plan.py", line 245, in dagster_event_sequence_for_step
yield from check.generator(step_events)
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster/_core/execution/plan/execute_step.py", line 501, in core_dagster_event_sequence_for_step
for user_event in _step_output_error_checked_user_event_sequence(
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster/_core/execution/plan/execute_step.py", line 184, in _step_output_error_checked_user_event_sequence
for user_event in user_event_sequence:
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster/_core/execution/plan/execute_step.py", line 88, in _process_asset_results_to_events
for user_event in user_event_sequence:
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster/_core/execution/plan/compute.py", line 190, in execute_core_compute
for step_output in _yield_compute_results(step_context, inputs, compute_fn, compute_context):
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster/_core/execution/plan/compute.py", line 159, in _yield_compute_results
for event in iterate_with_context(
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster/_utils/__init__.py", line 480, in iterate_with_context
next_output = next(iterator)
^^^^^^^^^^^^^^
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster/_core/execution/plan/compute_generator.py", line 127, in _coerce_op_compute_fn_to_iterator
result = invoke_compute_fn(
^^^^^^^^^^^^^^^^^^
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster/_core/execution/plan/compute_generator.py", line 115, in invoke_compute_fn
return fn(context, **args_to_pass) if context_arg_provided else fn(**args_to_pass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/madhava/Documents/belvo/data-platform-datasets/belvo_etl/assets/belvo_dbt.py", line 85, in optimize_tables
return pipes_emr_serverless_client.run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster_aws/pipes/clients/emr_serverless.py", line 114, in run
completion_response = self._wait_for_completion(context, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/madhava/Documents/belvo/data-platform-datasets/.venv/lib/python3.11/site-packages/dagster_aws/pipes/clients/emr_serverless.py", line 226, in _wait_for_completion
raise DagsterInvariantViolationError(
What did you expect to happen?
We can add this state so it doesn't fail. Specifically to this line
How to reproduce?
Set a low limit for concurrent jobs in the EMR Serverless application and run several jobs to get some in the queue state.
Dagster version
dagster, version 1.9.9
Deployment type
Other Docker-based deployment
Deployment details
No response
Additional information
No response
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.
The text was updated successfully, but these errors were encountered:
What's the issue?
When executing EMR Serverless jobs with the PipesEMRServerlessClient, the execution fails if the step is on QUEUED state. The issue is that this state is not on the possible states here
This is the list of possible states for an EMR Serverless job https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/job-states.html
Stacktrace:
What did you expect to happen?
We can add this state so it doesn't fail. Specifically to this line
How to reproduce?
Set a low limit for concurrent jobs in the EMR Serverless application and run several jobs to get some in the queue state.
Dagster version
dagster, version 1.9.9
Deployment type
Other Docker-based deployment
Deployment details
No response
Additional information
No response
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.
The text was updated successfully, but these errors were encountered: