1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Is cancelTask bug?

Discussion in 'Development' started by Kenn Fatt, Dec 20, 2017.

  1. Kenn Fatt

    Kenn Fatt Slime

    Messages:
    82
    GitHub:
    kennfatt
    Have you try to cancel a single task?

    PHP:
    Server::getScheduler()->cancelTask($taskId);
    Task stop for a while, and running again. I don't know if any API changes affect this case. But, with latest version, i can't cancel task properly.
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    What do you mean by "Task stop for a while"? Did you make sure you did not try to schedule the task again?
     
    Kenn Fatt likes this.
  3. Kenn Fatt

    Kenn Fatt Slime

    Messages:
    82
    GitHub:
    kennfatt
    Thanks! i forgot that i call a function to register task in a task.
     
  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.