Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Does plugin get its own 2 min timeout?

(0) ShareShare
ReportReport
Posted on by

Hello I have a question I'm hoping someone can answer as i cant seem to find a definitive answer anywhere.

I have a plugin that is often hitting the 2 min timeout, there is a large amount of processing that is included in this plugin that can be handled asynchronously and is not required for the synchronous section of the plugin.

if I create a new global action that accepts parameters, and pass data to this that then calls a newly created asynchronous plugin will this plugin have its own 2 minute limit? 
if not is there a way to do create this as a new session?

  • Suggested answer
    Venkatesh Nadar Profile Picture
    on at
    RE: Does plugin get its own 2 min timeout?

    Hi,

    Below article are best practices for 2minutes plugin timeout for external calls-

    1. Set KeepAlive to false when interacting with external hosts in a plug-in 

    2. Set Timeout when making external calls in a plug-in 

    3. Dispose HttpWebResponse objects immediately after use. More info 

      using (result = webRequestClient.GetResponse())
        {
            // do functionality;
        }
      
    4. Full list of Best practices and guidance for the Microsoft Dataverse 

    Hope this helps!

    Regards,

    Venkatesh N

  • RyanCRM Profile Picture
    on at
    RE: Does plugin get its own 2 min timeout?

    No I just needed to understand how the plugin limit worked, I have taken over an existing solution that doesn't seem to have been built with any limits in mind, the is a dependency on an external webservice call that is occasionally taking over 50s - 65s (typically 10 - 20s) to respond this is then using a large amount of the limit.

    The rest of the plugin which does all the processing (5 - 6 different entity types) then runs in a linier fashion when it does need to, so i was going to split this up into separate plugins and process asynchronously as they are not dependant. individually id be very suppressed if any of these processes would take more the 15 - 20s to process.

    This method would require very little rework of immediately fix the existing problem, which will then allow me to then re architype the solution using azure or a similar service.

  • Guido Preite Profile Picture
    54,077 Moderator on at
    RE: Does plugin get its own 2 min timeout?

    the plugin will have its own 2 minutes, so your logic is to put some code inside the action and some code inside the plugin? if the process doesn't complete in 4 minutes your next step will be to call an action that call another action that call the plugin and hope it doesn't need 6 minutes?

  • RyanCRM Profile Picture
    on at
    RE: Does plugin get its own 2 min timeout?

    so if i call an action that calls a new plugin that plugin doesn't get its own 2min ?

  • Verified answer
    Guido Preite Profile Picture
    54,077 Moderator on at
    RE: Does plugin get its own 2 min timeout?

    asynchronous or synchronous doesn't make difference for the 2 minutes timeout.

    if your logic takes longer than 2 minutes then move it to azure or a similar service.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans