title: Cloud Functions for Firebase deploy interrupted
body: <p>Earlier it took me around 3-4 minutes to deploy functions to Firebase Cloud. Now when I'm trying to deploy my changes, CMD runs for good 10-15 minutes and then gives me this <code>Deploy Error: Operation interrupted</code> and a little message to my Cloud function log also saying <code>Operation interrupted</code>.
  <a href="https://i.stack.imgur.com/5tXV2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5tXV2.png" alt="enter image description here"></a></p>
  
  <p>CMD and Log are not very helpful since they do not tell what is causing this problem. Is there something wrong with the code I made? It's very simple and I don't think that's causing the problem but here it is:</p>
  
  <pre><code>const functions = require('firebase-functions');
  const admin = require('firebase-admin');
  admin.initializeApp(functions.config().firebase);
  
  var roomID = "cheufer_923sfd98";
  
  exports.findRoom = functions.database
      .ref('/Players Searching For Room/{uid}')
      .onWrite(event =&gt; {
  
          if(!event.data.exists())
          {
              return;
          }
  
          admin.database().ref('/Test Array/' + roomID).transaction(function(content){
  
              if(content == null)
              {
                  content.push( {onGoing: false} );
  
                  content.push( {players: [] } );
              }
  
              content.players.push(event.params.uid);
  
              return content;
  
          }, function(error, committed){
  
              if(committed)
              {
                  console.log("Committed successfully. New data was inserted in table called 'TestArray'");
              }
          });
      });
  </code></pre>