diff --git a/docs/serverless/worker.md b/docs/serverless/worker.md index ec3b3773..e1535e84 100644 --- a/docs/serverless/worker.md +++ b/docs/serverless/worker.md @@ -2,7 +2,7 @@ Both Runpod official endpoints as well as custom built endpoints function by means of a worker that fetches available jobs, passes them into a handler and then returns the output. -A worker entry point is a python file containing the command `runpod.serverless.start(config)`. An minimal worker file is shown below: +A worker entry point is a python file containing the command `runpod.serverless.start(config)`. A minimal worker file is shown below: ```python import runpod diff --git a/docs/serverless/worker_realtime.md b/docs/serverless/worker_realtime.md index 325a181a..914b8b3d 100644 --- a/docs/serverless/worker_realtime.md +++ b/docs/serverless/worker_realtime.md @@ -10,4 +10,4 @@ A worker will be launched as a realtime worker if the `RUNPOD_REALTIME_PORT` env ### Concurrent Requests -By default the realtime worker will only process one request at a time. This can be changed by setting the `RUNPOD_REALTIME_CONCURRENCY` environment variable. This variable should be set to the number of concurrent requests that should be processed. +By default, the realtime worker will only process one request at a time. This can be changed by setting the `RUNPOD_REALTIME_CONCURRENCY` environment variable. This variable should be set to the number of concurrent requests that should be processed. diff --git a/runpod/endpoint/asyncio/asyncio_runner.py b/runpod/endpoint/asyncio/asyncio_runner.py index 375a0552..cb75144d 100644 --- a/runpod/endpoint/asyncio/asyncio_runner.py +++ b/runpod/endpoint/asyncio/asyncio_runner.py @@ -36,7 +36,7 @@ def __init__(self, endpoint_id: str, job_id: str, session: ClientSession, header self.job_output = None async def _fetch_job(self, source: str = "status") -> Dict[str, Any]: - """Returns the raw json of the status, reaises an exception if invalid. + """Returns the raw json of the status, raises an exception if invalid. Args: source: The URL source path of the job status. diff --git a/runpod/error.py b/runpod/error.py index d78040b9..b715cb11 100644 --- a/runpod/error.py +++ b/runpod/error.py @@ -1,5 +1,5 @@ """ -runpd | error.py +runpod | error.py This file contains the error classes for the runpod package. """ diff --git a/tests/test_serverless/__init__.py b/tests/test_serverless/__init__.py index d19b423c..0902f268 100644 --- a/tests/test_serverless/__init__.py +++ b/tests/test_serverless/__init__.py @@ -1 +1 @@ -""" Alow serverless tests to be run from the command line.""" +""" Allow serverless tests to be run from the command line.""" diff --git a/tests/test_serverless/test_modules/test_logger.py b/tests/test_serverless/test_modules/test_logger.py index 05652c9b..ea428379 100644 --- a/tests/test_serverless/test_modules/test_logger.py +++ b/tests/test_serverless/test_modules/test_logger.py @@ -20,9 +20,9 @@ def test_default_log_level(self): """ Tests that the default log level is DEBUG """ - defult_logger = rp_logger.RunPodLogger() + default_logger = rp_logger.RunPodLogger() - self.assertEqual(defult_logger.level, "DEBUG") + self.assertEqual(default_logger.level, "DEBUG") def test_singleton(self): """