Skip to main content

Orchestration With Lakeflow Jobs

Summary

  • Visual orchestration: Lakeflow Jobs provides an easy-to-use orchestration service for building, managing and automating data and AI workflows with a visual interface.
  • Smart automation: The platform supports automated task triggers (new files or table updates), built-in loops and conditions to reduce manual work and make workflows dynamic.
  • End-to-end coverage: Lakeflow Jobs automates everything from ETL pipelines to machine learning model training, with monitoring, repair runs and Lakeflow Connect for publishing dashboards.

Orchestration With Lakeflow Jobs

Watch: Orchestration With Lakeflow Jobs
Talk by Anthony Podgorsak, Product Manager, Databricks ; Saad Ansari, Product Management, Databricks
Curious about orchestrating data pipelines on Databricks? Join us for an introduction to Lakeflow Jobs (formerly Databricks Workflows) — an easy-to-use orchestration service built into the Databricks Data and AI platform. Lakeflow Jobs simplifies automating your data and AI workflows, from ETL pipelines to machine learning model training. In this beginner-friendly session, you'll learn how to: Build and manage pipelines using a visual approach Monitor workflows and rerun failures with repair runs Automate tasks like publishing dashboards or ingesting data using Lakeflow Connect Add smart triggers that respond to new files or table updates Use built-in loops and conditions to reduce manual work and make workflows more dynamic We’ll walk through common use cases, share demos and offer tips to help you get started quickly. If you're new to orchestration or just getting started with Databricks, this video is for you.
Here’s more to explore:
Production ready data pipelines for analytics and AI: https://www.databricks.com/solutions/data-engineering
The Big Book of Data Engineering: https://www.databricks.com/resources/ebook/big-book-data-engineering-2nd-edition
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

Chapters

FAQs

What is Lakeflow Jobs?

Lakeflow Jobs (formerly Databricks Workflows) is an easy-to-use orchestration service built into Databricks that automates data and AI workflows from ETL pipelines to machine learning model training.

How can you build workflows?

Lakeflow Jobs enables visual pipeline building without requiring code, allowing teams to drag and drop tasks, set dependencies and create complex workflows easily.

What are smart triggers?

Smart triggers automatically start workflows when new files arrive or tables are updated, enabling real-time data pipeline orchestration rather than scheduled runs.

Who is this service designed for?

Lakeflow Jobs is designed for beginners and teams new to orchestration, providing an accessible way to automate data engineering workflows without complex configuration.

Full transcript

0:00 Introduction to orchestration

So good morning everyone. Thanks for uh joining us today. We'll speak about uh everything new what's going on with Legow Jobs. I'm a product manager at data bicks and I'm joined today by uh sad. Hey folks uh thank you for uh taking the time. I know this might be early in the day for some of you so uh thank you. Really appreciate. We'll try not to uh put you to sleep. Um so both and I are part of the product team uh at uh uh LakeFlow in Amsterdam.
And as mentioned, we'll cover uh Lake Flow, Lakeflow jobs specifically and uh tell you all about it. So um you're going to see this slide uh almost on all of the presentations today. We'll try our best to make sure that what we tell you here is uh accurate. Um but uh just please uh keep this in mind uh that uh we are uh among friends here. We'll try to share as much as we can uh over here in this forum. Um so hopefully you're in the right room uh today and um we'll start off with uh fairly um sort of beginner stuff and then we'll build uh uh as we go along.
And hopefully you know you know what a data pipeline is. you've uh probably struggled with setting it up or uh not that's also fine. Uh but uh you want your workflows to be reliable. You want to make sure that you can automate them, you can schedule them and um you know a little bit about orchestration and that's why you're here. Um and by the end of today or by the end of this talk um you should be able to um run your own workflow.
We'll take you uh like I said from zero to hero uh in in the next 40 minutes and we'll go a little bit deeper into what lakeflow jobs are and um uh we'll cover some of the advanced topics uh but we'll also point you to other uh talks that are happening uh this week that you can learn more about. And so um we'll start off with plain English before we move to code. Uh so orchestration uh basically what um it translates to is you've got something uh let's say you want to ingest data into your lakehouse and there's a sequence of steps that you want to go through clean it transform it and maybe publish it in a dashboard and uh get a report uh uh to your CEO and uh what orchestration lets you do is it takes you uh it lets you define that sequence of steps.

2:08 What is Lakeflow?

It lets you um specify how it gets triggered and um you also have the ability to track uh what happened and what didn't and hopefully do some historical analysis on it. So TLDDR automates task, sequences them, serializes uh the uh the dependencies and uh handles what's uh uh you know wrong with it and hopefully lets you uh fix problems as you go along. So with that, we'll just get into this a little bit more. Uh so lakeflow is a term you'll hear a lot uh this conference and you'll actually learn a lot more in the uh keynote in a couple of uh uh days.
I think it's on Thursday, right? Yes. And I just want to take a moment to kind of just internalize this thing because um over the last year we've been running a lot of uh previews and um so you will hear this and it'll part become part of your language hopefully soon. And it's really a collection of our uh data engineering tools under one umbrella, one unified experience. Uh starts with ingesting data. That's uh this product that we call lakeflow connect.
Um then it lets you transform your data. So DT you might be familiar. Uh it's a declarative way to uh express your pipeline. So you can define what you want um as opposed to how you want to get it done. Uh and then uh jobs uh which is the subject of our talk today is all about how you orchestrate it. Um and um you might be familiar with uh data bricks workflows. And so this is the next step in our evolution. So we'll cover that a little bit later.
Um so when I was uh uh using chat GPT to do my slides uh last week, no I promise I I did most of them myself. Um I kept getting tripped up on the is is it what is uh lakeflow jobs or what are lakeflow jobs. So it told me that it's a proper uh compound noun. So is is the correct verb here. So anyway that was my too early for jokes. Uh but anyway uh so lakeflow jobs basically like I said formerly the artist formerly known as data bricks workflows.

4:20 Lakeflow Jobs overview

Uh this is lakeflow jobs is the orchestrator. It is a native engine that we've built inside the product. Uh and you can go from very simple things like scheduling notebooks to more advanced workflows. Um we give you a nice uh visual canvas where you can drag and drop. Uh so it's very accessible for users uh across the stack. We also let you use u a programmable interface uh and we'll cover that today a little bit but more talks uh later. uh and I uh this triggers there's a lot of logic around orchestration around retries back fills alerting that's built in and then we also let you productionize this uh using uh git uh data bricks asset bundles if folks are familiar with that actually I am uh giving a talk on that later today as well so hopefully we'll see you guys there uh as well and so uh if you've been running uh your uh spark jobs or your pipelines uh using just ad hoc scripts you're in the right place because we've got a native solution for you.
Um, and it also provides you with the launchpad to productionize your workloads. Um, and we'll cover some of that as well. And I just want to take a quick note to mention that we go very heavy on ETL and um, data engineering, but the orchestrators for the whole lakehouse. So machine learning workloads is also something that we uh, support uh, on the platform. And um, good news is you have choice. Uh there's a number of um options that you can use to orchestrate your workflows.
Um Airflow um Azure ADF um data factory fabric data factory. There's a number of um options that you have available to you. And the challenge that you might have uh is it's a separate uh you know if you're using the orchestration outside of the product, it's another tool that you have to learn. It might not be accessible to everybody. For instance, if airflow does require a little bit of like pythonic uh sort of um sort of uh effort, let's say um and so you want to kind of like I said earlier, you want to go up the stack to be able to make this accessible.
And um you want native observability features built into the product and um you don't have to run uh anything else. you just get this out of the box uh free uh we don't charge for the orchestrator. Uh so that's something that's uh a really nice uh capability to have. Um then if we go to the next slide. Thank you. Um so I think there's three things here. Maybe let's just go through the uh animation really quickly. So I mentioned authoring.
Um we'll cover some of that uh today. The visual authoring piece. Um but you have more complex ways to also express your uh um your DAG uh the uh uh the workflow that you're authoring. Um we provide you with insights within the product. Uh so you'll see there's actually a talk on observability. My colleague there at the back she has one on Thursday. So we'll we'll share some of the details as well so you can learn about that.
And uh 39's uh 395s actually very uh stable reliable product. uh we have our engineers also in the room who might be paged to go fix this uh if we have to but we want to make sure that if you're working your if you're running your workload here it is uh reliable. Um then um there's some stories out there. It's uh helpful to sort of see how people have used this, what they've learned, what they've taught us. Uh and we really appreciate feedback.
Um, so whether it's on Reddit or direct email to us, please do let us know what your experience uh has been or will be if you if you haven't used this yet. Um, and then let's uh move on. Um, perfect. So enough talking. I'm the guy who does the talking, but Anony's the guy who's going to do the building. So maybe, you can take us through this. Yeah. Awesome. So thanks. So most or if not all the product team at data bricks were all engineers by training.

