|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /opt/Autom8Redis/ |
from celery import Celery
import subprocess, yaml, os
app = Celery('Autom8RedisTaskq', broker='redis://localhost:16379/0', backend="redis://localhost:16379/0")
@app.task
def setup_redis(cpaneluser, cpanelhome, option):
subprocess.call(' /opt/Autom8Redis/autom8redis_wrapper.py '+cpaneluser+' '+cpanelhome+' '+option, shell=True)