domain record in task

for your deployment pipeline we are using different enviroments (for content and testing). It's hard to change the domain during the deployment process in the serialized task object.
Therefore we would prefer to choose the domain by database record.