| # Copyright 2018 The LUCI Authors. All rights reserved. |
| # Use of this source code is governed under the Apache License, Version 2.0 |
| # that can be found in the LICENSE file. |
| |
| from recipe_engine.recipe_api import Property |
| from recipe_engine.config import ConfigGroup, List, Single |
| |
| DEPS = [ |
| 'buildbucket', |
| 'json', |
| 'platform', |
| 'properties', |
| 'raw_io', |
| 'runtime', |
| 'step', |
| 'time', |
| ] |
| |
| PROPERTIES = { |
| '$recipe_engine/scheduler': Property( |
| help='Internal property to initialize scheduler module', |
| param_name='init_state', |
| kind=ConfigGroup( |
| hostname=Single(basestring), |
| # A list of scheduler triggers that triggered the current build. |
| # A trigger is JSON-formatted dict of a scheduler.Trigger protobuf |
| # message. |
| triggers=List(dict), |
| ), |
| default={}, |
| ), |
| } |