snowflake.ml.jobs.list_jobs¶
- snowflake.ml.jobs.list_jobs(limit: int = 10, database: Optional[str] = None, schema: Optional[str] = None, session: Optional[Session] = None) DataFrame ¶
Returns a Pandas 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.
database – The database to use. If not specified, uses the current database.
schema – The schema to use. If not specified, uses the current schema.
session – The Snowpark session to use. If none specified, uses active session.
- Returns:
A DataFrame with the list of jobs.
- Raises:
SnowparkSQLException – if there is an error retrieving the job history.
Examples
>>> from snowflake.ml.jobs import list_jobs >>> list_jobs(limit=5)