title: Google Cloud Functions Cron Job Not Working
body: <p>I am trying to set up a <a href="https://firebase.google.com/docs/functions/schedule-functions" rel="noreferrer">scheduled function</a> in Firebase Cloud Functions.  As a simple test, I have tried to recreate the sample shown on the documentation page:</p>
  
  <pre><code>const functions = require('firebase-functions')
  
  exports.scheduledFunction = functions.pubsub
    .schedule('every 5 minutes')
    .onRun(context =&gt; {
      console.log('This will be run every 5 minutes!')
      return null
    })
  
  </code></pre>
  
  <p>However, when I run <code>firebase serve --only functions</code>, I get the following error:</p>
  
  <pre><code>function ignored because the pubsub emulator does not exist or is not running.
  </code></pre>
  
  <p>Any idea why I get this message and how I can fix it?</p>