Skip to content

Commit

Permalink
Set shutdown_grace_period for mesos agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Jan 23, 2019
1 parent ee77325 commit 6dfe760
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dpark/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,7 @@ def getExecutorInfo(self, framework_id):
)
info.executor_id.value = env.get('DPARK_ID', 'default')
info.command.environment.variables = variables = []
info.shutdown_grace_period.nanoseconds = 5 * (10 ** 9)

v = Dict()
variables.append(v)
Expand Down

0 comments on commit 6dfe760

Please sign in to comment.