Hello Pedo, 

When you create a handler for cron job, it should execute any tasks that 
you want to be scheduled. To indicate success, the handler should return 
with HTTP status code between 200 and 299. You can find about this in the 
third point of the “Creating a cron job“ section of this document 
<https://cloud.google.com/appengine/docs/standard/python/config/cron?csw=1#creating_a_cron_job>.
 
 When App Engine gets the HTTP GET request it converts it to a HTTPS 
request for your application. Therefore you can see the 302 redirect status 
code in the log. When your request is redirected the HTTP status code will 
be set to the value of the redirect_http_response_code parameter returned 
from your application. In your case the parameter may be not present which 
leads the 302 to be returned which is described here. 
<https://cloud.google.com/appengine/docs/standard/python3/config/appref#handlers_element>
 
As a result, App Engine is considering the cron job as failed.

I would advise you to go through your code and make proper adjustments.

In addition, I have noticed your project_id, module_id, version_id etc. in 
this Google Group thread. I would advise you to take caution before sharing 
any personal project specific information like these in any public forums 
as they can be used to harm your application. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fb653486-2445-40f1-9230-03f956e29854%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appeng... Pedro Perez Garcia
    • [google-a... 'George (Cloud Platform Support)' via Google App Engine
      • Re: [... Pedro Perez Garcia
        • R... 'George (Cloud Platform Support)' via Google App Engine
          • ... Pedro Perez Garcia
            • ... 'Sam (Google Cloud Support)' via Google App Engine
              • ... Pedro Perez Garcia
    • [google-a... 'Mohammad I (Cloud Platform Support)' via Google App Engine
    • [google-a... Pedro Perez Garcia

Reply via email to