- renamed lock_process() to acquire_lock()
lockfile = tempfile.gettempdir() + '/fba.lock'
LOCK = None
-def lock_process():
+def acquire_lock():
global LOCK
try:
print(f"DEBUG: Acquiring lock: '{lockfile}'")
import validators
from fba import *
-boot.lock_process()
+boot.acquire_lock()
domains = list()
try:
import validators
from fba import *
-boot.lock_process()
+boot.acquire_lock()
fba.cursor.execute(
"SELECT domain, software, origin, nodeinfo_url FROM instances WHERE software IN ('pleroma', 'mastodon', 'friendica', 'misskey', 'gotosocial', 'bookwyrm', 'takahe') AND (last_blocked IS NULL OR last_blocked < ?) ORDER BY rowid DESC", [time.time() - fba.config["recheck_block"]]
import sys
from fba import *
-boot.lock_process()
+boot.acquire_lock()
feed = sys.argv[1]
import validators
from fba import *
-boot.lock_process()
+boot.acquire_lock()
instance = sys.argv[1]