Try removing .git/index_lock if, after acquiring taskwarrior repository lock, the enclosing git repo is locked.
Chown all log files after running deployment.
Reduce heartbeat slightly; make configurable in settings.