Added update method for mongo adapter
Pulsar repo and branch as optional
Improved updating of task status