We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5345d1a commit c8bfe39Copy full SHA for c8bfe39
runpod/serverless/pod_worker.py
@@ -43,14 +43,12 @@ def start_worker():
43
# -------------------------------- Job Cleanup ------------------------------- #
44
shutil.rmtree("input_objects", ignore_errors=True)
45
shutil.rmtree("output_objects", ignore_errors=True)
46
- os.remove('output.zip') if os.path.exists('output.zip') else None
+
47
+ if os.path.exists('output.zip'):
48
+ os.remove('output.zip')
49
50
worker_life.reset_worker_ttl()
51
52
if os.environ.get('TEST_LOCAL', 'false') == 'true':
53
log("Local testing complete, exiting.")
54
break
-
55
-if __name__ == '__main__':
56
- start_worker()
0 commit comments