[CLOSED] Running very long functions on CodeBehind

  1. #1

    [CLOSED] Running very long functions on CodeBehind

    Hi
    What is best practice for running a function asynchronous that takes a really long time, maybe 30-60min.
    It does not need to return anything when it finish, but the process needs to run from the code behind.
    And not block any other calls made from client to code behind while running.

    Thanks
    Mikael
    Last edited by Jurke; Mar 27, 2020 at 1:46 PM.
  2. #2
    How about running a timer on the client and polling the server every minute or so? I would not rely on any connection staying open for that long. Anywhere along pipeline, the connection could time-out, such as in the browser. Polling an endpoint seems like a much safer approach.

    Hope this helps.
    Geoffrey McGill
    Founder & CEO
  3. #3
    Hi
    Thanks for your reply, Ill try that.

    Regards
    Mikael

Similar Threads

  1. [CLOSED] long-running script
    By pk.net in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 27, 2016, 2:49 PM
  2. Replies: 1
    Last Post: Nov 01, 2015, 5:23 PM
  3. Replies: 1
    Last Post: Nov 05, 2012, 8:40 PM
  4. Replies: 3
    Last Post: Oct 16, 2011, 5:46 PM
  5. [CLOSED] Update textfield value on a long running process
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 18, 2010, 11:30 AM

Posting Permissions