1. #1



    Please, add new property "RunOnce" in Task for control, that would avoid duplication of running the same task, because then it can not be stopped.

    Ext.net.TaskManager.prototype.startTask = function (task) {
        if (this.executing) return;
        task = this.getTask(task);
        if (task.running) return;
        task.running = true;
        if (task.onstart) { task.onstart.apply(task.scope || task); }
    Ext.net.TaskManager.prototype.stopTask = function (task) {
        this.runner.stop(task = this.getTask(task));
        task.running = false;
  2. #2

    Task has Repeat property. You can set Repeat="1" to execute the task once only
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    If I write

    It turns out that the task 'qqq' run twice in parallel and stopTask stops just one task. To stop the second task should stopTask call again.
    (buggy, if between startTasks task time to execute).

    In some time
    task will not run at all.

    Property is properly named as RunUnique.

Similar Threads

  1. [CLOSED] Task bar text
    By schellappa in forum 1.x Premium Help
    Replies: 4
    Last Post: Jan 19, 2011, 5:51 PM
  2. [CLOSED] Task error
    By majestic in forum 1.x Premium Help
    Replies: 6
    Last Post: Oct 27, 2010, 7:52 AM
  3. [CLOSED] Task manager
    By majestic in forum 1.x Premium Help
    Replies: 2
    Last Post: Sep 07, 2010, 5:15 PM
  4. [CLOSED] Task Update DirectEvent in TaskManager
    By pil0t in forum 1.x Premium Help
    Replies: 1
    Last Post: Jun 21, 2010, 8:30 PM
  5. task
    By wdjlover in forum 1.x Help
    Replies: 8
    Last Post: Jun 17, 2009, 11:56 PM

Posting Permissions