Create Scheduled Chatbot Loadgen #1087
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Flow - Chatbot Loadgen | |
| run-name: Create Scheduled Chatbot Loadgen | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "*/30 * * * *" | |
| jobs: | |
| get-metadata: | |
| name: Get Metadata | |
| runs-on: ubuntu-latest | |
| outputs: | |
| latest_tag: ${{ steps.get_latest_tag.outputs.tag }} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| chatbot-loadgen: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| environment: [events] | |
| environment: ${{ matrix.environment }} | |
| # --------------- runner setup --------------- | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: pip installs | |
| run: | | |
| pip install locust | |
| # --------------- demo flow --------------- | |
| - name: Send chat loadgen | |
| run: | | |
| cd demo_flows/chatbot_loadgen/ && python create_chatbot_loadgen.py ${{ vars.BASE_URL }}/chatbot-service/chat |