Scheduler and email processing stop in AEM as a Cloud Service
Adobe Experience Manager as a Cloud Service (AEMaaCS) may stop processing scheduler jobs and email notifications when queued jobs, invalid recipient values, or incorrect scheduler execution calculations after an environment restart cause processing to stall. To resolve the issue, clear stalled jobs, verify scheduler processing and recipient values, review misfire handling and execution intervals, and confirm that the environment is stable.
Description description
Environment
Adobe Experience Manager as a Cloud Service (AEMaaCS), all versions
Issue/Symptoms
- Most AEM functionality in affected environments is unavailable or degraded.
- OSGi services, the Developer Console, and the environments may not function as expected.
- Scheduler jobs queue up and aren’t processed.
- The export-report scheduler and dependent email scheduler fail to run.
- Reports are generated, but associated emails aren’t sent.
- The issue may occur after an environment restart.
- Invalid recipient values or scheduler execution timing may be associated with the issue.
Root cause
The outage is typically caused by a combination of queued scheduler jobs, invalid recipient values in report requests, and incorrect scheduler execution calculation after an environment restart. This causes email processing to stall and functionality to remain unavailable until manual intervention.
Resolution resolution
Follow the steps below to resolve the issue:
- Identify and clear queued or stalled scheduler jobs in the affected environment. Review the job queue and manually remove problematic jobs if necessary.
- Confirm that the job consumer resumes processing and that scheduler executions are restored. Monitor the system to ensure that jobs are picked up as expected.
- Monitor the export-report scheduler and dependent email scheduler to ensure that they run as expected. Verify that reports are generated and associated emails are sent successfully.
- Validate recipient values when report requests are created to prevent invalid entries from causing scheduler failures.
- Review scheduler misfire handling, especially after environment restarts, to ensure that missed executions are managed correctly.
- Adjust scheduler intervals as needed, for example, 15-minute or 30-minute intervals, and ensure that the configuration is consistent across all affected environments.
- Set up monitoring and alerting for business-critical schedulers to detect missed executions or stalled jobs promptly.
- After recovery, verify that the environment is stable and that all critical functionality is restored.