Telligent has a Windows Service job which can be run to offload some of the Tasks / Job processing from your web server... The most common configuration is to use the task server for running the Enterprise Search Indexing jobs, although you could use it to do your Search Barrel Indexing as well...
The second most common item is to use the tasks service to send outgoing emails... Communityserver queues emails into the SQL database by default, and uses a "job" to send them.
The key to using the Telligent tasks service for a job that normally runs under the web site is setting up the CommunityServer "context" in the task service...
This involves copying a few items your cs site folders, into the tasks service folder:
It is not necessary to remove any tasks from your communityserver.config, as the tasks service loads its task list from the tasks.config file...
Finally you need to edit the tasks.config to set up the cs context object for your site.. To the tasks.config file
Add to the \tasks node:
<Sites> <add name="[AppName from your aspnet_Applications table] " siteUrl="[site url without http://]" /> </Sites>
and
<Modules> <add name="SiteSettingsModule" type="Telligent.Tasks.CommunityServer.SiteSettingsModule, Telligent.Tasks.CommunityServer" /> <add name="ServiceTaskModule" type="Telligent.Tasks.ServiceTaskModule, Telligent.Tasks" /> </Modules>
and then you should be able to configure the email task by adding a thread to the \tasks\threads node
<Thread minutes="5"> <task name = "Emails" type = "CommunityServer.MailRoom.Components.EmailJob, CommunityServer.MailGateway.MailRoom" enabled = "true" enableShutDown = "false" failureInterval = "1" numberOfTries = "10" /> </Thread>
This will use the SMTP server set in your database (its set via the administration section of the CommunityServer Control Panel / Settings / Email Settings; and send your emails to the SMTP server every 5 minutes.
Dan
Hi Dan,
Is this specific for CS2008? We currently use tasks for email and search with the following tasks.config, do we need the SiteSettingsModule?
<Tasks>
<Modules>
<add name="ServiceTaskModule" type="Telligent.Tasks.ServiceTaskModule, Telligent.Tasks" />
</Modules>
<Threads>
<Thread minutes="5">
<task name="Emails" type="CommunityServer.MailRoom.Components.EmailJob, CommunityServer.MailGateway.MailRoom" enabled="true" enableShutDown="false" failureInterval="1" numberOfTries="10" />
</Thread>
<Thread minutes="15">
<task name = "ES.SearchJob" type = "CommunityServer.Enterprise.Search.SearchJob, CommunityServer.Enterprise.Search" count = "10000" enabled = "true" optimize = "false" enableShutDown = "false">
<add type = "CommunityServer.Enterprise.Search.WeblogIndexTask, CommunityServer.Enterprise.Search" />
<add type = "CommunityServer.Enterprise.Search.FilesIndexTask, CommunityServer.Enterprise.Search" />
<add type = "CommunityServer.Enterprise.Search.ForumsIndexTask, CommunityServer.Enterprise.Search" />
<add type = "CommunityServer.Enterprise.Search.GalleryIndexTask, CommunityServer.Enterprise.Search" />
</task>
<Thread minutes="360">
<task name = "ES.SearchOptimizer" type = "CommunityServer.Enterprise.Search.SearchOptimizer, CommunityServer.Enterprise.Search" enabled = "true" enableShutDown = "false" />
</Threads>
</Tasks>
Where can we download the Windows Service? I noticed that the download only includes the Telligent.Tasks dll and not the service
@Dave... The Enterprise Search Job basically does the same funciton as this module... if however, you were to try to run the email job without also running the search jobs, it wouldnt see your cs site and would run but do nothing.
This was an issue that was introduced in the CS2007 version when we converted from jobs to tasks... It also applies to CS2008
@Jay... You need to download the Telligetn.TasksService. The "EnterpriseSearch" download comes with an MSI to install the tasks service.