Skip to content

Commit

Permalink
show the traceback of the cause, it's clearer (#3042)
Browse files Browse the repository at this point in the history
* show the traceback of the cause, it's clearer

* retry for backfill
  • Loading branch information
severo authored Aug 22, 2024
1 parent e7fa2e0 commit fc2f2b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions libs/libcommon/src/libcommon/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
LARGE_MAX_FAILED_RUNS = 30 # for errors that should not be permanent
MAX_FAILED_RUNS_PER_ERROR_CODE = {
# default
"DatasetGenerationError": DEFAULT_MAX_FAILED_RUNS, # <- 20240822: to recompute all of them in the next backfill
"ConfigNamesError": DEFAULT_MAX_FAILED_RUNS, # <- 20240822: to recompute all of them in the next backfill
"RetryableConfigNamesError": DEFAULT_MAX_FAILED_RUNS,
"ConnectionError": DEFAULT_MAX_FAILED_RUNS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,9 @@ def compute_config_parquet_and_info_response(
except datasets.exceptions.DatasetGenerationCastError as err:
raise DatasetGenerationCastError("The dataset generation failed because of a cast error", cause=err) from err
except datasets.exceptions.DatasetGenerationError as err:
raise DatasetGenerationError("The dataset generation failed", cause=err) from err
if err.__cause__:
raise DatasetGenerationError("The dataset generation failed", cause=err.__cause__) from err
raise DatasetGenerationError("The dataset generation failed") from err

raise_if_long_column_name(builder.info.features)

Expand Down

0 comments on commit fc2f2b1

Please sign in to comment.