Skip to content

Content monitoring job processes only one configured monitor, ignoring all subsequent monitors #8781

Description

@yacdaniel

CI Number

No response

Duplicates

  • I have searched the existing issues

Latest version

  • The issue is in the develop branch
  • The issue is in the latest released version
  • The issue is in an older release (specified in the ticket)

Describe the issue

When multiple <monitor> blocks are configured inside <contentMonitoring>, the background job only executes and outputs data for a single monitor. Even though there is matching content matching the query rules of other configured monitors, no email notifications are triggered for them, and the /api/2/sites/monitor endpoint only outputs the same single monitor instance.

Steps to reproduce

Steps:

  1. Content monitor is enabled by default in the Project Configuration XML, <contentMonitoring> block (e.g., Content Expiring Tomorrow, Content Expiring In One Week, etc.).
  2. Update the cronjob for the monitor content to run each minute. In Global Config add studio.monitoring.content.cron: '0 */1 * * * ?' # Every one minutes
    3.Ensure there is at least one content item that meets the date criteria for each respective monitor's query.
  3. Wait for content monitoring job, then invoke the API endpoint:
    {{baseUrl}}/api/2/sites/monitor
  4. Review the received email notifications and the API JSON response payload.

Relevant log output

Screenshots and/or videos

No response

Metadata

Metadata

Assignees

Type

Projects

Status
Test and Validate

Relationships

None yet

Development

No branches or pull requests

Issue actions