fix threads

This commit is contained in:
Believethehype 2024-07-03 13:21:42 +02:00
parent daeb91d1e1
commit 015e15a8b7
2 changed files with 4 additions and 3 deletions

View File

@ -103,10 +103,11 @@ class DVMTaskInterface:
print("Installing global Module: " + module)
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
def run(self):
def run(self, join=False):
nostr_dvm_thread = Thread(target=self.DVM, args=[self.dvm_config, self.admin_config])
nostr_dvm_thread.start()
nostr_dvm_thread.join()
if join:
nostr_dvm_thread.join()
async def schedule(self, dvm_config):
"""schedule something, e.g. define some time to update or to post, does nothing by default"""

View File

@ -1,6 +1,6 @@
from setuptools import setup, find_packages
VERSION = '0.6.32'
VERSION = '0.6.33'
DESCRIPTION = 'A framework to build and run Nostr NIP90 Data Vending Machines'
LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')