Making OWSTimer run more frequent

We are implementing a SharePoint event receiver, attached to an email enabled announcement list.

The OWSTimer job (which is the module which "moves" the incoming emails from the SMTP server to the announcement list) runs approx once a minute.

Thus, in average, we have to wait 30 sec before an email that we send appears in the announcement list. This makes debugging our solution awkward and time consuming.

So, as the title says: Is there anyway to have the OWSTimer job do its job more frequent?

/Fredrik
gunman69Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Yagya ShreeCommented:
Use this to change your alert firing time

SPAlert properties
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spalert_properties.aspx
0
gunman69Author Commented:
I don't think you read my question. We are receiving emails, through a mail-enabled list. SPAlert is for sending alerts, something very different.
0
Rainer JeschorCommented:
Hi,
which SharePoint version and edition?
You could try to run the Powershell command mentioned here:
http://martinlangrock.blogspot.de/2012/01/powershell-script-how-to-run-timer-job.html
HTH
Rainer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Yagya ShreeCommented:
the timer job responsible to process your incoming email and sending it to list is "Timer Job job-email-delivery"

You can either run this job manually or using powershell to get the job executed quickly.
0
gunman69Author Commented:
Although I was hoping for a way to configure the job to run more frequent, this would work ok.

I wrote this script, which seems to work fine:

Add-PSSnapin Microsoft.SharePoint.PowerShell

$myJob = Get-SPTimerJob "job-email-delivery"

While ($True)
{
      Start-Sleep -Second 5
      $myJob.RunNow()
      "Started job-email-delivery."
}


Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.