blob: 7eef469cffff5137f45d91d51a7ee38823374490 [file] [log] [blame]
# 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 past.builtins import basestring
from recipe_engine.recipe_api import Property
from recipe_engine.config import ConfigGroup, List, Single
DEPS = [
'buildbucket',
'json',
'platform',
'raw_io',
'step',
'time',
]
PROPERTIES = {
'$recipe_engine/scheduler': Property(
help='Internal property to initialize scheduler module',
param_name='init_state',
kind=ConfigGroup(
hostname=Single(basestring, required=False),
job=Single(basestring, required=False),
invocation=Single(basestring, required=False),
# 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={},
),
}