lnbits-legend/lnbits/core
jackstar12 1fd4d9d514
cancel all long-running tasks (#1793)
* add centralized task management

in order to properly cleanup all long-running tasks we have to keep a list of them

* use new task management functions

* unify shutdown events

* vlads suggestions

rename variable for create_task
wrap cancel() with try/catch

fixup

* rename func to coro

---------

Co-authored-by: dni  <office@dnilabs.com>
2023-08-18 10:25:33 +01:00
..
static [FEATURE] Adding coverage for 'lntbs' signet prefix (#1881) 2023-08-18 09:48:45 +01:00
templates UI: hide paste payment request in unsupported environments (#1853) 2023-08-03 20:38:05 +02:00
views [REFACTOR] cleanup views/api.py (#1865) 2023-08-18 10:22:22 +01:00
__init__.py fix flake8 F401+F403 (module imported but unused + unable to detect undefined names) 2023-01-30 11:46:45 +00:00
crud.py [CHORE] E722 bare exception fix (#1871) 2023-08-16 12:17:54 +02:00
helpers.py [CHORE] E722 bare exception fix (#1871) 2023-08-16 12:17:54 +02:00
migrations.py [CHORE] E722 bare exception fix (#1871) 2023-08-16 12:17:54 +02:00
models.py [REFACTOR] cleanup views/api.py (#1865) 2023-08-18 10:22:22 +01:00
services.py [REFACTOR] cleanup views/api.py (#1865) 2023-08-18 10:22:22 +01:00
tasks.py cancel all long-running tasks (#1793) 2023-08-18 10:25:33 +01:00