Skip to content

Commit

Permalink
fix: use permanent_unique task (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
dni authored Apr 15, 2024
1 parent 3028bda commit a117a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from lnbits.db import Database
from lnbits.helpers import template_renderer
from lnbits.tasks import create_permanent_task
from lnbits.tasks import create_permanent_unique_task
from typing import Callable
from fastapi.responses import JSONResponse

Expand Down Expand Up @@ -65,5 +65,5 @@ def tpos_stop():
logger.warning(ex)

def tpos_start():
task = create_permanent_task(wait_for_paid_invoices)
task = create_permanent_unique_task("ext_tpos", wait_for_paid_invoices)
scheduled_tasks.append(task)

0 comments on commit a117a58

Please sign in to comment.