sync
This commit is contained in:
parent
091e790b83
commit
dc0650289d
3 changed files with 11 additions and 5 deletions
|
|
@ -67,9 +67,15 @@ export class AttachmentProcessor extends WorkerHost implements OnModuleDestroy {
|
||||||
|
|
||||||
@OnWorkerEvent('failed')
|
@OnWorkerEvent('failed')
|
||||||
onError(job: Job) {
|
onError(job: Job) {
|
||||||
this.logger.error(
|
if (job.name === QueueJob.ATTACHMENT_INDEX_CONTENT) {
|
||||||
`Error processing ${job.name} job. Reason: ${job.failedReason}`,
|
this.logger.debug(
|
||||||
);
|
`Error processing ${job.name} job for attachment ${job.data?.attachmentId}. Reason: ${job.failedReason}`,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
this.logger.error(
|
||||||
|
`Error processing ${job.name} job. Reason: ${job.failedReason}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@OnWorkerEvent('completed')
|
@OnWorkerEvent('completed')
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3f219dd5ccbbd3edfd3aafb78b63a11697c9b864
|
Subproject commit e71f70c29950efc02f9fe795b7d4b4c9d1060db4
|
||||||
|
|
@ -804,7 +804,7 @@ export class ImportAttachmentService {
|
||||||
QueueJob.ATTACHMENT_INDEX_CONTENT,
|
QueueJob.ATTACHMENT_INDEX_CONTENT,
|
||||||
{ attachmentId },
|
{ attachmentId },
|
||||||
{
|
{
|
||||||
attempts: 2,
|
attempts: 1,
|
||||||
backoff: {
|
backoff: {
|
||||||
type: 'exponential',
|
type: 'exponential',
|
||||||
delay: 30 * 1000,
|
delay: 30 * 1000,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue