MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / release_task_lock

Function release_task_lock

core/utils.py:305–311  ·  view source on GitHub ↗

Release the lock after task execution.

(task_name, id)

Source from the content-addressed store, hash-verified

303 return lock_acquired
304
305def release_task_lock(task_name, id):
306 """Release the lock after task execution."""
307 redis_client = RedisClient.get_client()
308 lock_id = f"task_lock_{task_name}_{id}"
309
310 # Remove the lock
311 redis_client.delete(lock_id)
312
313
314def is_task_lock_held(task_name, id):

Callers 12

rehash_streamsFunction · 0.90
refresh_m3u_groupsFunction · 0.90
refresh_account_infoFunction · 0.90
repack_groupMethod · 0.90
refresh_epg_dataFunction · 0.90
fetch_sd_guide_for_epgFunction · 0.90

Calls 2

get_clientMethod · 0.80
deleteMethod · 0.45