Expose Task.state on RetrieveTaskDefinition
https://redmine.teklia.com/issues/5605
The task's state is probably already retrieved from the database, but not exposed in the DRF serializer. Please expose it in RetrieveTaskDefinition
so Ponos agents don't have to make a separate API call to retrieve it