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

  • Home
  • SEARCH
  • 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 6023003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:56:28+00:00 2026-05-23T03:56:28+00:00

I have a Play! Framework Job that executes every 30 seconds: @Every(30s) public class

  • 0

I have a Play! Framework Job that executes every 30 seconds:

@Every("30s")
public class MyJob extends Job { ... }

This job does a few things such as reading e-mails and writing to the DB. However, it is possible that the job may not finish within 30 seconds. If the job takes longer than 30 seconds, I would like to kill the subsequent job that tries to start while the original job is still in progress. Is there a way to do this? or even pause the subsequent job until the original completes its work?

  • 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-05-23T03:56:28+00:00Added an answer on May 23, 2026 at 3:56 am

    as far as I know you don’t have to kill the job. I created a job than had to run every minute, but in some scenarios it could (potentially) run for longer than a minute.

    I did some testing, and be aware that I may have done them in the wrong way, but Play doesn’t launch a new instance of the Job if it is already running. Once the job finishes, it will run the next instance in the expected time. Take it as if Play treats Jobs as “Singletons”, only 1 of a given type active at a given time.

    So, no, you don’t need to kill or check anything. Awesome, isn’t it? 😉

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

Sidebar

Related Questions

I have a playframework Job class like this: public class ImageDownloader extends Job {
Does play framework server have a rewrite_mode functionality like apache? That is: how can
I'm using Play Framework, and have the following code: import org.hibernate.exception.ConstraintViolationException; ... public class
I am using the AVAudioPlayer framework, and I have several sounds that play one
I have a Play Framework application that sends emails using SMTP server. Now I
We have recently started to see this exception while running the play framework in
Does play framework have anything like quickly generator of models by schema? I like
I have a small site I built using the Play framework that I'm trying
I use the in-memory database that comes with Play Framework, when I have db=mem
Using play framework 1.2.4 with scala. I have few play jobs that looks like

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.