-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Rest API
-
Release Notes Summary:A new scheduler management endpoint is available to list schedules, stop and start the scheduler service
-
Release Notes Description:
-
Tags:
-
Sprint:nxplatform #96
-
Story Points:5
Today to know what is periodically scheduled on a cluster it requires a mongo shell access.
We should have an endpoint to list scheduled task, like a crontab -l
If possible having a stop/start action to pause the scheduler could be very handy for debugging or benchmark purpose.
Example of interesting information
rs0:PRIMARY> db.quartz_triggers.find() { "_id" : ObjectId("64c0dc05fcec9957fd162f26"), "state" : "waiting", "calendarName" : null, "class" : "org.quartz.impl.triggers.CronTriggerImpl", "description" : null, "endTime" : null, "finalFireTime" : null, "fireInstanceId" : null, "jobId" : ObjectId("64c0dc05fcec9957fd162f25"), "keyName" : "aceScheduler", "keyGroup" : "nuxeo", "misfireInstruction" : 0, "nextFireTime" : ISODate("2023-07-26T15:20:00Z"), "previousFireTime" : ISODate("2023-07-26T15:15:00Z"), "priority" : 5, "startTime" : ISODate("2023-07-26T08:40:37Z"), "cronExpression" : "0 0/5 * * * ?", "timezone" : "UTC" } { "_id" : ObjectId("64c0dc05fcec9957fd162f28"), "state" : "waiting", "calendarName" : null, "class" : "org.quartz.impl.triggers.CronTriggerImpl", "description" : null, "endTime" : null, "finalFireTime" : null, "fireInstanceId" : null, "jobId" : ObjectId("64c0dc05fcec9957fd162f27"), "keyName" : "transientStoreGC", "keyGroup" : "nuxeo", "misfireInstruction" : 0, "nextFireTime" : ISODate("2023-07-26T15:30:00Z"), "previousFireTime" : ISODate("2023-07-26T15:15:00Z"), "priority" : 5, "startTime" : ISODate("2023-07-26T08:40:37Z"), "cronExpression" : "0 0/15 * * * ?", "timezone" : "UTC" } { "_id" : ObjectId("64c0dc05fcec9957fd162f2a"), "state" : "waiting", "calendarName" : null, "class" : "org.quartz.impl.triggers.CronTriggerImpl", "description" : null, "endTime" : null, "finalFireTime" : null, "fireInstanceId" : null, "jobId" : ObjectId("64c0dc05fcec9957fd162f29"), "keyName" : "workflowInstancesCleanup", "keyGroup" : "nuxeo", "misfireInstruction" : 0, "nextFireTime" : ISODate("2023-07-26T23:59:00Z"), "previousFireTime" : null, "priority" : 5, "startTime" : ISODate("2023-07-26T08:40:37Z"), "cronExpression" : "0 59 23 * * ?", "timezone" : "UTC" } { "_id" : ObjectId("64c0dc05fcec9957fd162f2c"), "state" : "waiting", "calendarName" : null, "class" : "org.quartz.impl.triggers.CronTriggerImpl", "description" : null, "endTime" : null, "finalFireTime" : null, "fireInstanceId" : null, "jobId" : ObjectId("64c0dc05fcec9957fd162f2b"), "keyName" : "escalationScheduler", "keyGroup" : "nuxeo", "misfireInstruction" : 0, "nextFireTime" : ISODate("2023-07-26T15:20:00Z"), "previousFireTime" : ISODate("2023-07-26T15:15:00Z"), "priority" : 5, "startTime" : ISODate("2023-07-26T08:40:37Z"), "cronExpression" : "0 0/5 * * * ?", "timezone" : "UTC" } { "_id" : ObjectId("64c0dc05fcec9957fd162f2e"), "state" : "waiting", "calendarName" : null, "class" : "org.quartz.impl.triggers.CronTriggerImpl", "description" : null, "endTime" : null, "finalFireTime" : null, "fireInstanceId" : null, "jobId" : ObjectId("64c0dc05fcec9957fd162f2d"), "keyName" : "orphanVersionsCleanup", "keyGroup" : "nuxeo", "misfireInstruction" : 0, "nextFireTime" : ISODate("2023-07-27T01:30:00Z"), "previousFireTime" : null, "priority" : 5, "startTime" : ISODate("2023-07-26T08:40:37Z"), "cronExpression" : "0 30 1 * * ?", "timezone" : "UTC" } { "_id" : ObjectId("64c0dc05fcec9957fd162f30"), "state" : "waiting", "calendarName" : null, "class" : "org.quartz.impl.triggers.CronTriggerImpl", "description" : null, "endTime" : null, "finalFireTime" : null, "fireInstanceId" : null, "jobId" : ObjectId("64c0dc05fcec9957fd162f2f"), "keyName" : "storedRenditionsCleanup", "keyGroup" : "nuxeo", "misfireInstruction" : 0, "nextFireTime" : ISODate("2023-07-26T23:59:00Z"), "previousFireTime" : null, "priority" : 5, "startTime" : ISODate("2023-07-26T08:40:37Z"), "cronExpression" : "0 59 23 * * ?", "timezone" : "UTC" } { "_id" : ObjectId("64c0dc05fcec9957fd162f32"), "state" : "waiting", "calendarName" : null, "class" : "org.quartz.impl.triggers.CronTriggerImpl", "description" : null, "endTime" : null, "finalFireTime" : null, "fireInstanceId" : null, "jobId" : ObjectId("64c0dc05fcec9957fd162f31"), "keyName" : "softDeleteCleanup", "keyGroup" : "nuxeo", "misfireInstruction" : 0, "nextFireTime" : ISODate("2023-07-26T15:30:00Z"), "previousFireTime" : ISODate("2023-07-26T15:15:00Z"), "priority" : 5, "startTime" : ISODate("2023-07-26T08:40:37Z"), "cronExpression" : "0 0/15 * * * ?", "timezone" : "UTC" } { "_id" : ObjectId("64c0dc05fcec9957fd162f34"), "state" : "waiting", "calendarName" : null, "class" : "org.quartz.impl.triggers.CronTriggerImpl", "description" : null, "endTime" : null, "finalFireTime" : null, "fireInstanceId" : null, "jobId" : ObjectId("64c0dc05fcec9957fd162f33"), "keyName" : "mailReceivedSchedule", "keyGroup" : "nuxeo", "misfireInstruction" : 0, "nextFireTime" : ISODate("2023-07-26T15:30:00Z"), "previousFireTime" : ISODate("2023-07-26T15:00:00Z"), "priority" : 5, "startTime" : ISODate("2023-07-26T08:40:37Z"), "cronExpression" : "0 0/30 * * * ?", "timezone" : "UTC" } { "_id" : ObjectId("64c0dc05fcec9957fd162f36"), "state" : "waiting", "calendarName" : null, "class" : "org.quartz.impl.triggers.CronTriggerImpl", "description" : null, "endTime" : null, "finalFireTime" : null, "fireInstanceId" : null, "jobId" : ObjectId("64c0dc05fcec9957fd162f35"), "keyName" : "blobManagerDeleteMarkedBlobsSchedule", "keyGroup" : "nuxeo", "misfireInstruction" : 0, "nextFireTime" : ISODate("2023-07-26T15:30:00Z"), "previousFireTime" : ISODate("2023-07-26T15:15:00Z"), "priority" : 5, "startTime" : ISODate("2023-07-26T08:40:37Z"), "cronExpression" : "0 0/15 * * * ?", "timezone" : "UTC" }
- is related to
-
NXP-32078 Disable scheduler during benchmark simulations
- Resolved