Skip to content

DM-55282: Add additional info about max number of cosmic ray spans in TooManyCosmicRays exception.#1325

Open
erykoff wants to merge 1 commit into
mainfrom
tickets/DM-55282
Open

DM-55282: Add additional info about max number of cosmic ray spans in TooManyCosmicRays exception.#1325
erykoff wants to merge 1 commit into
mainfrom
tickets/DM-55282

Conversation

@erykoff

@erykoff erykoff commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Maximum number of cosmic ray spans allowed.
"""
def __init__(self, maxCosmicRays, **kwargs):
def __init__(self, maxCosmicRays, maxCosmicRaySpans=-1, **kwargs):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, so it's not an API change?

"""
def __init__(self, maxCosmicRays, **kwargs):
def __init__(self, maxCosmicRays, maxCosmicRaySpans=-1, **kwargs):
msg = f"Cosmic ray task found more than {maxCosmicRays} cosmics."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message should be updated (to either identify which condition wasn't met or at least indicate it was one of two...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants