Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions socs/agents/hwp_pcu/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def send_command(self, session, params):
command (str): set the operation mode from 'off', 'on_1', 'on_2' or 'hold'.

"""
with self.lock.acquire_timeout(3, job='send_command') as acquired:
with self.lock.acquire_timeout(10, job='send_command') as acquired:
if not acquired:
self.log.warn('Could not send command because {} is already running'.format(self.lock.job))
return False, 'Could not acquire lock'
Expand Down Expand Up @@ -135,7 +135,7 @@ def get_status(self, session, params):
**Task** - Return the status of the PCU.

"""
with self.lock.acquire_timeout(3, job='get_status') as acquired:
with self.lock.acquire_timeout(30, job='get_status') as acquired:
if not acquired:
self.log.warn(
'Could not get status because {} is already running'.format(self.lock.job))
Expand Down