This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading timeout property from database for a grail job  RSS feed

 
Amit Sharma
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

can i read timeout property from database for a grail job. Which cause it to start after that time. Here i am able to get value from database but its not running. But if i gave def timeout = 1000 , its working fine
i.e.

class GrailJob{

def timeout = 'value that i got from database in milliseconds'

def execute(){
println "YES its working "
}

}
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!