Web.get_tasks?

Web.get_tasks?#

Date

Category

2025-09-16 13:50:36

Web API

web.get_tasks is a function in the public tidy3d.web API that retrieves metadata about past simulation tasks from your account. It’s useful for reviewing recent runs, checking their IDs, and organizing workflows.

What does it do?#

  • Returns a list of dictionaries with task metadata (e.g., ID, status, name).

  • Lets you specify how many tasks to fetch and in what order.

  • Can filter tasks by folder name.

Example#

from tidy3d import web

# Get the 5 most recent tasks from the default folder
tasks = web.get_tasks(num_tasks=5, order="new", folder="default")

for t in tasks:
    print(f"Task {t['name']} (ID: {t['id']}) - Status: {t['status']}")