Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/skypilot-org/skypilot
/ functions
Functions
14,119 in github.com/skypilot-org/skypilot
⨍
Functions
14,119
◇
Types & classes
1,373
↳
Endpoints
989
↓ 1,094 callers
Method
get
Get the current value atomically. Returns: The current integer value.
sky/utils/atomic.py:13
↓ 907 callers
Method
info
Get Slurm cluster information. This is useful for checking if the cluster is accessible and retrieving node information. Ret
sky/adaptors/slurm.py:202
↓ 816 callers
Method
patch
Sends a PATCH request. A wrapper for the requests.patch method. Builds the url, uses custom headers, refresh tokens if needed.
sky/adaptors/verda.py:423
↓ 679 callers
Method
get
(self, instance_id: str)
sky/provision/lambda_cloud/lambda_utils.py:40
↓ 645 callers
Method
time
(self)
tests/unit_tests/kubernetes/test_provision.py:1300
↓ 519 callers
Method
items
(self)
sky/usage/usage_lib.py:534
↓ 401 callers
Method
sleep
(self, secs)
tests/unit_tests/kubernetes/test_provision.py:1303
↓ 389 callers
Method
execute
Execute the task on the cluster. Returns: Job id if the task is submitted to the cluster, None otherwise.
sky/backends/backend.py:126
↓ 389 callers
Method
get_cluster_name
(self)
sky/backends/backend.py:26
↓ 340 callers
Method
pop
(self, key: KeyType)
sky/utils/thread_utils.py:89
↓ 314 callers
Method
update
(self, msg: str)
sky/utils/rich_utils.py:124
↓ 289 callers
Method
get
Get a request from the queue. It is non-blocking if the queue is empty, and returns None. Returns: A tuple of request_id
sky/server/requests/executor.py:139
↓ 273 callers
Method
get
()
tests/smoke_tests/plugin/skypilot_plugin_smoketest/__init__.py:15
↓ 268 callers
Method
format
(self, record)
sky/sky_logging.py:44
↓ 242 callers
Method
info
Get information about the autoscaler.
sky/serve/autoscalers.py:179
↓ 228 callers
Method
get_engine
Lazy sync engine init with double-checked locking.
sky/utils/db/db_utils.py:443
↓ 226 callers
Method
values
(self)
sky/usage/usage_lib.py:537
↓ 220 callers
Method
get
(self)
tests/unit_tests/test_sky/server/requests/test_executor.py:559
↓ 213 callers
Method
format
Format the volume table for display.
sky/client/cli/table_utils.py:201
↓ 211 callers
Method
keys
(self)
sky/clouds/utils/scp_utils.py:98
↓ 204 callers
Method
json
(self)
tests/unit_tests/test_sky/volumes/test_runpod_volume.py:212
↓ 181 callers
Method
get
* Get cached data or fetch fresh data * @param {Function} fetchFunction - The function to call to fetch data * @param {Array} [args=[]] - Argume
sky/dashboard/src/lib/cache.js:45
↓ 177 callers
Method
write
(self, record: Dict[str, Any])
tests/load_tests/generators/base.py:25
↓ 176 callers
Method
get_nested
Gets a nested key. If any key is not found, or any intermediate key does not point to a dict value, returns 'default_value'.
sky/utils/config_utils.py:41
↓ 174 callers
Method
filter
(self, record: logging.LogRecord)
sky/serve/controller.py:34
↓ 165 callers
Method
map
Submit batch job as a managed job. Blocks until completion. The mapper function should be decorated with @sky.batch.remote_function a
sky/batch/dataset.py:154
↓ 157 callers
Method
run
Run the server process.
sky/server/uvicorn.py:201
↓ 152 callers
Method
close
(self)
sky/skylet/log_lib.py:864
↓ 151 callers
Method
copy
Create a copy of the context. Changes to the current context after this call will not affect the copy. The new context will get its o
sky/utils/context.py:181
↓ 149 callers
Method
invoke
(self, ctx)
sky/client/cli/command.py:1084
↓ 142 callers
Method
write
Add a line to the buffer. Args: line: The log line to add Returns: True if buffer should be flushed after ad
sky/skylet/log_lib.py:852
↓ 138 callers
Method
from_yaml_config
( config: Dict[str, Any], env_overrides: Optional[List[Tuple[str, str]]] = None, secre
sky/task.py:641
↓ 138 callers
Function
patch
()
sky/skylet/ray_patches/__init__.py:70
↓ 136 callers
Method
add
Add a request to the request aggregator.
sky/serve/serve_utils.py:271
↓ 135 callers
Method
flush
(self)
tests/unit_tests/test_sky/server/requests/test_executor.py:414
↓ 127 callers
Method
commit
Plugin git commit hash.
sky/server/plugins.py:266
↓ 114 callers
Method
set_resources
Sets the required resources to execute this task. If this function is not called for a Task, default resource requirements will be us
sky/task.py:1331
↓ 111 callers
Method
echo
(self, message: str)
tests/smoke_tests/smoke_tests_utils.py:393
↓ 108 callers
Method
wait
Override to block until the generator naturally finishes. Default: does nothing — the caller drives termination via stop().
tests/load_tests/generators/base.py:98
↓ 102 callers
Method
validate
(self, skip_file_mounts: bool = False, skip_workdir: bool = False)
sky/dag.py:180
↓ 93 callers
Method
decode
(cls, body: str)
sky/admin_policy.py:117
↓ 93 callers
Method
write
(self, data)
tests/unit_tests/test_sky/server/requests/test_executor.py:411
↓ 91 callers
Method
set
(self, instance_id: str, value: Optional[Dict[str, Any]])
sky/provision/lambda_cloud/lambda_utils.py:47
↓ 81 callers
Function
write_yaml
(yaml_file: tempfile.NamedTemporaryFile, config: str)
tests/smoke_tests/test_pools.py:440
↓ 80 callers
Method
exit
(self)
sky/utils/rich_utils.py:96
↓ 77 callers
Method
launch
Launch the cluster for the first time. It can fail if resource is not available. Need to check the cluster status, after calling.
sky/jobs/recovery_strategy.py:264
↓ 77 callers
Method
post
Sends a POST request. A wrapper for the requests.post method. Builds the url, uses custom headers, refresh tokens if needed.
sky/adaptors/verda.py:319
↓ 74 callers
Method
decode
(cls, encoded_msg: str)
sky/utils/rich_utils.py:70
↓ 71 callers
Function
_test_resources_launch
This function is testing for the core functions on client side.
tests/test_optimizer_dryruns.py:85
↓ 68 callers
Method
load
(path: str)
tests/load_tests/generators/base.py:32
↓ 65 callers
Method
remove
(self, instance_id: str)
sky/provision/paperspace/utils.py:234
↓ 64 callers
Method
add
(self, task: 'task.Task')
sky/dag.py:61
↓ 63 callers
Method
result
(self, timeout=None)
tests/unit_tests/test_skylet_grpc_cancellable.py:63
↓ 61 callers
Method
setdefault
(self, key: str, default: str)
sky/utils/context.py:361
↓ 60 callers
Method
delete
Deletes data for all sky-managed storage objects. If a storage is not managed by sky, it is not deleted from the cloud. User must man
sky/data/storage.py:1538
↓ 59 callers
Method
apply
(self, user_request: UserRequest)
sky/admin_policy.py:230
↓ 58 callers
Method
fileno
(self)
tests/unit_tests/test_sky/server/requests/test_executor.py:407
↓ 57 callers
Method
encode
(self)
sky/admin_policy.py:102
↓ 56 callers
Function
func
()
tests/unit_tests/test_skylet_grpc_cancellable.py:286
↓ 54 callers
Method
start
Start the policy server in a background thread.
tests/unit_tests/test_admin_policy_restful.py:175
↓ 54 callers
Method
to_yaml_config
Returns a yaml-style dict representation of the task. INTERNAL: this method is internal-facing.
sky/task.py:1896
↓ 53 callers
Method
encode
(self, msg: str)
sky/utils/rich_utils.py:66
↓ 48 callers
Method
copy
(self, **override)
tests/unit_tests/test_sky/test_task.py:760
↓ 48 callers
Method
from_yaml
Initializes a task from a task YAML. Example: .. code-block:: python task = sky.Task.from_yaml('/path/to/task.ya
sky/task.py:961
↓ 46 callers
Method
assert_launchable
A workaround to make mypy understand that is_launchable() is true. Note: The `cast` to `LaunchableResources` is only for static type
sky/resources.py:1117
↓ 45 callers
Method
get
Sends a GET request. A wrapper for the requests.get method. Builds the url, uses custom headers, refresh tokens if needed.
sky/adaptors/verda.py:393
↓ 45 callers
Method
submit
Submit a task for execution. If reuse_worker is False, wraps the function to exit after completion.
sky/server/requests/process.py:40
↓ 43 callers
Function
_make_context
Helper to create a DebugDumpContext.
tests/unit_tests/test_sky/utils/test_debug_utils.py:19
↓ 43 callers
Method
format_exc
(self)
sky/utils/thread_utils.py:23
↓ 41 callers
Method
_detect_network_type
Detect the type of Kubernetes network based on node labels. Args: context: The Kubernetes context to check. network_t
sky/clouds/kubernetes.py:1306
↓ 41 callers
Method
run_on_head
Runs 'cmd' on the cluster's head node. It will try to fetch the head node IP if it is not cached. Args: handle: The Reso
sky/backends/cloud_vm_ray_backend.py:5757
↓ 41 callers
Function
wait_until_job_status
( job_name: str, good_statuses: List[str], bad_statuses: List[str] = ['CANCELLED', 'FA
tests/smoke_tests/test_pools.py:142
↓ 40 callers
Method
create_if_not_exists_async
Create a request if it does not exist. Returns: True if a new request was created, False if it already exists.
sky/server/requests/storage.py:56
↓ 40 callers
Method
load_resource
Load the GCP API for the instance type. Do not cache the resource object, as it will not work when multiple threads are running.
sky/provision/gcp/instance_utils.py:154
↓ 40 callers
Function
showToast
(message, type = 'info', duration = 5000)
sky/dashboard/src/data/connectors/toast.jsx:2
↓ 39 callers
Method
clear
Clear current measurements.
tests/test_ssh_proxy_lag.py:81
↓ 39 callers
Function
cn
(...inputs)
sky/dashboard/src/lib/utils.js:4
↓ 39 callers
Method
existing_allowed_contexts
Get existing allowed contexts that start with 'ssh-'. Override the Kubernetes implementation to only return contexts that start with
sky/clouds/ssh.py:128
↓ 38 callers
Function
_make_request
Helper to create a mock Request object.
tests/unit_tests/test_sky/utils/test_debug_utils.py:34
↓ 38 callers
Method
from_str
Returns the cloud instance from the canonical name or alias.
sky/utils/registry.py:32
↓ 38 callers
Method
raise_for_status
(self)
tests/unit_tests/test_catalog.py:29
↓ 37 callers
Function
_accelerator_name_matches
Check if requested accelerator matches any viable name. For backward compatibility with GPU name changes (e.g., when canonical names like 'H2
sky/provision/kubernetes/utils.py:729
↓ 37 callers
Function
_make_record
( job_id: int, status: Optional[ManagedJobStatus], job_name: str = 'train', task_id: int = 0,
tests/unit_tests/test_sky/jobs/test_wait.py:14
↓ 37 callers
Method
commit
(self)
tests/unit_tests/test_sky/server/test_plugins.py:232
↓ 37 callers
Method
decode
Deserialize the SkyPilot API request.
sky/server/requests/requests.py:278
↓ 37 callers
Method
invalidate
* Invalidate a specific cache entry * @param {Function} fetchFunction - The function used to generate the cache key * @param {Array} [args=[]] -
sky/dashboard/src/lib/cache.js:151
↓ 37 callers
Method
pop
(self, cluster_name: str)
sky/provision/vsphere/common/metadata_utils.py:27
↓ 37 callers
Method
resolve
Resolve the volume mount by populating metadata of volume.
sky/utils/volume.py:83
↓ 37 callers
Method
status
(self)
sky/serve/replica_managers.py:521
↓ 36 callers
Method
current_backoff
Backs off once and returns the current backoff in seconds.
sky/utils/common_utils.py:348
↓ 36 callers
Method
items
(self)
sky/schemas/api/responses.py:66
↓ 36 callers
Method
remove
(self, task: 'task.Task')
sky/dag.py:65
↓ 35 callers
Method
check
Check for volume mount conflicts and register the entry. Args: vol: Volume info to check. source: Where the volume ca
sky/utils/volume.py:245
↓ 35 callers
Method
copy
Returns a copy of the given Resources.
sky/resources.py:2095
↓ 35 callers
Method
get_request
Get a request by ID with appropriate locking.
sky/server/requests/storage.py:21
↓ 35 callers
Method
set_job_info_without_job_id
(cls, name: str, workspace: str,
sky/skylet/job_lib.py:1213
↓ 35 callers
Method
tail_logs
(cls, job_id: Optional[int], managed_job_id: Optional[int],
sky/skylet/job_lib.py:1353
↓ 34 callers
Function
_make_volume_config
Helper to create a VolumeConfig with sensible defaults.
tests/unit_tests/test_sky/volumes/test_core.py:1653
↓ 33 callers
Function
basic_pool_conf
( num_workers: int, infra: str, accelerator_string: Optional[str] = None, cpus: Optional[str]
tests/smoke_tests/test_pools.py:367
↓ 33 callers
Function
run_endpoint_test
Run performance test for a single endpoint.
tests/test_ssh_proxy_lag.py:211
next →
1–100 of 14,119, ranked by callers