chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# flake8: noqa
|
||||
|
||||
# __start__
|
||||
# File name: sleepy_pid.py
|
||||
|
||||
from ray import serve
|
||||
|
||||
|
||||
@serve.deployment
|
||||
class SleepyPid:
|
||||
def __init__(self):
|
||||
import time
|
||||
|
||||
time.sleep(10)
|
||||
|
||||
def __call__(self) -> int:
|
||||
import os
|
||||
|
||||
return os.getpid()
|
||||
|
||||
|
||||
app = SleepyPid.bind()
|
||||
# __end__
|
||||
Reference in New Issue
Block a user