Use set_current_state (TASK_RUNNING); schedule(); instead.
Attach a file by drag & drop or click to upload