Ponraj
07/26/2024, 8:11 PMMarvin
07/26/2024, 8:11 PMprefect task-run ls --state Running
2. Stop a Running Task via CLI:
- Use the CLI command to cancel a running task:
prefect task-run cancel <task_run_id>
- If the above commands don't directly provide the solution, you might need to look into stopping tasks via related infrastructure (e.g., ECS for AWS). Refer to the ECS documentation: ECS Agent Configuration.
For more specific use-case examples or additional help, you can refer to Prefect's GitHub issues, such as:
- Cannot stop ECS task: the cluster could not be found
- Docker agent tasks stuck in submitted state
For further assistance, you can explore Prefect's Tasks Documentation or refer to the documentation on integrations with AWS ECS.
Let me know if you need anything else.