Search code examples
pythongoogle-app-enginemodulecrongae-module

GAE Python - Cron job doesn't execute on the target module


I've just implemented modules on GAE and am trying to run a Cron job from a certain module. My app.yaml has following values at the top:

application: myapp
module: default
version: 1
runtime: python27
api_version: 1
threadsafe: true

handlers:
#all handlers

The reporting.yaml for the module I am trying to activate has the following settings:

application: myapp
module: reporting
version: 1
instance_class: B4
runtime: python27
api_version: 1
threadsafe: true

handlers:
#same handlers as app.yaml

Finally my cron.yaml looks as following:

cron:
- description: update reports
  url: /update
  schedule: every day 12:00
  target: reporting

I need the module because the job requires more memory then the normal instance offers. For some reason however, when I look in the Logs of my app, it keeps executing the cron job on the default module. Why is it not accepting the target parameter?


Solution

  • Turns out I missed to upload the module itself with following command:

    appcfg update app.yaml reporting.yaml
    

    After doing this, the target parameter worked.