Skip to content

Commit b7e04a1

Browse files
committed
fix: Address review comments
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 193df76 commit b7e04a1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

appinfo/info.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ See [the nextcloud admin docs](https://docs.nextcloud.com/server/latest/admin_ma
3939
<display-name>Task polling interval</display-name>
4040
<description>The interval in which the app will poll for new tasks, in seconds (can be floating point numbers). This will only be used when running in Kubernetes or with Nextcloud below v33. This value defaults to 5 seconds.</description>
4141
</variable>
42+
</environment-variables>
4243
</external-app>
4344
</info>

lib/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ async def lifespan(_app: FastAPI):
6060
yield
6161
print("\nSIGTERM received. Processing last task and stopping to fetch and process new tasks..")
6262
SHUTDOWN_EVENT_RECEIVED.set()
63+
trigger.set()
6364
SHUTDOWN_CLEAR.wait()
6465

6566

0 commit comments

Comments
 (0)