[#58029906] Allow for manual updating of status of externally managed

This throws an error if the job is not marked as ExternallyManaged. Also
added unit tests