Broadleaf Microservices
  • v1.0.0-latest-prod

ScheduledJob Service Configuration

Overview

There are various properties you can configure when utilizing Broadleaf’s ScheduledJob Service.

Cluster Properties

Properties related to the singleton (or "active-passive") cluster configuration.

Property Description

broadleaf.scheduledjob.cluster.active

Whether singleton clustering behavior is enabled. Default is true.

broadleaf.scheduledjob.cluster.namespace

The namespace used for the Apache Camel cluster. Default is "lock".

broadleaf.scheduledjob.cluster.schedulerURI

The Apache Camel URI used to register a consumer on the master endpoint. Default is "master:lock1".

broadleaf.scheduledjob.cluster.schedulerPollingInterval

The polling interval that determines how often the Apache Camel Timer endpoint should fire the event that will cause the SchedulerService to scan the datastore and create/update Quartz jobs for each persisted ScheduledJob. Default is 30 seconds.

broadleaf.scheduledjob.cluster.missedScheduleLagThreshold

The amount of time that must pass before the system will attempt to pick up and trigger a single use job that has exceeded its target date without being marked as executed. This can occur if a job is scheduled, but no scheduling instance was up or available at the moment targeted for execution. Default is 60 seconds.

Data Properties

Properties related to JPA and persistence configuration.

Property Description

broadleaf.scheduledjob.jpa.*

JPA Configuration Properties. See com.broadleafcommerce.common.jpa.data.JpaProperties for full list of options.

broadleaf.scheduledjob.datasource.*

Datasource Configuration Properties. See org.springframework.boot.autoconfigure.jdbc.DataSourceProperties for full list of options.

broadleaf.scheduledjob.liquibase.*

Liquibase Configuration Properties. See org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties for full list of options.

broadleaf.scheduledjob.delegating.*

Delegating Schema Configuration Properties for running in a composed mode along side other Broadleaf microservices. See com.broadleafcommerce.common.jpa.data.SchemaDelegatingProperties for full list of options.

Message Notification Properties

Properties related to async messaging.

Durable Messaging for Triggered Job Events

Property Description

broadleaf.scheduledjobtrigger.notification.*

Properties for DefaultNotificationHandler. See com.broadleafcommerce.common.messaging.notification.NotificationProperties for full list of options.

broadleaf.scheduledjobtrigger.retry.*

Properties for RetryHandler for durable message retry. See com.broadleafcommerce.common.messaging.notification.RetryProperties for full list of options.