Skip to content

Commit 06dcf42

Browse files
paaragonavilches
andauthored
fix: remove deprecated file for arguments (#1775)
Co-authored-by: Alberto Vilches <194074+avilches@users.noreply.github.com>
1 parent 1c75115 commit 06dcf42

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

gateway/api/ray.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from opentelemetry import trace
2222
from opentelemetry.trace.propagation.tracecontext import TraceContextTextMapPropagator
2323

24-
from api.services.arguments_storage import ArgumentsStorage
2524
from api.models import ComputeResource, Job, JobConfig, DEFAULT_PROGRAM_ENTRYPOINT
2625
from api.services.file_storage import FileStorage, WorkingDir
2726
from api.utils import (
@@ -113,27 +112,6 @@ def submit(self, job: Job) -> Optional[str]:
113112
f"Program [{program.title}] has no image or artifact associated."
114113
)
115114

116-
# upload arguments to working directory
117-
provider_name = None
118-
if job.program.provider is not None:
119-
provider_name = job.program.provider.name
120-
storage = ArgumentsStorage(
121-
job.author.username, program.title, provider_name
122-
)
123-
arguments = storage.get(job.id)
124-
arguments_file = os.path.join(
125-
working_directory_for_upload, "arguments.serverless"
126-
)
127-
128-
# DEPRECATED: arguments is now saved in /:username/:jobid,
129-
# arguments.serverless is going to be deprecated
130-
with open(arguments_file, "w", encoding="utf-8") as f:
131-
if arguments:
132-
logger.debug("uploading arguments for job [%s]", job.id)
133-
f.write(arguments)
134-
else:
135-
f.write("{}")
136-
137115
# set tracing
138116
carrier: dict[str, str] = {}
139117
TraceContextTextMapPropagator().inject(carrier)

0 commit comments

Comments
 (0)