1

I have a SharePoint farm solution in VS2013 for SharePoint 2013. It contains two timer jobs, and each has their own feature definition. Once it has deployed to the development SharePoint server locally, both jobs are showing with the same title in Job Definition.

In the event receiver of each feature definition, in FeatureActivated, I have created a new Job with a different name in code.

Anyone has any idea?

1 Answer 1

1

multiple jobs showed in the Jobs defination or multiple jobs run? usually multiple jobs due to more than one content DB in a web App. so if you have morethan one content db then timer job will run multiple time. alos check my response here,i mentioned how to prevent the custom jobs to run multiple time.

5
  • I have one content DB. It shows two entries with the same title in "Jobs Definition" and they have different schedule just like how I have specified in the FeatureReceiver. I have checked both FeatureReceiver, they have different GUID and I have very sure I have passed a different name when I create the Job in code.
    – Ronald
    Dec 23, 2013 at 7:42
  • how many webapp you have and how many servers in farm?
    – Waqas Sarwar MVP
    Dec 23, 2013 at 16:31
  • One webapp and one server
    – Ronald
    Dec 30, 2013 at 2:17
  • did you go through this blog post: blog.rafelo.com/2009/04/10/…
    – Waqas Sarwar MVP
    Dec 30, 2013 at 22:36
  • It is not one Timer Job runs multiple times, my problems is two Timer Job listed with the same name, and their schedule are exactly like how I set them up in visual studio, but their name should not be the same. Screen shot from Job Definition: app.box.com/s/s6vklm2550dool65c41z
    – Ronald
    Jan 2, 2014 at 8:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.