MCPcopy Create free account

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

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

↓ 31 callersMethodadd_store
Initializes and adds a new store to the storage. Invoked by the optimizer after it has selected a store to add it to Storage.
sky/data/storage.py:1437
↓ 31 callersFunctionbasic_job_conf
( job_name: str, run_cmd: str = 'echo "run message"', cpus: Optional[str] = None, memory: Opti
tests/smoke_tests/test_pools.py:396
↓ 31 callersFunctioncancel_jobs_and_teardown_pool
(pool_name: str, timeout: int = 3)
tests/smoke_tests/test_pools.py:74
↓ 31 callersMethodget
(self, cluster_name: str)
sky/provision/vsphere/common/metadata_utils.py:21
↓ 30 callersFunction_add_to_blocked_resources
(blocked_resources: Set['resources_lib.Resources'], resources: 'resources_lib.Re
sky/backends/cloud_vm_ray_backend.py:392
↓ 30 callersFunction_check_return_type
Check that SDK function RequestId[T] matches internal function return type T.
tests/unit_tests/test_sky/server/test_sdk_types.py:20
↓ 30 callersMethodbuild
Returns the entire generated program.
sky/backends/task_codegen.py:295
↓ 30 callersFunctionget
Async version of get() that waits for and gets the result of a request. Args: request_id: The request ID of the request to get. Retu
sky/client/sdk_async.py:79
↓ 30 callersMethodset_nested
In-place sets a nested key to value. Like get_nested(), if any key is not found, this will not raise an error.
sky/utils/config_utils.py:74
↓ 29 callersFunction_get_service_name
Returns a user-unique service name for each test_skyserve_<name>(). Must be called from each test_skyserve_<name>().
tests/smoke_tests/test_sky_serve.py:44
↓ 29 callersMethodget_grpc_channel
(self)
sky/backends/cloud_vm_ray_backend.py:2391
↓ 28 callersFunction_stream_and_get
Streams the logs of a request or a log file and gets the final result.
sky/client/sdk_async.py:207
↓ 28 callersMethodis_launchable
Returns whether the resource is launchable.
sky/resources.py:1113
↓ 28 callersMethoditems
(self)
sky/utils/thread_utils.py:65
↓ 28 callersMethodmodel_dump
(self)
tests/unit_tests/test_sky/utils/test_debug_utils.py:1957
↓ 27 callersMethod_make_test_job
Create a test job with default values.
tests/unit_tests/test_sky/jobs/test_server_queue.py:622
↓ 27 callersMethodflush
Get the current buffered content and clear the buffer. Returns: The buffered log lines as a single string
sky/skylet/log_lib.py:839
↓ 27 callersMethodfrom_name
Check if the cluster name is a controller name. Returns: The controller if the cluster name is a controller name. Oth
sky/utils/controller_utils.py:197
↓ 27 callersMethodset_pending
(cls, job_id: int, managed_job_dag: 'dag_lib.Dag',
sky/jobs/utils.py:3227
↓ 27 callersMethodterminate
( cls, project_id: str, zone: str, instance: str, )
sky/provision/gcp/instance_utils.py:172
↓ 26 callersFunction_load_task_and_apply_policy
( task: sky.Task, config_path: str, idle_minutes_to_autostop: Optional[int] = None, )
tests/unit_tests/test_admin_policy.py:66
↓ 26 callersMethodconstruct
Constructs the storage object. The Storage object is lazily initialized, so that when a user initializes a Storage object on client s
sky/data/storage.py:988
↓ 26 callersMethodrun
(self)
sky/skylet/events.py:54
↓ 26 callersFunctiontest
()
tests/test_global_user_state.py:260
↓ 25 callersMethod_run
( self, cmd, run_env='host', wait_for_docker_daemon: bool = False, sep
sky/provision/docker_utils.py:216
↓ 25 callersMethod_run_slurm_cmd
(self, cmd: str)
sky/adaptors/slurm.py:138
↓ 25 callersMethoddispatch
(self, request, call_next)
tests/unit_tests/test_sky/server/test_middleware_utils.py:22
↓ 25 callersFunctionfetch
(session, url)
tests/skyserve/cancel/send_cancel_request.py:11
↓ 25 callersMethodget_async_engine
Lazy async engine init; delegates table creation to get_engine.
sky/utils/db/db_utils.py:459
↓ 25 callersMethodget_command_runners
Returns a list of local command runners.
sky/backends/cloud_vm_ray_backend.py:2840
↓ 25 callersMethodget_profile
(cls)
sky/clouds/utils/oci_utils.py:172
↓ 25 callersMethodis_job_group
Check if this DAG represents a JobGroup. A DAG is a JobGroup if it has parallel execution mode. This is the defining characteristic t
sky/dag.py:91
↓ 25 callersMethodrun
(self, input: SkyPilotWorkflowInput)
examples/temporal/skypilot_workflow.py:145
↓ 25 callersMethodstart
Start any required background infrastructure. Returns: A process to join on shutdown, or None if no background process
sky/server/requests/queues/base.py:54
↓ 24 callersMethod_make_test_job
Create a test job with default values.
tests/unit_tests/test_sky/jobs/test_utils.py:172
↓ 24 callersMethodcancel
Cancel the context. Idempotent.
sky/utils/context.py:83
↓ 24 callersMethodcancel
(self)
tests/unit_tests/test_skylet_grpc_cancellable.py:56
↓ 24 callersMethodfrom_type
Get the controller by controller type. Returns: The controller if the controller type is valid. Otherwise, returns No
sky/utils/controller_utils.py:242
↓ 24 callersMethodis_same_cloud
(self, other: clouds.Cloud)
sky/clouds/slurm.py:427
↓ 24 callersMethodlabels
(self)
sky/resources.py:729
↓ 24 callersMethodstart
(self)
sky/skylet/events.py:51
↓ 24 callersMethodstop
Stop the policy server gracefully.
tests/unit_tests/test_admin_policy_restful.py:226
↓ 24 callersFunctionwait_until_pool_ready
(pool_name: str, timeout: int = 30, time_between_checks: i
tests/smoke_tests/test_pools.py:80
↓ 23 callersMethodconnect
Establish persistent SSH connection. Returns the connection latency in seconds, or -1.0 on failure.
tests/load_tests/test_ssh_proxy.py:33
↓ 23 callersMethodextract_docker_image
(self)
sky/resources.py:1390
↓ 23 callersFunctiongetSortDirection
(key)
sky/dashboard/src/components/jobs.jsx:2332
↓ 23 callersMethodinitialize
Initialize the test instance. Args: active_cluster_name: Name of a running cluster to use as template terminated_clus
tests/load_tests/db_scale_tests/scale_test_utils.py:60
↓ 23 callersFunctionrequestSort
(key)
sky/dashboard/src/components/jobs.jsx:2324
↓ 23 callersMethodvalidate
Validates the volume.
sky/volumes/volume.py:159
↓ 22 callersFunction_check_replica_in_status
Check replicas' status and count in sky serve status We will check cpus=2, as all our tests use cpus=2. Args: name: the name of the
tests/smoke_tests/test_sky_serve.py:214
↓ 22 callersFunction_test_resources
This function is testing for the core functions on server side.
tests/test_optimizer_dryruns.py:64
↓ 22 callersMethoddelete
(self, instance_id: str)
sky/provision/fluidstack/fluidstack_utils.py:159
↓ 22 callersMethodkeys
(self)
sky/schemas/api/responses.py:60
↓ 22 callersMethodmax_cluster_name_length
(cls)
sky/clouds/scp.py:88
↓ 21 callersFunction_full_traceback
Capture the full traceback, bypassing any tracebacklimit.
sky/utils/debug_utils.py:41
↓ 21 callersMethodcheck_features_are_supported
Errors out if the cloud does not support all requested features. For instance, Lambda Cloud does not support stop, so Lambda.check_fe
sky/clouds/cloud.py:714
↓ 21 callersMethodget_current_user
Returns the current user.
sky/models.py:59
↓ 21 callersMethodget_request_async
Async version of get_request.
sky/server/requests/storage.py:28
↓ 21 callersMethodget_termination_delay_secs
Get termination delay in seconds for a specific task. Args: task_name: The name of the task to get the delay for. Return
sky/dag.py:103
↓ 20 callersMethod_create_mock_node
Helper to create mock Kubernetes node.
tests/unit_tests/kubernetes/test_kubernetes_utils.py:2256
↓ 20 callersMethod_create_mock_node
Helper to create a mock Kubernetes node with labels.
tests/unit_tests/test_sky/clouds/test_kubernetes.py:2828
↓ 20 callersFunction_insert_task
( engine, job_id: int, task_id: int, *, status: ManagedJobStatus, end_at: Optional[flo
tests/unit_tests/test_sky/jobs/test_state.py:41
↓ 20 callersMethod_patch_managed_job_state
Patch managed_job_state functions for testing.
tests/unit_tests/test_sky/jobs/test_utils.py:192
↓ 20 callersMethodcanonical_name
(cls)
sky/clouds/cloud.py:999
↓ 20 callersMethodencode
Serialize the SkyPilot API request.
sky/server/requests/requests.py:239
↓ 20 callersMethodfilter
( cls, project_id: str, zone: str, label_filters: Optional[Dict[str, str]],
sky/provision/gcp/instance_utils.py:189
↓ 20 callersMethodget_config
Return the configuration for AWS S3.
sky/data/storage.py:4883
↓ 19 callersFunction_build_custom_sbatch_directives
Build #SBATCH directive lines from user-supplied sbatch_options. Args: sbatch_options: Dict mapping sbatch option names to values. R
sky/provision/slurm/instance.py:60
↓ 19 callersFunction_create_config_file
(config: str, tmp_path: pathlib.Path)
tests/test_yaml_parser.py:13
↓ 19 callersMethod_format_sql
Format SQL query with correct placeholders for current database. Converts '?' placeholders to '%s' for PostgreSQL, leaves as-is for SQLite.
tests/load_tests/db_scale_tests/scale_test_utils.py:106
↓ 19 callersFunction_map_clouds_catalog
(clouds: CloudFilter, method_name: str, *args, **kwargs)
sky/catalog/__init__.py:19
↓ 19 callersMethodexpand_and_validate_workdir
Expand workdir to absolute path and validate it. Note: if this function is called on a remote SkyPilot API server, it must be after t
sky/task.py:608
↓ 19 callersMethodlist_instances
(self, cluster_name_on_cloud: str)
sky/provision/yotta/yotta_utils.py:163
↓ 19 callersMethodresolve
Resolve secret references to env vars and file mounts. Args: secret_refs: List of ManagedSecretRef from the task YAML.
sky/server/plugins.py:72
↓ 18 callersMethodconnect
(self)
sky/provision/vsphere/vsphere_utils.py:62
↓ 18 callersMethodfrom_dict
(cls, config: Optional[Dict[str, Any]])
sky/utils/config_utils.py:93
↓ 18 callersMethodis_terminal
(self)
sky/jobs/state.py:452
↓ 18 callersMethodregister
(self, cls: Type[T])
sky/utils/registry.py:78
↓ 18 callersMethodrun
Main entry point. Returns on success, raises on failure.
sky/batch/coordinator.py:197
↓ 18 callersMethodvalues
(self)
sky/schemas/api/responses.py:63
↓ 17 callersFunction_async_call_or_wait
(request_id: server_common.RequestId[T], async_call: bool, request_name: str)
sky/client/cli/command.py:335
↓ 17 callersMethod_get
(self, url, contents_key='contents')
sky/clouds/utils/scp_utils.py:193
↓ 17 callersFunction_get_azure_sdk_function
Retrieve a callable function from Azure SDK client object. Newer versions of the various client SDKs renamed function names to have a begin_
sky/provision/azure/instance.py:139
↓ 17 callersMethod_patch_global_user_state
Patch global_user_state for testing.
tests/unit_tests/test_sky/jobs/test_utils.py:230
↓ 17 callersFunction_pvc
(name, path, pvc_name)
tests/unit_tests/test_sky/utils/test_volume_utils.py:533
↓ 17 callersMethodadd_edge
(self, op1: 'task.Task', op2: 'task.Task')
sky/dag.py:69
↓ 17 callersMethodcli_ls_cmd
(store_type, bucket_name, suffix='', recursive=False)
tests/smoke_tests/test_mount_and_storage.py:1328
↓ 17 callersMethodget_accelerator_from_label_value
Given a label value, returns the GPU type
sky/provision/kubernetes/utils.py:431
↓ 17 callersMethodredirect_log
Redirect the stdout and stderr of current context to a file. Args: log_file: The log file to redirect to. If None, the stdout and
sky/utils/context.py:129
↓ 17 callersMethodresolve_and_validate_volumes
Resolve volumes config to volume mounts and validate them. Raises: exceptions.VolumeNotFoundError: if any volume is not found.
sky/task.py:1003
↓ 17 callersMethodschedule_step
(self, force_update_jobs: bool = False)
sky/skylet/job_lib.py:309
↓ 17 callersMethodstart
(self)
tests/load_tests/generators/base.py:91
↓ 16 callersFunction_format_and_log_message_from_errors
Format errors into a string and log it to the console.
sky/provision/gcp/instance_utils.py:102
↓ 16 callersFunction_make_job
(job_id: int, user_name: Optional[str] = 'alice', workspace: Optional[str] = 'ws',
tests/unit_tests/test_sky/jobs/test_server_queue.py:14
↓ 16 callersMethodfrom_instance_type
Returns an instance name object from the given name.
sky/provision/slurm/utils.py:391
↓ 16 callersMethodget_profile_name
Gets the Rclone profile name for a given bucket. Args: bucket_name: The name of the bucket. Returns:
sky/data/data_utils.py:633
↓ 16 callersMethodmake_deploy_resources_variables
( self, resources: 'resources_lib.Resources', cluster_name: 'resources_utils.ClusterNa
sky/clouds/kubernetes.py:522
↓ 16 callersMethodoptimize
Find the best execution plan for the given DAG. Args: dag: the DAG to optimize. minimize: whether to minimize cost or
sky/optimizer.py:109
↓ 16 callersMethodoverride_envs
(self, envs: Dict[str, str])
sky/utils/context.py:158
↓ 16 callersMethodto_dict
Convert to dictionary for API responses.
sky/recipes/db.py:204
← previousnext →101–200 of 14,119, ranked by callers