• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need to run a schedule task only once in betweeen mentioned hours.

 
Ranch Hand
Posts: 57
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I need to run a schedule task only once in betweeen mentioned hours.
For the below configuration My service class method transferLookUpData() is executing for every one minute daily.

Now I try to run this daily once between 9pm to 12pm. To acheive this i tried

But even the server time not between 21hr - 24hr it is executing. More over I need to run this scheduler only once in between 21hr and 24hr.
Please suggest the cron format for this.
 
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Only 0-23 are allowed for hour. Please try 21-23 and see if it works.
 
reply
    Bookmark Topic Watch Topic
  • New Topic