grouper-users - [grouper-users] Schedule a job to run later via quarts and java?
Subject: Grouper Users - Open Discussion List
List archive
- From: "Black, Carey M." <>
- To: " Mailing List" <>
- Subject: [grouper-users] Schedule a job to run later via quarts and java?
- Date: Fri, 21 Sep 2018 18:43:07 +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:puV0eB9d+OfRzf9uRHKM819IXTAuvvDOBiVQ1KB+0+seIJqq85mqBkHD//Il1AaPAd2Eraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HRbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRHolikJKiI5/m/UhMxxkK1Vrx2uqgdjw47NfI2ZKOZycr/Dcd4cWGFPXtxRVytEAo6kYYcCEu4BMvxEoIn+v1cFsAWzChO2BOzxyj5Dm3j40bc03+88FgzJxwggEMgSv3TXttn5KbkeXO6uwanP1jXDcula1ing54jVax0sp+yHU7x3ccrU00YvFgXFg02fqYz/ODOVy/wNvHaB7+Z6T+2vk3Ynpxloojiy3MgskJXJh4MMxlDf6Sp5wJg6KsClSE5/f9GkCoFctyaAN4t5RM4pXmJmuD4ix7EYo5G3YDUGxZE6yxLCdvCKdoaI7x3/WOqNJDp4imxqdb2wihu39EWtyPDwWdKs3FpUoSdJiMfAumwO2hDJ9MSLVPVw8l281TuN1A3f8u9ELl43mKbHLpMsx6I/mYcOvkvYGyL2lln5gauIeUgh++Wk9+Xqb7Xjq5KcKYB5hQfzObk0lMOlG+Q3KA0OUnCb+eui0L3j+lX0Tq1Wg/MxjqXVronWK9kDqKKkGgNV1Z0s5AilAzehzdQYgWIILFVYeBKBkoflIUnOIOr/DfejnVujjCtrx/HBPr3nGJnNKWXDkKvlfbZ67E5cyxA/wsxY55JREr0BIfTzVVHttNHAEBM2KRC4z/viBdlgy48SRGeCAqGWPa/OrVOF4+wvLPeDaYIavTvwLvoo6+P1gnMhnF8SZ6ip3Z8ZaHCiGfRmJl2UbmHogtgbDWgKvRAyQPH0hFCMSjNTYG2yX78m6j4lFY2mEJ/PRpqxj7yZwCe7AppWa3hJClCWFnfoap2EVOkWaC6LP89hiSILVaK6S4I60RGutRT6y6Z8LubK4CEYtJTj1MRr6O3JkxE96yB0A9qH326TUm50gzBAezhjlq9lplFlx03GzLN1medwFNpP6ulPXxtgc5PQ0qRfAtH2WwTONvOIU0rsCoGpGzYsVt8rhsIVblxmM9Skkh3Z2Se2WfkYm6HdV7Iu9aeJlVL1Ls1+jz7t3bMsnhEDBIEHYWeij6V8sVGJXKbOiFjfmqq3I/dPlBXR/XuOmDLd9HpTVxR9BP2fByIWe1fWoNLl50jLU76pD/E9PxBczdKZc/oTOMbxgwBeTez4cJTFbmS9ln34JC7Ax6jENdC6PTxBgmOEVhNCyl9SmBTOLg0iHmGkqmPaAiZpEAfoeF6q/OVj+zu6SFM51QeHcxcn2raoqVYZhv2ZHusaxalM+DwgpDN9AEun0prJAsHIuQd7fatdbN98hTUP1W/QuwFneJD1KLt/wFMSbld2uV/jzRN6Ft8GnMQ3/zsmyQNoIveA2UhaPzqTwZH3POjRLW//tBCiYqLbwBfQytGTr6AU9bI1p0iwsQ==
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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
- [grouper-users] Schedule a job to run later via quarts and java?, Black, Carey M., 09/21/2018
- [grouper-users] RE: Schedule a job to run later via quarts and java?, Black, Carey M., 09/21/2018
- [grouper-users] RE: Schedule a job to run later via quarts and java?, Hyzer, Chris, 09/24/2018
- [grouper-users] RE: Schedule a job to run later via quarts and java?, Black, Carey M., 09/21/2018
Archive powered by MHonArc 2.6.19.