 
 
 ---------------------->
+
+<!--- first, get rid of everything --->
+<cfobject type="JAVA" action="Create" name="factory" class="coldfusion.server.ServiceFactory">
+<cfset allTasks = factory.CronService.listAll()>
+<cfset numberOtasks = arraylen(allTasks)>
+<cfloop index="i" from="1" to="#numberOtasks#">
+	<cfschedule action="delete" task="#allTasks[i].task#">
+</cfloop>
+
+
+
 <cfquery name="sched" datasource="uam_god">
 	select * from cf_crontab
 </cfquery>

	'?'
);

<!----
	fetchRelatedInfo
	Purpose: Cache related-specimen information
	Cost: Extremely variable, depends on specimens created and/or in need of refresh
	Growth potential: unlimited
--->
<cfschedule action = "update"
    task = "fetchRelatedInfo"
    operation = "HTTPRequest"
    url = "127.0.0.1/ScheduledTasks/fetchRelatedInfo.cfm"
    cronTime="0 42 * * * ?"
    requestTimeOut = "600">

<!---
	pendingRelations
	Purpose: Fetch unreciprocated relationships into otherID bulkloader
	Cost: Fairly low
	Growth potential: high-ish
	Interval:
		A bare call runs for one collection.
		Each run starts fresh; old data deletes, new inserts.
		Should run for every collection every day (notifications go out daily).
		24h*60m=1440 min/day
		100 collections
		run every 10 minutes
--->
<cfschedule action = "update"
    task = "pendingRelations"
    operation = "HTTPRequest"
    url = "http://127.0.0.1/ScheduledTasks/pendingRelations.cfm"
    startDate = "#dateformat(now(),'dd-mmm-yyyy')#"
    startTime = "0:03 AM"
    interval = "600"
    requestTimeOut = "500">

<!-----------------------------------   Agent merge/delete    ------------------------------------------>
<!---
	duplicate_agents_findDups
	Purpose: Find agents marked as duplicates
	Cost: low
	Growth potential: low
--->
<cfschedule action = "update"
    task = "duplicate_agents_findDups"
    operation = "HTTPRequest"
    url = "127.0.0.1/ScheduledTasks/duplicate_agents.cfm?action=findDups"
    startDate = "#dateformat(now(),'dd-mmm-yyyy')#"
    startTime = "04:51 AM"
    interval = "daily"
    requestTimeOut = "600">

<!---
	duplicate_agents_merge
	Purpose: Merge duplicate agents
	Cost: extremely variable - can involve updating many (10s of K) rows in ~50 tables
	Growth potential: low
--->
<cfschedule action = "update"
    task = "duplicate_agents_merge"
    operation = "HTTPRequest"
    url = "127.0.0.1/ScheduledTasks/duplicate_agents.cfm?action=merge"
    startDate = "#dateformat(now(),'dd-mmm-yyyy')#"
    startTime = "05:01 AM"
    interval = "daily"
    requestTimeOut = "600">
<!---
	duplicate_agents_notify
	Purpose: Merge duplicate agents notification
	Cost: low/moderate
	Growth potential: low
--->
<cfschedule action = "update"
    task = "duplicate_agents_notify"
    operation = "HTTPRequest"
    url = "127.0.0.1/ScheduledTasks/duplicate_agents.cfm?action=notify"
    startDate = "#dateformat(now(),'dd-mmm-yyyy')#"
    startTime = "05:21 AM"
    interval = "daily"
    requestTimeOut = "600">


<!-----------------------------------   UAM Earth Science Imaging    ------------------------------------------>

	'fetchRelatedInfo.cfm',
	'600',
	'Cache related-specimen information',
	'42 minutes after every hour',
	'0',
	'42',
	'*',
