The cron job is repeatedly logging error messages.

Created on 23 September 2024, about 2 months ago

Problem/Motivation

An issue arises if a user deletes assets from both the Drupal site and Widen DAM before the deletion queue is processed. When the deletion queue is processed, it attempts to make an API call using the asset ID (which has already been deleted from DAM), resulting in an exception.

The cron job is repeatedly logging errors because it attempts to process the queue, which triggers the removeIntegrationLink method. However, the queue processing fails to complete due to an error, causing the cron job to retry processing the queue on its next run. This results in duplicate error log entries.

Steps to reproduce

  • Setup site with acquia_dam 1.1
  • Add asset from DAM
  • Run cron - This will add integration link to DAM asset.
  • Delete the attached media from site as well as from DAM
  • Run cron - This will try to delete integration link from DAM (by making api call with asset ID which has already been deleted from DAM)
  • Check the db log, you should see the error.

Proposed resolution

Provide MR

๐Ÿ“Œ Task
Status

Active

Version

1.1

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia chandu7929 Pune

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024