sync
This commit is contained in:
parent
091e790b83
commit
dc0650289d
3 changed files with 11 additions and 5 deletions
|
|
@ -67,10 +67,16 @@ export class AttachmentProcessor extends WorkerHost implements OnModuleDestroy {
|
|||
|
||||
@OnWorkerEvent('failed')
|
||||
onError(job: Job) {
|
||||
if (job.name === QueueJob.ATTACHMENT_INDEX_CONTENT) {
|
||||
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')
|
||||
onCompleted(job: Job) {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 3f219dd5ccbbd3edfd3aafb78b63a11697c9b864
|
||||
Subproject commit e71f70c29950efc02f9fe795b7d4b4c9d1060db4
|
||||
|
|
@ -804,7 +804,7 @@ export class ImportAttachmentService {
|
|||
QueueJob.ATTACHMENT_INDEX_CONTENT,
|
||||
{ attachmentId },
|
||||
{
|
||||
attempts: 2,
|
||||
attempts: 1,
|
||||
backoff: {
|
||||
type: 'exponential',
|
||||
delay: 30 * 1000,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue