Skip to content

the task abnormal information cannot be displayed. #4535

@fanpocha

Description

@fanpocha

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

When the task runs abnormally, the abnormal information cannot be displayed.
The repair method is as follows:

  1. Found file: dinky web \ src \ pages \ DevOps \ JobDetail \ JobLogs \ components \ ExceptionTab.tsx
  2. The modified content is as follows:
    // logs.push(...(jobDetail.jobDataDto?.exceptions?.['exceptionHistory']?.['entries'] ?? []));
    const exceptions = jobDetail? .jobDataDto? .exceptions || {};
    const exceptionEntries = exceptions? .exceptionHistory? .entries || [];

if (exceptionEntries && exceptionEntries.length > 0) {
//Convert abnormal entries to logs format
const convertedEntries = exceptionEntries.map((entry, index) => {
console.log(Entry ${index}:, entry);
return {
taskName: entry.exceptionName || Exception ${index + 1},
stacktrace: entry.stacktrace || '',
exceptionName: entry.exceptionName || 'Unknown Exception',
timestamp: entry.timestamp || Date.now(),
location: entry.location || ''
};
});

logs.push(...convertedEntries);
console.log('Converted entries:', convertedEntries);
}

What you expected to happen

How to reproduce

Anything else

No response

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions