snowflake.ml.jobs.list_jobs

snowflake.ml.jobs.list_jobs(limit: int = 10, scope: Optional[Union[Literal['account', 'database', 'schema'], str]] = None, session: Optional[Session] = None) DataFrame

Returns a Snowpark DataFrame with the list of jobs in the current session.

Parameters:
  • limit – The maximum number of jobs to return. Non-positive values are treated as no limit.

  • scope – The scope to list jobs from, such as “schema” or “compute pool <pool_name>”.

  • session – The Snowpark session to use. If none specified, uses active session.

Returns:

A DataFrame with the list of jobs.

Examples

>>> from snowflake.ml.jobs import list_jobs
>>> list_jobs(limit=5).show()
Copy