Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ runpod.serverless.start({"handler": is_even})

Make sure that this file is ran when your container starts. This can be accomplished by calling it in the docker command when you set up a template at [console.runpod.io/serverless/user/templates](https://console.runpod.io/serverless/user/templates) or by setting it as the default command in your Dockerfile.

See our [blog post](https://www.runpod.io/blog/serverless-create-a-basic-api) for creating a basic Serverless API, or view the [details docs](https://docs.runpod.io/serverless-ai/custom-apis) for more information.
See our [blog post](https://www.runpod.io/blog/build-basic-serverless-api) for creating a basic Serverless API, or view the [details docs](https://docs.runpod.io/serverless-ai/custom-apis) for more information.

### Local Test Worker

Expand Down
2 changes: 1 addition & 1 deletion docs/serverless/worker.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The Serverless Worker

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.
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)`. A minimal worker file is shown below:

Expand Down
2 changes: 1 addition & 1 deletion examples/serverless/simple_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
""" Simple Handler

To setup a local API server, run the following command:
To set up a local API server, run the following command:
python simple_handler.py --rp_serve_api
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Similar to .gitignore
# Matches will not be synce to the development pod or cause the development pod to reload.
# Matches will not be synced to the development pod or cause the development pod to reload.
12 changes: 6 additions & 6 deletions runpod/serverless/utils/rp_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,17 @@ def file(file_url: str) -> dict:
output_file.write(download_response.content)

if file_type == "zip":
unziped_directory = os.path.join("job_files", file_name)
os.makedirs(unziped_directory, exist_ok=True)
unzipped_directory = os.path.join("job_files", file_name)
os.makedirs(unzipped_directory, exist_ok=True)
with zipfile.ZipFile(output_file_path, "r") as zip_ref:
zip_ref.extractall(unziped_directory)
unziped_directory = os.path.abspath(unziped_directory)
zip_ref.extractall(unzipped_directory)
unzipped_directory = os.path.abspath(unzipped_directory)
else:
unziped_directory = None
unzipped_directory = None

return {
"file_path": os.path.abspath(output_file_path),
"type": file_type,
"original_name": original_file_name,
"extracted_path": unziped_directory,
"extracted_path": unzipped_directory,
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
runpod-python | setup.py
Called to setup the runpod-python package.
Called to set up the runpod-python package.
"""

from setuptools import find_packages, setup
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api/test_ctl_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def test_create_container_registry_auth(self, mock_run_graphql_query):
"""
Tests create_container_registry_auth by mocking the run_graphql_query function
"""
# Setup the mock to return a predefined response
# Set up the mock to return a predefined response
mock_run_graphql_query.return_value = {
"data": {
"saveRegistryAuth": {"id": "REGISTRY_AUTH_ID", "name": "REGISTRY_NAME"}
Expand Down
Loading