Skip to content

SNOW-2070718: Should Blocked be considered an error, as it is still running? #1159

@Jmaharman

Description

@Jmaharman

I've just seen this code and thought it odd that Blocked is considered an error, when it is actually still running? What I mean is that the Blocked status could change, which means it should be in the IsStillRunning?

internal static bool IsStillRunning(QueryStatus status)
{
    switch (status)
    {
        case QueryStatus.Running:
        case QueryStatus.ResumingWarehouse:
        case QueryStatus.Queued:
        case QueryStatus.QueuedReparingWarehouse:
        case QueryStatus.NoData:
            return true;
        default:
            return false;
    }
}

internal static bool IsAnError(QueryStatus status)
{
    switch (status)
    {
        case QueryStatus.Aborting:
        case QueryStatus.FailedWithError:
        case QueryStatus.Aborted:
        case QueryStatus.FailedWithIncident:
        case QueryStatus.Disconnected:
        case QueryStatus.Blocked:
            return true;
        default:
            return false;
    }
}

Metadata

Metadata

Labels

bugstatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions