Friday
I have a continuous workflow. It is continuous because I would like it to run every minute and if it has stuff to do the first task will take several minutes. As I understand, continuous workflows won't requeue while a job is currently running, whereas scheduled/periodic workflows will be queued if a previous job is running. My problem is that I need to add a second task in the workflow that runs after the first task. When I try to create the second task I get an error saying "having dependencies inside a task is not allowed in continuous job." The dependency here is that the second task comes after the first task. How can I create a continuous workflow with multiple, sequenced tasks? If this can't be done, how can I have a frequently scheduled workflow that does not queue a second job while a previous job is still running? Thank you!
Friday
Hi @h2p5cq8,
Friday
Hi @h2p5cq8,
No problem! and you can have the queue option disabled to stop it. Go to the Advanced settings in the Job details side panel and toggle off the Queue option to prevent jobs from being queued
Friday
Hi @h2p5cq8,
Unfortunately, continuous workflows typically don’t support dependencies between tasks, as they are designed to run continuously without a defined start and end. Let me check for additional approaches.
Friday
Hi @h2p5cq8,
Friday
Thank you @Alberto_Umana. I am happy to make it a scheduled workflow that runs every minute. I have set concurrency to 1, but will that keep subsequent jobs from queueing up? If not, is there some other way to stop Databricks from queueing a subsequent job while a previous job is running? I don't think it's absolutely required; I am just trying to avoid a scenario where a job becomes long running and the job queue starts filling up.
Friday
Hi @h2p5cq8,
No problem! and you can have the queue option disabled to stop it. Go to the Advanced settings in the Job details side panel and toggle off the Queue option to prevent jobs from being queued
Friday
Perfect! Thank you for your help @Alberto_Umana
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group