There are a few issues with the taskComplete promise.
- It's marked with
! on the class, but it's only created when the task runs.
- If a user accesses it before the task runs for example when the Task is created, there's an error.
- If a user accesses it for a manually run task,
autoRun set to false, there's an error.
Perhaps it can just be initialized when the Task is created?