Skip to content

Commit

Permalink
[Platform] Return result of drain and termination callbacks (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtopper authored Jan 14, 2024
1 parent d153f3c commit a03e92d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuclio_sdk/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ def _on_signal(self, callback_type="termination"):
:arg callback_type:str - callback type, can be "termination" or "drain"
"""
if callback_type == "termination" and self._termination_callback:
self._termination_callback()
return self._termination_callback()
elif callback_type == "drain" and self._drain_callback:
self._drain_callback()
return self._drain_callback()

0 comments on commit a03e92d

Please sign in to comment.