consider the following codes:
class MyJob {
def execute() {
println "Hello at->"+new Date()
}
}
when I run this code it starts running every minute without assigning any trigger. How could I disable this property? I want to start this job whenever I make my trigger.
If you want to disable the default trigger and not assign a trigger at startup then you just need an empty triggers closure in the class.
That will assign the closure’s triggers, which are none, to the job instead of the default trigger.