Check if the task is already running

Discussion in 'Development' started by FresherGAMING, May 27, 2022.

  1. FresherGAMING

    FresherGAMING Spider Jockey

    Messages:
    41
    GitHub:
    FresherGAMING
    Hi, I want to check if the task is already running, the task is schedule repeating task, but how to do it ?
     
  2. BloodyJohnRus

    BloodyJohnRus Silverfish

    Messages:
    16
    GitHub:
    GDSHNIK
    PHP:
    $bool=$this->isCancelled(); //If bool false, then task running. Check it in task code.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.