add convenience script to start/stop the bot - #392
Conversation
|
nice idea. how is it supposed to work? can you add a little documentation (into the script and/or into the README.md)? |
|
EDIT: updated README.md and added support for job manager and event handler options. |
trz42
left a comment
There was a problem hiding this comment.
Nice! Added a few comments/suggestions to let it support scenarios where multiple instances would run on the same machine.
|
@trz42 new changes
if you're happy with these changes i'll update the README accordingly |
trz42
left a comment
There was a problem hiding this comment.
Nice.
--bot-name is a little tricky (conflicts with a setting for GitLab and could be misunderstood). How about --session?
You didn't want to also start the smee-client via this script? Can be kept external for now, your PR is already an improvement.
what about
i'm not sure about the smee client, because i actually don't use smee anymore, and i used to launch the smee client in a container, which is different from the so i agree to keep it external for now. UPDATE
|
trz42
left a comment
There was a problem hiding this comment.
Works!
(vbot) [trz42@login1 eessi-bot-software-layer]$ ./bot.py start --instance test-pr-392 --event-handler-opts "--port 34543"
>>> starting job manager for bot instance 'test-pr-392'...
>>> starting event handler for bot instance 'test-pr-392'...
Configuration check: PASSED
Configuration check: PASSED
job manager just started, logging to '/home/trz42/projects/def-users/trz42/gitlab/logs/eessi_bot_job_manager.log', processing job ids ''
EESSI bot for software layer started!
app is listening on port 34543
logging in to /home/trz42/projects/def-users/trz42/gitlab/logs/eessi_bot_event_handler.log
>>> job manager for bot instance 'test-pr-392' is running
>>> event handler for bot instance 'test-pr-392' is runningGoing to merge this before someone™️ comes up with more ideas 😁
made with some AI assistance