Added timeout and limit to script entries
This commit is contained in:
@@ -17,14 +17,19 @@ class BackgroundEntry(Entry):
|
||||
_exit_code: Exit code when process completes
|
||||
"""
|
||||
|
||||
def __init__(self, script: str, id: str, timestamp: datetime):
|
||||
def __init__(
|
||||
self,
|
||||
id: str,
|
||||
timestamp: datetime,
|
||||
script: str,
|
||||
):
|
||||
"""
|
||||
Initialize a new background entry.
|
||||
|
||||
Args:
|
||||
script: The script/command to execute
|
||||
id: Unique identifier for this entry
|
||||
timestamp: Creation timestamp for this entry
|
||||
script: The script/command to execute
|
||||
"""
|
||||
super().__init__(id, timestamp)
|
||||
self._script = script
|
||||
|
||||
Reference in New Issue
Block a user