Skip to content

Commit a117a58

Browse files
authored
fix: use permanent_unique task (#81)
1 parent 3028bda commit a117a58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from lnbits.db import Database
77
from lnbits.helpers import template_renderer
8-
from lnbits.tasks import create_permanent_task
8+
from lnbits.tasks import create_permanent_unique_task
99
from typing import Callable
1010
from fastapi.responses import JSONResponse
1111

@@ -65,5 +65,5 @@ def tpos_stop():
6565
logger.warning(ex)
6666

6767
def tpos_start():
68-
task = create_permanent_task(wait_for_paid_invoices)
68+
task = create_permanent_unique_task("ext_tpos", wait_for_paid_invoices)
6969
scheduled_tasks.append(task)

0 commit comments

Comments
 (0)