mapreduce.yaml and NDB filters

95 views
Skip to first unread message

Moisés Belchín

unread,
Feb 7, 2013, 7:38:21 AM2/7/13
to app-engine-...@googlegroups.com
Hi all,

I'm using mapreduce library with pipelines and filters and NDB models. Everthing works very well !

My question:

Is it possible define filters in mapreduce.yaml file ? Like this:

mapreduce:

- name: Re-index
  mapper:
    input_reader: mapreduce.input_readers.DatastoreInputReader
    handler: mr.review_entities
    params:
    - name: entity_kind
      default: model.Entities
    - name: shard_count
      default: 20
    - name: queue_name
      default: fastest
    - name: filters
      default: [("status", "=", "ACTIVE")]
Message has been deleted

Erwan Macé

unread,
Sep 9, 2015, 10:51:50 PM9/9/15
to Google App Engine Pipeline API
I have found however than in my case, I had to write the filters as a String containing a list of lists rather than a List of Tuple.

So if this does not work:
default: [("status", "=", "ACTIVE")]

Try:
default: '[["status", "=", "ACTIVE"]]'
Reply all
Reply to author
Forward
0 new messages