AxMeep_execute_code
Submit a Meep simulation script for remote execution as a Kubernetes job, returning a task ID to track progress and retrieve results.
Instructions
Submit a Meep script for execution. Meep runs as a remote Kubernetes job (conda + MPI), so this returns a task_id immediately and nothing has been simulated yet — poll get_simulation_status, then call get_results. The script must import meep and contain at least one direct export('name', obj) call; otherwise it is rejected before submission at no cost. Typical runtime is 1-2 minutes (6 hour hard deadline). Requires a key with playground access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The meep Python script to run. Must import meep and contain at least one direct export('name', obj) call, or it is rejected before submission at no cost. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | ||
| error | No | ||
| status | No | ||
| success | No | Present and false only when the submission was rejected. | |
| task_id | No | Pass to get_simulation_status and get_results. | |
| error_type | No | ||
| status_code | No | ||
| exports_detected | No |