Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Disable loader jobs

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Disable loader jobs


Chronological Thread 
  • From: "Redman, Chad" <>
  • To: Andrew Morgan <>, "" <>
  • Subject: RE: [grouper-users] Disable loader jobs
  • Date: Thu, 19 Apr 2018 14:43:04 +0000
  • Accept-language: en-US
  • Authentication-results: orst.edu; dkim=none (message not signed) header.d=none;orst.edu; dmarc=none action=none header.from=unc.edu;
  • Ironport-phdr: 9a23:xGZeCx9dDac2p/9uRHKM819IXTAuvvDOBiVQ1KB+0+kQIJqq85mqBkHD//Il1AaPAd2Araocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HdbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDtU7s6RSqt4LtqSB/wiScIKTg58H3MisdtiK5XuQ+tqwBjz4LRZoyeKfhwcb7Hfd4CRWRPQNtfVzBPDI2/YYsADesBMvpXoYbyvFYOsQK+CRWwCO/z1jNEmHn71rA63eQ7FgHG2RQtE9wSvnvKsdr1Mb0dUeatwKLV0zjDb+lZ1irz5IPVdR0uvfGMUqhtfsXJ00kgCR7KjlCKpozjJD6Vy+INvHSB4+V+SO2vlncqpgdsqTahwccsj5PGhoMTyl3c8iV4zoA1KsOiSE50e96kF4ZQtzmAO4twWMwiRn9ntD49yr0cp5G7cy8KyJI8xx7DcfOHb5aH7gj9W+mMPDd1gm9udrGnhxuq7ESs1uLxWtO73VtItCZInMfAumoP2hHQ8sSLV/tw8lm71TqRzQzf9/1ILV4umabGJJMswaY8lpQNvknAAiP7nUD7ga6Lekgn5Oel7vjob7b8qZ+SMoJ5hA7zP6Url8G+Hes0LBUBUm6G8uqmzrLj51f2QLBSg/02jKbZtJfaKNwDqKOlBAFZzpsv5w+iATm+zdgUhH4HI0lbdx6diIjpJk3OL+v/DfeihVSjjS1nx+jcPr3mHpXCMGTMkKvgfbZ67U5Q0g0zzc1D55JQDbEBJ/HzVlXtu9zfCx81Kw20w+D5B9Vhzo4SRH6DD6CDPK7ds1KE/OwiL/eWaIIXuzvxM/0l6OTvjX89l18dZ66p3Z4PZX+kHvRpOViWbmL2gtgfDGgKuxAxTOrxhV2fVz5ce2y+ULwh6TEmEI6mF5vMRpixgLyd2ye2BpJWZnpBClCRCXfnaZ+EV+4RaCKJPMBhiCcEWKOlS48gzhGuqBT6x6R9IurV/C0YqYzs1MJz5+LNiRE+6yZ4ANqA3GGQHClImTYhQTMs0b83hEtnxV6Fmfx9hOZXHNp74OlSTkE3OYOKi6QwBMr1RxrMZJKUU1u8Wf2nBy08VNQ834VIbkpgUZ32gQrEwjKnGfoIjLGRH7Q19L7RxX78O5w7xnrbgvoPlV4jF4F1OGGjj6g7vyPTDoKD2xGSl6+mQr4R0CvE8k+ey2HIsU1FBl0jGZ7ZVGwSMxOF5e/y4VnPGvr3Uewq
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

I'm wondering this too. I have always just changed the schedule to year 2099
and then back to the original, which doesn't scale well.

This groovy-based GSH script is at least a start of a query, but it depends
on the type of job and the attribute names. I'm not sure if the
legacyAttribute name is in everyone's instance or just ours. Someone please
reply with something more elegant it if exists.


// Group Loader
attrAssigns =
GrouperDAOFactory.getFactory().getAttributeAssign().findAttributeAssignments(
AttributeAssignType.group,
null,

AttributeDefNameFinder.findByName("etc:legacy:attribute:legacyGroupType_grouperLoader",
true).getId(),
null,
null, null, null,
null,
true, false)

attrAssigns.each { a ->
println
a.getAttributeValueDelegate().retrieveValueString("etc:legacy:attribute:legacyAttribute_grouperLoaderQuartzCron")
+ "\t" + a.ownerGroup.name
}

// 0 25 8,12,20 * * ? 2099 etc:loader:sample_loader



// Ldap Loader
attrAssigns =
GrouperDAOFactory.getFactory().getAttributeAssign().findAttributeAssignments(
AttributeAssignType.group,
null,
LoaderLdapUtils.grouperLoaderLdapAttributeDefName().getId(),
null,
null, null, null,
null,
true, false)

attrAssigns.each { a ->
println
a.getAttributeValueDelegate().retrieveValueString(LoaderLdapUtils.grouperLoaderLdapQuartzCronName())
+ "\t" + a.ownerGroup.name
}


-Chad


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


[mailto:]
On Behalf Of Andrew Morgan
Sent: Wednesday, April 18, 2018 6:57 PM
To:

Subject: [grouper-users] Disable loader jobs

Is there an easy way to disable loader jobs?

Our Banner team is going to re-stage tables in our ODS this weekend, and
these tables drive views for many Grouper loader jobs. For safety, I want
to disable the loader jobs while this is happening. However, I need other
Grouper changes to continue to be processed, such as updates out to AD and
LDAP from the PSP (changelog consumers).

I know I can modify the cron schedule for each loader job, but that gets a
little tedious to do through the UI for 40 or so loader jobs.

Is there any GSH to list all loader jobs? A GSH way to dump the existing
schedule to the screen and set the schedule to a new value?

Thanks!

Andy Morgan
Systems Administrator, Identity & Access Management
Information Services | Oregon State University
541-737-8877 | is.oregonstate.edu



Archive powered by MHonArc 2.6.19.

Top of Page