Skip to content

Commit c9057c8

Browse files
Merge pull request #156 from runpod/ignore-template
Ignore template
2 parents be7b4f2 + 135ef4c commit c9057c8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

runpod/api/ctl_commands.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def create_pod(
7777
cloud_type:str="ALL", support_public_ip:bool=True,
7878
start_ssh:bool=True,
7979
data_center_id : Optional[str]=None, country_code:Optional[str]=None,
80-
gpu_count:int=1, volume_in_gb:int=0, container_disk_in_gb:int=5,
80+
gpu_count:int=1, volume_in_gb:int=0, container_disk_in_gb:Optional[int]=None,
8181
min_vcpu_count:int=1, min_memory_in_gb:int=1, docker_args:str="",
8282
ports:Optional[str]=None, volume_mount_path:str="/runpod-volume",
8383
env:Optional[dict]=None, template_id:Optional[str]=None,
@@ -117,6 +117,9 @@ def create_pod(
117117
data_center_id = network_volume["dataCenterId"]
118118
break
119119

120+
if container_disk_in_gb is None and template_id is None:
121+
container_disk_in_gb = 10
122+
120123
raw_response = run_graphql_query(
121124
pod_mutations.generate_pod_deployment_mutation(
122125
name, image_name, gpu_type_id,

runpod/serverless/modules/rp_job.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ async def run_job(handler: Callable, job: Dict[str, Any]) -> Dict[str, Any]:
132132
else:
133133
run_result = {"output": job_output}
134134

135-
136-
137135
if run_result.get("output") == {}:
138136
run_result.pop("output")
139137

0 commit comments

Comments
 (0)