[Building Sakai] auto schedule a Quartz job

Matthew Jones jonespm at umich.edu
Sun May 9 07:06:23 PDT 2010


I've never set up a job quartz job to run like this, but my guess you could
just use the same process the job scheduler UI uses to create these cron
triggers?

processCreateTrigger() in
https://source.sakaiproject.org/svn/jobscheduler/trunk/scheduler-tool/src/java/org/sakaiproject/tool/app/scheduler/SchedulerTool.java

Looks like it goes through
org.sakaiproject.component.app.scheduler.TriggerWrapperImpl

<http://www.docjar.com/docs/api/org/quartz/CronTrigger.html>-Matthew

On Sun, May 9, 2010 at 7:30 AM, Steve Swinsburg
<steve.swinsburg at gmail.com>wrote:

> So how do I configure the job to automatically run at a specified time?
>
> I don't want an administrator to have to go to the Job Scheduler to set it
> up (but they should be able to tweak it from there). I guess I could add the
> trigger details to the relevant tables but there's got to be a way to do
> this programmatically.
>
> cheers,
> Steve
>
>
>
> On 09/05/2010, at 9:23 PM, David Horwitz wrote:
>
> > The stateful job just means that it will only ever run one job at a time
> > - the ordanary job could, depending on your triggers, run multiple times
> ...
> >
> > D
> >
> > On 05/09/2010 01:05 PM, Steve Swinsburg wrote:
> >> Hi all,
> >>
> >> I have a Quartz job that I'd like to be able to auto schedule, ie via
> some Spring config/sakai.properties so that I can deploy it into a Sakai
> instance and it will be configured ready to go. I've looked at the
> StatefulJob, not sure if thats what I need though, as I don't need to
> maintain any state between runs, just have it run at a predetermined time.
> >>
> >> Has anyone come across this or done something similar?
> >>
> >> cheers,
> >> Steve
> >>
> >>
> >> _______________________________________________
> >> sakai-dev mailing list
> >> sakai-dev at collab.sakaiproject.org
> >> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> >>
> >> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
> >>
> > _______________________________________________
> > sakai-dev mailing list
> > sakai-dev at collab.sakaiproject.org
> > http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> >
> > TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100509/c900e666/attachment.html 


More information about the sakai-dev mailing list