8:33 Live demo: Building a workflow

We all come a technical background. So we wanted to put most of the time the real brunt of this presentation on actually building something with you live and this is kind of an interesting talk is I looked into some of Assad's early notebooks when he just joined data bricks and uh they're quite heavy uh they really combine all of the extraction of data to the actual processing the transformation logic um as well as the actual sort of publishing of this data into specific dashboards.
So I just sort of wondered in the beginning why' you kind of combine everything into one. Uh well that's how I got it. So when I got in um I just got this notebook that does everything from transform dashboard all of that. So okay you can start with that. So I actually have the notebook with me right here. Very very aptly named Sod's awesome notebook. So I noticed on all the sort of cadence of running this notebook you ran it daily but it seemed to be manual.
Was there any reason for that? Well, the CEO needs to see the report every day. So, fair enough, you know. Yeah. No, that makes sense. But what we can actually do instead of running it every day manually, we can schedule it to run. And what this essentially does is it creates a cadence of the job. So, you set the schedule once, you never have to set it again. It'll just run. And this is super easy to do in the UI. If you just click add schedule in the top right, if you want to do something really simple, whether or not it's every day, every two days, every hour, or every week, it's really easy to do here.
Or if you want to create a bit more sort of advanced scheduling, you can do it here. Or if you're familiar with cron, you could also do that. However, you said this one is run daily, right? Let's do it. Okay, cool. So, so we'll just keep this really simple. We'll just create the schedule here. And in a few clicks, this notebook will run automatically every single day. So what we just did here is we created a data bricks job.
And as S was saying, this is sort of orchestrator that runs either your notebooks or other workloads there. But I actually have a follow-up question. Why do you want to run it daily? Why specifically daily? Well, um I just want to make sure, like I said, uh when the data is there, the job uh processes it and delivers the report to my CEO. And what if the data isn't there? Then what happens? How often does that happen?
Well, it happens a lot. So, uh I end up uh losing money sometimes because the thing runs, there's no data or the data comes at 9. So, um yeah. All right. That's actually interesting you bring that up. So in addition to these sort of periodic triggers the schedule you also have more datacentric triggers and what this specifically means is that a job will only run if data is updated or if data has arrived in a specific storage location.
And this is really easy to do in the UI as well. All we need to do is edit the trigger here. Change it to table update. And this table update trigger, as you can see on the screen, what it does is that it monitors tables for changes in the source data, whether or not it's an update, a merge, or a deletion. And then what'll happen here is that your job will only run when the data is actually ready. So in this notebook, so this notebook is specifically it watches one table.
And uh what we need to do here is just define the table in here. And when we save this trigger, what'll happen is that the notebook will only run when the data is ready to go and when the data arrives. We usually recommend this specifically if customers want to create a sort of data mesh architecture, a bit more decentralized processing. So these data triggers are super powerful. Schedules are great. Periodic triggers are great, but if you care about the data being ready and ready to go for your processing, this is usually what we would recommend here.
Let me go back here. So then the next part here is that the notebooks again they're quite large and I know you said this is sort of how you got the notebook but what we usually would recommend is just sort of par parallelizing everything within a job itself and there are three components to your notebook I thought there's ingesting data bringing in data there's the actual transformation of the data and there's the pushing of the data and I I just had a quick question.

12:34 Ingesting data with Connect

So where do you actually want to bring in data from? So there's a Salesforce uh Salesforce. Yeah. Okay. And previously if I saw in your notebook, you needed to bring it into a staging bucket and then into data bricks afterwards, right? That is correct. Okay. All right. So we have something called LakeFlow Connect. We talked about that. Yeah. Which is really really cool. It's really useful. And what flow connect is able to do is bring in data directly from s and database locations.
And again here it can be done super easy directly in the UI within a job itself. So within Yeah. So something looks a little different about this UI. Yeah. So it's actually good that you bring that up. So with leg jobs, we're doing a lot of work around the overall UI and UX of the product. But don't worry, it's fully backwards compatible. There's no migration path. Everything will just continue to work as is. But looks pretty cool, eh?
Yeah. Yeah. It's pretty nice. Yeah. So then and you're doing a video here. So I'm assuming this is actually capability that's uh possible and it's just uh just setting up Salesforce connector Salesforce connector. That's just something that we didn't get done for our demo basically. So yeah, but this is possible today. Yeah. Yeah, absolutely. Completely possible today. So then here again we're just renaming the job something quite apt for this.
And configuring a connect task here is actually really really easy. If any of you have used the LakeFlow Connect previews, it's the exact same really easy UI point-and-click experience to configure uh the connectors just all wrapped within a job. So here we just connect the Salesforce connector, bring it a cool pipeline name. This is all the same as if you were doing it directly within LakeFlow Connect. So right here, if you're unfamiliar, I'll just speak to it quickly.
This is where you define where you want your event log to go. And what this will do is this will store all of the events within your injection pipeline. So here you just define the specific location of it and then you define the predefined connection to your source. Here we're using a Salesforce connector. And what's happening right now is that compute is starting to explore the data in the source to present it on the screen here so that you can select what specific tables or what data you actually want to ingest.
Here we'll select all tables just because we want to bring all the data into data bricks, select the destination, and then what's happening now is that we're just doing a bunch of internal checks to make sure that everything is all good. This is a fully managed, fully easy to use solution. So right now we're just checking to make sure that everything is all good with the ingestion. Now once it's done, you just save the task and it's as easy as that.
Now whenever this job is run it it will ingest the specified tables from Salesforce without any other external um external work required on your end. So it's really really quite cool. So now that we have all of the data into data bricks let's see if we're going back to the notebook. You had some transformation logic if I remember right? Y and I just had a question on that as well. So you used a notebook for this and I'm just sort of wondering why why a notebook for the transformation.
Well, I have a programming background so I like to define how things are done. Uh so I had to go specify every bit of detail inside the notebook. Okay. So you say how things are done. So you had to define the what and the how. Correct. Yeah. Okay. So we actually have we have another product for this called Delta Live Tables DT pipelines. Stay tuned. You'll learn more about this in uh within the next few days. And essentially what this does is you only need to define the what.
You don't need to define how. You define the what and then the engine decides the most efficient way of doing the processing. So it's super power and this is usually what we recommend. They're super easy to do and super efficient and super powerful. So I thought we actually would make more sense to do this live. So we'll go over to data bricks. This is the task that we just created previously. And adding a task within jobs in the UI is again really easy.

17:06 Transforming and publishing data

It's all just fully point. So we want to add a pipeline here to do the transformation on the data that we just ingested from Salesforce. So if we add a task, we have a bunch of different tasks where we're able to do uh transformations whether it's a notebook, SQL, Python files, jars, dbt models, anything. But here we'll just go down to pipeline. Here we'll give it a task name. Let's say I process regional data. You see it's a pipeline task.
Here we can select the pipeline. So you can either search something directly, define the pipeline type or you can create a new pipeline which is what you saw in the previous video. Here we'll just collect we'll just connect the DT pipeline that we already created. And then here we'll simply create the task. after we specify that it depends on this first ingest task. So once we create this task, what we just did is created a sequence of steps.
So whenever the job is run, you will first ingest CRM data from Salesforce and then you will process all of this data. But another thing I noticed about the notebook, it fully recomputed all of the tables every time it ran, right? Yeah. So I'm expecting that's going to happen here. Yeah. So no. So the cool thing about DT is that it supports fully incremental transformation. And what I mean by this is that it'll only process new data that arrived.
It won't do full recomputes. So that's kind of part of the reason why it's so efficient and really quite fast. So it's quite cool. Yeah. All right. So now we've done the ingestion. We've brought data into data bricks. We've done the transformation. We've transformed the data inside of data bricks. Now if I remember the third part of the notebook was publish it was creating visuals which you had to manually put to a dashboard.
Correct? That's correct. Yeah. Okay. So here within jobs within LakeFlow jobs we're also able to orchestrate automated dashboard refreshes. So this is quite useful as well. We cover the full spectrum of ETL within our orchestrator. And again adding a task adding a dashboard task is just as easy as adding any other task here. So we just click this in the UI. We can also just directly search for it here. And then we'll give it a task name.
We'll just say update dash. All succeeded. And here we just need to select the specific dashboard that we have as well. You can search for it. SQL warehouse everything is optional with serverless compute. You don't need to worry about any info or anything. It'll just work. So we save the task here and there it is. So from here what we just did is we just created a full endtoend ETL pipeline starting from ingesting data from Salesforce then transforming the data using DT pipelines and then updating an AIBI dashboard.
So within the UI it's really as easy as that but as SD mentioned we also support for the more advanced users a bit more programmatic experience with full support for CI/CD and everything as well. So I think let's actually just run the job and then I can walk walk you through some of the observability features afterwards. So here a run just triggered and we can either view the run here or if we go back to runs we can see specifically everything that's sort of starting and you're able to run multiple instances at the same time.

20:21 Job monitoring and observability

So here we can see when something is running, we can see the tasks, their status, or if we go into a specific job run, we're able to see the graph as well the status of each of the tasks, whether or not it's currently queued or it's running, it's blocked, succeed, failed, as well as specific details, the duration, how long is it spent in the queue. Or if you're a bit more sort of visual and prefer gant charts, then you're able to see it directly in the timeline view, which again will show you each task, its status, and but in a more of a list view, which you can also see here, but this supports a little bit more filtering, a bit more granularity in the view.
So the monitoring observability is quite powerful. I'll go into a little depth here, but again, I'll introduce a talk which you'll be able to see within the next few days that'll give a bit more a bit more detail here. So the example we gave here was relatively straightforward, but the possibilities with LegFlow jobs are much more than we have much more advanced functionality. Can probably give a bit of a sneak peek into the advanced functionality.
Cool. Nice. All right. So the advanced functionality within jobs is quite cool. Um if we want to get into a bit more sort of advanced control flow patterns for a bit more complex orchestration we have something called a conditional task which is essentially will allow you to create branching in your jobs. So you can define a specific condition that is either met and resolves as true or false. If true it goes in one direction if false another direction goes.

21:49 Advanced capabilities

So this is really quite useful. you can run only a subset of tasks. And this is particularly useful when you're it iteratively developing jobs and you want to sort of test individual components in isolation or if you have to debug, you're able to fix specific tasks and only rerun that task or that subset of tasks. It saves money. You don't need to reuse all the compute for the entire job. You can run only the tasks you want.
We have support for backfills. really useful if you have data that arrives late and you need to process this data for specific date ranges in the past as well as you're able to trigger other jobs directly from the orchestrator. Again, if you want to create a bit more distribution of your jobs, you want to create more of a data mesh, this one is quite powerful. As well as this, we also support looping over individual tasks and we'll go into a bit more depth in that um in the talk that you'll see on the top right corner. data triggers and advanced control flow with LakeFlow jobs.
I very much recommend you guys watching it. It's a really cool presentation. So all of this of course comes with great observability and if you want to learn more about observability then I recommend going to the talk in the top right corner as well. You're able to discover your data assets, your jobs and pipelines with a unified list between both sets of assets. You're able to search by name or by ID. You can filter by tags, by who's running the job, who owns the job or pipeline.
It's really quite useful for the discoverability of all of your assets. You're able to monitor the health of your runs. You're able to see how what are the top error codes, how many have succeeded, failed, or um or a block for whatever reason. And again, here you can monitor the health of your jobs and pipelines. Filter by time, filter if it's a job or a pipeline. A lot of granular control here directly in the UI. you're able to use the uh event log to debug.
You'll see exactly what task failed, when it failed, what the failure code is, what happened, all within the UI. Or if you have SQLbased tasks, you're able to see the SQL profile. So this is by query, you'll see how many bytes are read, rows, red, rows red, and there's really really granular information about each individual query in your workload. If you have any problems for whatever reason, you're able to be notified of them.
We have onboard integrations to Slack, Microsoft Teams, Pager Duty, or you're able to configure generic web hooks if you prefer to kind of do things a little bit yourself or again at the end of the day, of course, we have emails. Whenever you create a job, you're able to define whether or not you want to be notified on it on if your job succeeds, fails, starts, or also if the job runs too long or if you have streaming jobs, if you have too many bytes or if you too much of a backlog, you're also to able to be notified of that.
So, we have both proactive and reactive notifications to let you know if there are problems. And of course, if you prefer a bit more queryable format, um you're able to see it all with system tables. This is both health information. This is cost information. All this observability, I won't really touch on it hugely here. I'll just give a bit of a highle view, but I really would recommend going to the talk in the top right corner.
Or if you have questions about this, there's someone in the back left corner. That would be the person to go to on this. And this is really just the beginning. We have so much more. Um, we're able to connect to external tools using jobs. whether or not you want to run a DBT project or if you want to connect to PowerBI, you're able to submit a Spark job on a specified cluster. You can run clean room notebooks, which is really quite useful for customers in healthcare or any other customers need to deal with really sensitive data.
With clean room notebooks, you're able to run notebooks in a completely secure environment all within data bricks. And you're also able to orchestrate and train your AI models. Um, everyone is building Genai applications these days. We all want to build agents that can do things on top of your data. With LegFlow jobs, you're able to directly orchestrate and train your AI models such that you can build agents on top of it using the other sides of the data bricks product and you can deploy it all with data bricks asset bundles.
Um with here you're able to have full version control deploy to specific uh catalog so dev staging or production and you're able to see this both in the UI or the CLI in a fully programmatic sense. So again if you want to learn more sod's talk here is actually later today at 11:30 a. m. I very much would recommend going to that one as well. So then just sort of yeah wrapping it all together I'll uh hand it back to Sad.
All right, perfect. Thank you. Um maybe let's run to the next one. Um so as we we talked about earlier uh this authoring experience u we did go through the visual experience. We'll cover the Python experience uh in the DAB talk as well as in the uh advanced uh lakeflow uh jobs talk uh insights uh around monitoring uh as uh mentioned we'll be covering that in more detail on Thursday and then uh like I said earlier 395 so you don't have to worry about running the thing uh we run it for you and um yeah just at the end just you know just um We provide um the native orchestrator for uh your lakehouse.

27:01 Takeaways and resources

Uh if you have these requirements and you want to sort of not run it yourself, uh please come talk to us, use it. It's part of the tool set that we provide within the workspace and uh obviously it's uh cloud provider agnostic. So you don't have to worry about where it runs. Uh we also do provide uh serverless uh capability uh which means that you don't have to provision compute we do it for you. Uh there's a talk on serverless compute as well.
We'll talk about uh that as well later uh this uh I think it's uh later this week and then uh just uh maybe if you go to the next one. Um yeah let's cover some of the talks. So uh dabs that's uh 11:30 today. data triggers. This is going to be the advanced topic for uh orchestration. I highly recommend you go to that one. Um future data engineering, we talk a a lot more about uh what LakeFlow is uh uh just overall from an authoring uh to monitoring uh experience.
Um then uh we have uh DT which uh we may rename the name uh of uh of that uh product but you'll find out more uh at the keynote. Uh lakeflow connect mentioned that uh as well and he showed that in the talk uh in the demo earlier. Observability we've mentioned a few times. Um and then uh we've really done a lot uh to improve the authoring experience for declarative pipelines. uh that's a highly recommended talk uh on Wednesday that uh our peers are giving um then if you use airflow uh and you want to uh try out jobs and see what does that look like how does it compare that's another talk uh that we recommend Thursday at 140 and then finally I'd mentioned earlier about serverless uh and how that can be beneficial for you both from a cost perspective or from a performance perspective uh that's the one at the bottom that you can attend and uh obviously This is very important.
The keynote is going to be awesome. Um I've seen it uh and it's well we've built it as well but it's uh it's really really good. So really worth uh going to that one on Thursday in the morning and I think with that um oh yeah trainings uh so please go uh learn about the product uh use it and um we have uh I think obviously the online the on-site trainings as well but you can do a self-paced course uh on this one and then if we move on uh survey uh I know you everybody's going to ask you to do this really helps us uh to modulate the talks and uh give feedback to the presenters as well as to the conference organizers.
Thank you for your time and then with that we will hand it over for some questions.

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.