Ray Jobs CLI API Reference
Ray Jobs CLI API Reference#
This section contains commands for Ray Job Submission.
Warning
When using the CLI, do not wrap the entrypoint command in quotes. For example, use
ray job submit --working_dir="." -- python script.py instead of ray job submit --working_dir="." -- "python script.py".
Otherwise you may encounter the error /bin/sh: 1: python script.py: not found.
Warning
You must provide the entrypoint command, python script.py, last (after the --), and any other arguments to ray job submit (e.g., --working_dir=".") must be provided before the two hyphens (--).
For example, use ray job submit --working_dir="." -- python script.py instead of ray job submit -- python script.py --working_dir=".".
This syntax supports the use of -- to separate arguments to ray job submit from arguments to the entrypoint command.