Spaces:
Paused
Paused
File size: 642 Bytes
a1d7bae e8ef986 a1d7bae e8ef986 a1d7bae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import asyncio
import sys
import os
# Ensure current directory is in path
sys.path.append(os.getcwd())
from arq import create_pool
from arq.connections import RedisSettings
from core.config import get_settings
async def trigger():
settings = get_settings()
# Explicitly NOT setting worker mode here, we want to enqueue from an "API" context
redis = await create_pool(RedisSettings.from_dsn(settings.clean_redis_url))
await redis.enqueue_job('nexus_pulse_check')
print("✅ High-priority 'nexus_pulse_check' enqueued! Watch the Worker Lab for a new SUCCESS row.")
if __name__ == "__main__":
asyncio.run(trigger())
|