Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dhblum committed Nov 6, 2024
1 parent 384a6f5 commit 00add91
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ BOPTEST can be deployed and used on your own computing resource by following the
2) Install [Docker](https://docs.docker.com/get-docker/).

3) Use Docker to build and run BOPTEST. In the root of this repository, run the following command. Note that if you want to be able to deploy multiple test cases at the same time, append the argument ``--scale worker=n`` where ``n`` equals the number of test cases you want to be able to have running at the same time.

``docker compose up web worker provision``

4) In a separate process, use the API below to first select a test case to run, and then interact with it using your test controller. Send API requests to ``http://127.0.0.1:80/<request>``
Expand Down
2 changes: 1 addition & 1 deletion service/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# BOPTEST-Service

This software implements BOPTEST as a web service architecture, which enables support for multiple clients and multiple simultaneous tests at a large scale. See the README.md at the root of the repositroy for more information.
This software implements BOPTEST as a web service architecture, which enables support for multiple clients and multiple simultaneous tests at a large scale. See the README.md at the root of the repositroy for more information.
4 changes: 2 additions & 2 deletions service/ci/publish_to_github.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# load .env defines in root of repo
# load .env defines in root of repo
export $(egrep -v '^#' .env | xargs)
export GITHUB_WEB_REGISTRY_URI=ghcr.io/NREL/boptest-web
export GITHUB_WORKER_REGISTRY_URI=ghcr.io/NREL/boptest-worker
Expand All @@ -10,7 +10,7 @@ elif [[ "${GITHUB_REF}" =~ ^refs/tags/v[0-9].* ]]; then
export VERSION_TAG="${GITHUB_REF/refs\/tags\//}"
echo "The docker tag is set to: ${VERSION_TAG}"
# use conditional below if you want to build a custom branch
# elif [[] "${GITHUB_REF}" == "refs/heads/boptest-service-custom" ]]; then
# elif [[] "${GITHUB_REF}" == "refs/heads/boptest-service-custom" ]]; then
# export VERSION_TAG="experimental"
fi

Expand Down
4 changes: 2 additions & 2 deletions service/web/server/src/lib/messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ class Messaging {
redis.subclient.on('message', (channel, message) => this.onMessage(channel, message))
}

// This function calls a remote worker method, and then waits for a reply.
// This function calls a remote worker method, and then waits for a reply.
//
// The following steps are involved.
// 1. A message is published on the redis channel <workerID>:request
// signaling a request to the worker for data. The type of data is identified by `method`.
// Any `params` necessary to compute the requested data are included in the message.
// 2. The worker listens for data requests on the redis request channel, `method` is mapped to a
// 2. The worker listens for data requests on the redis request channel, `method` is mapped to a
// to a worker method, and the method is called with the given parameters.
// 4. The worker publishes a message on the redis channel <workerID>:response,
// with the response data
Expand Down
2 changes: 1 addition & 1 deletion service/worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self):
self.logger = Logger().logger
self.redis = redis.Redis(host=os.environ["BOPTEST_REDIS_HOST"])
self.logger.info("Worker initialized")

def process_job(self, job):
"""
Process a single message from Queue.
Expand Down

0 comments on commit 00add91

Please sign in to comment.