1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Identify If Deferred Task Is Running

Discussion in 'XenForo Development Discussions' started by Snog, Jun 12, 2015.

  1. Snog

    Snog Well-Known Member

    Is there any way to identify if a deferred task is running?

    I would like to disable certain items in an extension if a deferred task is running.
  2. Jake B.

    Jake B. Well-Known Member

    Check out the xf_deferred table. I'm pretty sure you're able to tell from there. If not, you can extend the method that causes a deferred function to run and stop and add your own code in to check for this.
    Snog likes this.
  3. Snog

    Snog Well-Known Member

    I'll probably have to do the later. I was hoping for an easy (built in) way of identifying that a deferred task was calling the function.
    Earl likes this.

Share This Page