fix order of deploy tasks to ensure flushing cache and pinging server happens after code update / supervisor restart