MCPcopy Index your code

hub / github.com/skypilot-org/skypilot / functions

Functions14,119 in github.com/skypilot-org/skypilot

↓ 1,094 callersMethodget
Get the current value atomically. Returns: The current integer value.
sky/utils/atomic.py:13
↓ 907 callersMethodinfo
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 callersMethodpatch
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 callersMethodget
(self, instance_id: str)
sky/provision/lambda_cloud/lambda_utils.py:40
↓ 645 callersMethodtime
(self)
tests/unit_tests/kubernetes/test_provision.py:1300
↓ 519 callersMethoditems
(self)
sky/usage/usage_lib.py:534
↓ 401 callersMethodsleep
(self, secs)
tests/unit_tests/kubernetes/test_provision.py:1303
↓ 389 callersMethodexecute
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 callersMethodget_cluster_name
(self)
sky/backends/backend.py:26
↓ 340 callersMethodpop
(self, key: KeyType)
sky/utils/thread_utils.py:89
↓ 314 callersMethodupdate
(self, msg: str)
sky/utils/rich_utils.py:124
↓ 289 callersMethodget
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 callersMethodget
()
tests/smoke_tests/plugin/skypilot_plugin_smoketest/__init__.py:15
↓ 268 callersMethodformat
(self, record)
sky/sky_logging.py:44
↓ 242 callersMethodinfo
Get information about the autoscaler.
sky/serve/autoscalers.py:179
↓ 228 callersMethodget_engine
Lazy sync engine init with double-checked locking.
sky/utils/db/db_utils.py:443
↓ 226 callersMethodvalues
(self)
sky/usage/usage_lib.py:537
↓ 220 callersMethodget
(self)
tests/unit_tests/test_sky/server/requests/test_executor.py:559
↓ 213 callersMethodformat
Format the volume table for display.
sky/client/cli/table_utils.py:201
↓ 211 callersMethodkeys
(self)
sky/clouds/utils/scp_utils.py:98
↓ 204 callersMethodjson
(self)
tests/unit_tests/test_sky/volumes/test_runpod_volume.py:212
↓ 181 callersMethodget
* 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 callersMethodwrite
(self, record: Dict[str, Any])
tests/load_tests/generators/base.py:25
↓ 176 callersMethodget_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 callersMethodfilter
(self, record: logging.LogRecord)
sky/serve/controller.py:34
↓ 165 callersMethodmap
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 callersMethodrun
Run the server process.
sky/server/uvicorn.py:201
↓ 152 callersMethodclose
(self)
sky/skylet/log_lib.py:864
↓ 151 callersMethodcopy
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 callersMethodinvoke
(self, ctx)
sky/client/cli/command.py:1084
↓ 142 callersMethodwrite
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 callersMethodfrom_yaml_config
( config: Dict[str, Any], env_overrides: Optional[List[Tuple[str, str]]] = None, secre
sky/task.py:641
↓ 138 callersFunctionpatch
()
sky/skylet/ray_patches/__init__.py:70
↓ 136 callersMethodadd
Add a request to the request aggregator.
sky/serve/serve_utils.py:271
↓ 135 callersMethodflush
(self)
tests/unit_tests/test_sky/server/requests/test_executor.py:414
↓ 127 callersMethodcommit
Plugin git commit hash.
sky/server/plugins.py:266
↓ 114 callersMethodset_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 callersMethodecho
(self, message: str)
tests/smoke_tests/smoke_tests_utils.py:393
↓ 108 callersMethodwait
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 callersMethodvalidate
(self, skip_file_mounts: bool = False, skip_workdir: bool = False)
sky/dag.py:180
↓ 93 callersMethoddecode
(cls, body: str)
sky/admin_policy.py:117
↓ 93 callersMethodwrite
(self, data)
tests/unit_tests/test_sky/server/requests/test_executor.py:411
↓ 91 callersMethodset
(self, instance_id: str, value: Optional[Dict[str, Any]])
sky/provision/lambda_cloud/lambda_utils.py:47
↓ 81 callersFunctionwrite_yaml
(yaml_file: tempfile.NamedTemporaryFile, config: str)
tests/smoke_tests/test_pools.py:440
↓ 80 callersMethodexit
(self)
sky/utils/rich_utils.py:96
↓ 77 callersMethodlaunch
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 callersMethodpost
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 callersMethoddecode
(cls, encoded_msg: str)
sky/utils/rich_utils.py:70
↓ 71 callersFunction_test_resources_launch
This function is testing for the core functions on client side.
tests/test_optimizer_dryruns.py:85
↓ 68 callersMethodload
(path: str)
tests/load_tests/generators/base.py:32
↓ 65 callersMethodremove
(self, instance_id: str)
sky/provision/paperspace/utils.py:234
↓ 64 callersMethodadd
(self, task: 'task.Task')
sky/dag.py:61
↓ 63 callersMethodresult
(self, timeout=None)
tests/unit_tests/test_skylet_grpc_cancellable.py:63
↓ 61 callersMethodsetdefault
(self, key: str, default: str)
sky/utils/context.py:361
↓ 60 callersMethoddelete
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 callersMethodapply
(self, user_request: UserRequest)
sky/admin_policy.py:230
↓ 58 callersMethodfileno
(self)
tests/unit_tests/test_sky/server/requests/test_executor.py:407
↓ 57 callersMethodencode
(self)
sky/admin_policy.py:102
↓ 56 callersFunctionfunc
()
tests/unit_tests/test_skylet_grpc_cancellable.py:286
↓ 54 callersMethodstart
Start the policy server in a background thread.
tests/unit_tests/test_admin_policy_restful.py:175
↓ 54 callersMethodto_yaml_config
Returns a yaml-style dict representation of the task. INTERNAL: this method is internal-facing.
sky/task.py:1896
↓ 53 callersMethodencode
(self, msg: str)
sky/utils/rich_utils.py:66
↓ 48 callersMethodcopy
(self, **override)
tests/unit_tests/test_sky/test_task.py:760
↓ 48 callersMethodfrom_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 callersMethodassert_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 callersMethodget
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 callersMethodsubmit
Submit a task for execution. If reuse_worker is False, wraps the function to exit after completion.
sky/server/requests/process.py:40
↓ 43 callersFunction_make_context
Helper to create a DebugDumpContext.
tests/unit_tests/test_sky/utils/test_debug_utils.py:19
↓ 43 callersMethodformat_exc
(self)
sky/utils/thread_utils.py:23
↓ 41 callersMethod_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 callersMethodrun_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 callersFunctionwait_until_job_status
( job_name: str, good_statuses: List[str], bad_statuses: List[str] = ['CANCELLED', 'FA
tests/smoke_tests/test_pools.py:142
↓ 40 callersMethodcreate_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 callersMethodload_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 callersFunctionshowToast
(message, type = 'info', duration = 5000)
sky/dashboard/src/data/connectors/toast.jsx:2
↓ 39 callersMethodclear
Clear current measurements.
tests/test_ssh_proxy_lag.py:81
↓ 39 callersFunctioncn
(...inputs)
sky/dashboard/src/lib/utils.js:4
↓ 39 callersMethodexisting_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 callersFunction_make_request
Helper to create a mock Request object.
tests/unit_tests/test_sky/utils/test_debug_utils.py:34
↓ 38 callersMethodfrom_str
Returns the cloud instance from the canonical name or alias.
sky/utils/registry.py:32
↓ 38 callersMethodraise_for_status
(self)
tests/unit_tests/test_catalog.py:29
↓ 37 callersFunction_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 callersFunction_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 callersMethodcommit
(self)
tests/unit_tests/test_sky/server/test_plugins.py:232
↓ 37 callersMethoddecode
Deserialize the SkyPilot API request.
sky/server/requests/requests.py:278
↓ 37 callersMethodinvalidate
* 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 callersMethodpop
(self, cluster_name: str)
sky/provision/vsphere/common/metadata_utils.py:27
↓ 37 callersMethodresolve
Resolve the volume mount by populating metadata of volume.
sky/utils/volume.py:83
↓ 37 callersMethodstatus
(self)
sky/serve/replica_managers.py:521
↓ 36 callersMethodcurrent_backoff
Backs off once and returns the current backoff in seconds.
sky/utils/common_utils.py:348
↓ 36 callersMethoditems
(self)
sky/schemas/api/responses.py:66
↓ 36 callersMethodremove
(self, task: 'task.Task')
sky/dag.py:65
↓ 35 callersMethodcheck
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 callersMethodcopy
Returns a copy of the given Resources.
sky/resources.py:2095
↓ 35 callersMethodget_request
Get a request by ID with appropriate locking.
sky/server/requests/storage.py:21
↓ 35 callersMethodset_job_info_without_job_id
(cls, name: str, workspace: str,
sky/skylet/job_lib.py:1213
↓ 35 callersMethodtail_logs
(cls, job_id: Optional[int], managed_job_id: Optional[int],
sky/skylet/job_lib.py:1353
↓ 34 callersFunction_make_volume_config
Helper to create a VolumeConfig with sensible defaults.
tests/unit_tests/test_sky/volumes/test_core.py:1653
↓ 33 callersFunctionbasic_pool_conf
( num_workers: int, infra: str, accelerator_string: Optional[str] = None, cpus: Optional[str]
tests/smoke_tests/test_pools.py:367
↓ 33 callersFunctionrun_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