Addition
Normally task is deleted after execution automatically, but sometimes you may need to delete it earlier, or prevent repeat execution if previous execution failed.
[ 'id' => task_id 'data' => data ]
There are several other methods, but they are used directly not so frequent, so, you can find them with description in source code and IDE suggestions.