Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8852289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:21:42+00:00 2026-06-14T13:21:42+00:00

Our application is deployed to 2 web servers for load balancing and redundancy. We

  • 0

Our application is deployed to 2 web servers for load balancing and redundancy. We have a couple of Quartz jobs that run once every day. The job only needs to execute on one of the web servers, not both. Eventually, we will probably move these jobs to a job server but for now, is there a way via config or environment variable or something that I can do so that the jobs only run on one of my servers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:21:43+00:00Added an answer on June 14, 2026 at 1:21 pm

    In QuartzConfig.groovy you can enable or disable the Quartz plugin for specific environments.

    environments {
        runQuartz {
            autoStartup = true
        }
        dontRunQuartz {
            autoStartup = false
        }
    }
    

    so one way would be to use -Dgrails.env=runQuartz and -Dgrails.env=dontRunQuartz in your Tomcat startup parameters.

    A terrible hack would be to have your Quartz Job attempt to lock a shared database table – the job that gets the lock can run, otherwise, abort.

    I think a third option would be to use a JDBC job store, although I have no experience with using that. Briefly mentioned in the Quartz plugin docs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently, we deployed our web-application to a new set of servers. AppServer: Websphere 6.1
Our web application is deployed in a web farm (more than 20 servers). The
We currently have a Web Forms application deployed on IIS. Our goal right now
I have an ASP.Net web application that is deployed to a number of different
We have deployed our web application deployed on oracle applications server 10 and we
I have written a click-once deployed application in .Net that runs on windows machines.
We currently have an Java application that can be deployed on clients or run
I have a web application project (wap) that is successfully being deployed to a
Requirement is this ... We have our 3 web-applications deployed in RHEL-5 server, we
We need to determine a quick way for our web application deployed in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.