Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Is there a limit on the amount of concurrent workflows?

Is there a limit on the amount of concurrent workflows?

Scheduled Pinned Locked Moved WCF and WF
questionworkspace
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bonkers
    wrote on last edited by
    #1

    Hi, I have an app that kicks of miltiples of the same Workflow, but it almost seems like only 5-15 concurrent workflows are running at a time. Is there a default limit to the amount of concurrent workflows and how can this limit be adjusted? Kind regards :confused:

    B 1 Reply Last reply
    0
    • B bonkers

      Hi, I have an app that kicks of miltiples of the same Workflow, but it almost seems like only 5-15 concurrent workflows are running at a time. Is there a default limit to the amount of concurrent workflows and how can this limit be adjusted? Kind regards :confused:

      B Offline
      B Offline
      bonkers
      wrote on last edited by
      #2

      It was pointed out to me that only 5 concurrent Workflows are allowed, and to fix it : In the Program file, import the System.Workflow.Runtime.Tracking namespace so that you can use the types in that namespace. C# Copy Code using System.Workflow.Runtime.Tracking; In the Program class, create a static Int32 field named maxSimultaneousWorkflows, and assign it the value 1. C# Copy Code static int maxSimultaneousWorkflows = 1; In the Main method that is defined in the Program class, add the DefaultWorkflowSchedulerService to the WorkflowRuntime. Use the AddService method, and pass the number of maximum simultaneous workflows that the DefaultWorkflowSchedulerService can schedule as a parameter. C# Copy Code workflowRuntime.AddService( new DefaultWorkflowSchedulerService(maxSimultaneousWorkflows)); Note, this was copied directly from the help file....

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups