<@ULVA73B9P> given i have a task and a flow in pre...
# ask-marvin
h
@Marvin given i have a task and a flow in prefect 3 . In the flow i am using dasktaskrunner and submitting the tasks in a loop . when ever a task goes to completion it starts again , why is that ?
m
It seems like there is no direct mention of tasks restarting on completion with the
DaskTaskRunner
in the Prefect 3.x documentation or the open GitHub issues. This kind of behavior might not be typical, but there are a few areas you might want to verify: 1. Check for Retries: Ensure that your task or flow isn't configured with retries. If a task is configured to retry on completion or failure, it might appear as though it is restarting. 2. Loop Configuration: Double-check how tasks are being submitted in your loop. Ensure that the logic to submit tasks doesn't accidentally resubmit completed tasks. 3. Using Dask Properly: Make sure you’re using
DaskTaskRunner
and
dask
functionalities correctly. Here's a basic reference from the Prefect 3.x documentation for integrating Dask: Prefect Dask. If you still face issues, you might consider reaching out to the Prefect community on their Slack or GitHub for more targeted help. If you need more specifics on the Dask setup or a code review, I would be happy to help with that too!