Skip to content

Commit

Permalink
Improve display for "queueing-error" (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke authored Nov 6, 2024
1 parent e8dc14d commit 5962d46
Showing 1 changed file with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,23 @@ export function BlastWorkspaceResult(props: Props) {
) : jobResult.value?.status === 'error' ? (
<BlastRerunError {...props} />
) : jobResult.value?.status === 'queueing-error' ? (
<ErrorPage message="We were unable to queue your job." />
<ErrorPage>
<div style={{ fontSize: 'larger' }}>
Your job did not run successfully. Please{' '}
<Link
target="_blank"
to={{
pathname: '/contact-us',
search: new URLSearchParams({
ctx: 'multi-blast job ' + jobResult.value.job.id,
}).toString(),
}}
>
contact us
</Link>{' '}
for support.
</div>
</ErrorPage>
) : queryResult.value?.status === 'error' ? (
<BlastRequestError errorDetails={queryResult.value.details} />
) : jobResult.value.job.config.tool.startsWith('diamond-') ? (
Expand Down Expand Up @@ -169,7 +185,23 @@ function StandardBlastResult(
<BlastRequestError errorDetails={reportResult.value.details} />
) : reportResult.value != null &&
reportResult.value.status === 'queueing-error' ? (
<ErrorPage message="We were unable to queue your combined results report." />
<ErrorPage>
<div style={{ fontSize: 'larger' }}>
We were unable to create your combined results report. Please{' '}
<Link
target="_blank"
to={{
pathname: '/contact-us',
search: new URLSearchParams({
ctx: 'multi-blast job ' + reportResult.value.report.jobID,
}).toString(),
}}
>
contact us
</Link>{' '}
for support.
</div>
</ErrorPage>
) : individualQueriesResult.value != null &&
individualQueriesResult.value.status === 'error' ? (
<BlastRequestError errorDetails={individualQueriesResult.value.details} />
Expand Down

0 comments on commit 5962d46

Please sign in to comment.