Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Schedule a job to run later via quarts and java?

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Schedule a job to run later via quarts and java?


Chronological Thread 
  • From: "Black, Carey M." <>
  • To: " Mailing List" <>
  • Subject: [grouper-users] RE: Schedule a job to run later via quarts and java?
  • Date: Fri, 21 Sep 2018 18:54:00 +0000
  • Accept-language: en-US
  • Authentication-results: spf=pass (sender IP is 128.146.163.17) smtp.mailfrom=osu.edu; internet2.edu; dkim=pass (signature was verified) header.d=osu.edu;internet2.edu; dmarc=pass action=none header.from=osu.edu;
  • Authentication-results-original: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:hfoUOhSwjw4VkgUumo/i9Gig/Npsv+yvbD5Q0YIujvd0So/mwa6zbBaN2/xhgRfzUJnB7Loc0qyK6/+mATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbF/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/mHJhMJtkKJVrhGvpxJ9zI7VfI6bO/Vxc7jBfdMDWWZNQtpdWzBfDo66coABD/ABPeFdr4TlqVcDsB++ChOwC+Ps0jNDm2H70rcg0+s/EQDNwQsuE8gAvH/Jq9j6L6MSXvqpw6nL1znPcu1a1Dnm5YjPaRAhvOuAUqxtfsrM0EQiER7OgFuXqYzgJTyV1+INvnCU7+p6UuKvlnYnpB9rojS13MgskpHJipoMylDZ7yp52po1JNyhRE5gfdGkEIVfuDyHN4tyXMwiWXtkuCEgyr0Jv5OwYSsEyIw/yhLCd/CKfJKE7x3hWeqLLzp1imhpdK+hixuw6USs1OLxWtOq3FpWrSdJiMfAum4D2hDJ98SKSPhw8l+v2TmR1A3f9uRJLEUomqXGNpEu2bs9lpQPvknHACD7nUT7gLOXe0gk/+Wl6/rob7rgq5SBLYF7kBv+Pb4rmsGnAeQ3LAwOX2+D9OqkyLDt+lH1TKhTgvAriqfUvonWJcMAqaGnGQNV1Zsj6wqkADehzdQYm2QIIEhdeBKdiIjpJ0/BL+zkDfe+hFSsli1nx/fbPr39BpXNKX/DkLT7cblh7E5czRI/zdFZ551KFrEMOO//VlP+udDCARI0MRa4zujpBdlny48SR2CCDrecMKzIsF+I4uwvI/OLZI8QoDvyMPwl6OTygn86g1MRYLel0JUMZXC/BfRmPl+VbmTxjdccCWsKpBYxTPT2iF2eVj5ef3myX7g75jEmEIKpE53DSpmwgLyawii7BIZWa3tCClCNCnfoa56EV+kWZCKTJM9hjiILVaKnS4A/yRGiqhX2xKR6IerJqWUkssep28Jy+vXej1Qv7jFuFOyc1X2AVWd5gjlOSjMrlIV2oEh8zFjL9aljn7YQQdNJ4O5RXx1/KIXR1fdSCtbuVxjHc8vTDluqX4P1Lys2S4d76dsHaEU5U/6rlB3Slw/sSfdBnbiCD59yq/iH93/qOoBwx2uQh/pptEUvXsYabT7uvaV47QWGX9STwUyEi6anc7gd1yfR9WCFiHCDp1xcTBUpAPyXRmgRM1Pfts+xpljPSbOjE/wGCkNA0obbcPsMM4G3ywwYH7G6Z5W7ASqqnnuoQxOBx7eCdo3vLmIGwWPQBFVX2wEV4XucMwUiXGGsr3+NRDBtFFe6e0r36qE+s3K0SEYo0huHJ1JozPKr9wQUi/2RR7J2vPoEtS4tpi8yEAO6xM+QBtad9AtnYKhGZ94huhFK2X+K/wB4N4arerhrnUVWeg9rvkToghNwDIgIkcUjoH4wigRoLqfN10hcMT6UwMP9
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Sorry.. wrong method ref... (copy/paste error...)

Create a version of:
edu.internet2.middleware.grouper.app.loader.GrouperLoader.scheduleOtherJobs()
That calls:
-->
edu.internet2.middleware.grouper.app.loader.GrouperLoader.scheduleJobIfNeeded(JobDetail,
Trigger)


--
Carey Matthew



-----Original Message-----
From:


<>
On Behalf Of Black, Carey M.
Sent: Friday, September 21, 2018 2:43 PM
To:

Mailing List
<>
Subject: [grouper-users] Schedule a job to run later via quarts and java?

If I have a loader job ( or built in job ) is there a way to programmatically
schedule it to run at some time in the future?
( Example: in 10 minutes from now run the Unresolvable Subject
Deletion Utility (USDU)")
I can do the USDU job via cron (or at) at the OS level, but it could
be helpful to trigger such things from inside a Change Log Consumer or GSH
scripts.

Yes I know I can run them "now". (AKA loaderRunOneJob()) The trick that I am
talking about here is to delay the "now" until "later". ( And to be really
fancy, see if It was already scheduled so that the job is not run multiple
times in a short period of time.)




REF:
http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-01.html
REF: I am looking at
edu.internet2.middleware.grouper.app.loader.GrouperLoader.scheduleChangeLogTempToChangeLogJob()
as an example.

Maybe another way to ask this might be:
Is there an acceptable interface to get ahold of the Scheduler so
that I could add a "local job" to it?
Or is that "behind the curtain" and I should look elsewhere for my
needs?

Thinking about ideas like:
Custom reports/exports/checks that need to be triggered by
user event and/or other run time conditions.
Set an attribute "ReportRequest" =
"EmailMeReport-GoodUsers" (on a group or folder context) and a report is run
and an email shows up to the user.
Etc...

--
Carey Matthew






Archive powered by MHonArc 2.6.19.

Top of Page