Tồn queues sb_artifact_sandbox

Modified on Tue, 24 Jun, 2025 at 4:12 PM

Manage queue sb_artifact_sandbox

Description: Stores information about sandbox artifacts for gogstash to push into Elasticsearch (ES).

1️⃣ Restart the module using Supervisor

supervisorctl restart ama_gogstash_artifact_sandbox
# or a similar short name

2️⃣ Create an auto-restart script

Create the script file:

nano /opt/ama/scripts/restart_sb_artifact_sandbox.sh

Script content:

temp=`rabbitmqctl list_queues | grep "sb_artifact_sandbox" | awk '{print $2}'`
if [[ $temp -gt 50000 ]]; then
    echo "$temp restart"
    supervisorctl restart ama_gogstash_artifact_sandbox
else
    echo "Current queues: $temp"
fi

3️⃣ Set up a crontab to run automatically

crontab -e

Add the following line to the crontab:

/bin/bash /opt/ama/scripts/restart_sb_artifact_sandbox.sh

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article