1# Copyright (c) 2015 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from google.appengine.ext import ndb
6
7
8class JobInfo(ndb.Model):
9  date = ndb.DateTimeProperty(auto_now_add=True, indexed=True)
10  status = ndb.StringProperty(indexed=True)
11  remote_addr = ndb.StringProperty(indexed=True)
12
13  mapper = ndb.TextProperty()
14  reducer = ndb.TextProperty()
15  mapper_function = ndb.StringProperty(indexed=True)
16  reducer_function = ndb.StringProperty(indexed=True)
17  query = ndb.StringProperty(indexed=True)
18  corpus = ndb.StringProperty(indexed=True)
19  revision = ndb.StringProperty(indexed=True)
20  timeout = ndb.IntegerProperty()
21  function_timeout = ndb.IntegerProperty()
22
23  running_tasks = ndb.StringProperty(repeated=True)
24
25  running_tasks = ndb.StringProperty(repeated=True)
26
27  results = ndb.StringProperty(indexed=True)
28