cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to write spring poller cron expression for every 1 hour 59th minute?

Former Member
0 Likes
565

Hi All,

Please help me in writing cron expression for every 1 hour 59th minute.

Thanks in advance, G Gopinath

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

The below should work (fire the task every 1hour 59 minutes):

 0 59 0/2 ? * * *
 | |   |_ every second hour
 | |_ on 59th minute
 |_ on 0 sec
VinayKumarS
Active Contributor
0 Likes

Hi Gopi,

Use below expression.

 0 0/59 0/2 ? * * *
 

  1.  Tuesday, March 26, 2019 12:00 PM
    
  2.  Tuesday, March 26, 2019 12:59 PM
    
  3.  Tuesday, March 26, 2019 2:00 PM
    
  4.  Tuesday, March 26, 2019 2:59 PM
    
  5.  Tuesday, March 26, 2019 4:00 PM
    
Marko_salonen
Contributor
0 Likes

Check this link : https://help.hybris.com/1811/hcd/ca2cdc04d69e46f0b507296574d6b083.html

Maybe "0 59 1 *" could work