title: Cron job failed on Google Cloud
body: <p>I'm trying to add the scheduled tasks in my server deployed on Google Cloud using <a href="https://cloud.google.com/appengine/docs/standard/python/config/cron" rel="nofollow noreferrer">the cron functionality</a>. Before deploy, I'm testing in localhost, so I've configured a simple cron.yaml file like this:</p>
  
  <pre><code>#cron file
  cron:
  
  - description: Testing cron functionality
    url: /task
    schedule: every 1 minutes
  </code></pre>
  
  <p>And a simple endpoint like the following:</p>
  
  <pre><code>#myblueprint.py
  #from ... import ....
  from app.exceptions.sql_exceptions import (NotFoundException, InvalidValueException)
  from fga.frameworks.flask.core import BeforeRequestFlow
  
  tasks_bp = flask.Blueprint('task', __name__, url_prefix='/task')
  
  @tasks_bp.route('', methods=['GET'])
  def new_or_list():
      logging.info("++++++++++++++++++TEST CRON++++++++++++++++++")
      return flask.Response(
              response="Cron ejecutado correctamente",
              status=201
          )
  </code></pre>
  
  <p>So I run my server on localhost and I've entered into the Development SDK page that simulates the gCloud environment. In the Cron Jobs section my task appears and also the countdown to execute it but when the count goes to 0 then the task is not executed.</p>
  
  <p>Only it's executed when I press the button Run Now and it appears in my console the desired debug message. Why?</p>
  
  <p><a href="https://i.stack.imgur.com/AiTHy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AiTHy.png" alt="Manual execution of the cron task due to I&#39;ve clicked on the Run Now button"></a>
  <em>Manual execution of the cron task because I click on the <strong>Run Now</strong> button</em></p>