Skip to main content

Data Triggers and Advanced Control Flow With Lakeflow Jobs

Summary

  • Data-aware orchestration: Lakeflow Jobs is the production-ready orchestrator for the Databricks Data and AI platform, enabling jobs to trigger based on file arrival or Delta table changes.
  • Advanced control flow: Conditionals, for-each loops, task-level repair, and partial DAG execution make complex orchestration straightforward and maintainable on the Databricks Data and AI platform.
  • Enterprise reliability: With 99.95% uptime SLA and integration with AI/BI, Power BI, and Lakeflow Connect, orchestrate your entire data and AI pipeline reliably at scale.

Data Triggers and Advanced Control Flow With Lakeflow Jobs

Watch: Data Triggers and Advanced Control Flow With Lakeflow Jobs
Talk by Roland Fäustlin, Product Manager, Databricks
Lakeflow Jobs is the production-ready fully managed orchestrator for the entire Lakehouse with 99.95% uptime. Join us for a dive into how you can orchestrate your enterprise data operations, from triggering your jobs only when your data is ready to advanced control flow with conditionals, looping and job modularity — with demos! Attendees will gain practical insights into optimizing their data operations by orchestrating with Lakeflow Jobs: New task types: Publish AI/BI Dashboards, push to Power BI or ingest with Lakeflow Connect Advanced execution control: Reference SQL Task outputs, run partial DAGs and perform targeted backfills Repair runs: Re-run failed pipelines with surgical precision using task-level repair Control flow upgrades: Native for-each loops and conditional logic make DAGs more dynamic + expressive Smarter triggers: Kick off jobs based on file arrival or Delta table changes, enabling responsive workflows Code-first approach to pipeline orchestration
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 are data triggers?

Data triggers automatically kick off Lakeflow Jobs when specific events occur—like file arrival to a data lake or changes to a Delta table on the Databricks Data and AI platform.

How is advanced control flow useful?

Advanced control flow (loops, conditionals, modularity) allows you to build complex, reusable orchestration logic for multi-step data and AI workflows on the Databricks Data and AI platform.

What is task-level repair?

Task-level repair allows you to re-run only failed tasks in a pipeline without reprocessing entire downstream DAGs—saving time and costs on the Databricks Data and AI platform.

Can Lakeflow Jobs integrate with Power BI?

Yes, Lakeflow Jobs includes new task types for publishing AI/BI dashboards, pushing to Power BI, and ingesting with Lakeflow Connect for unified orchestration.

Full transcript

0:00 Introduction to LakeFlow

Uh welcome everyone. Thank you for uh joining this. So uh I'm a product manager on um like flow jobs. I'll sort of introduce what all that means in a little bit. And I'm joined by who's a resident guru of like flow jobs. And I just want to kind of level set the stage a little bit before we kind of get into this. In this talk, we sort of assume a little bit about you guys. So, if you guys are already sort of aware of what orchestration is on at least a general level, uh you've already maybe built some simple workflows whether or not it's with data bricks or with airflow or ADF or anything else and you generally have a kind of high level awareness on orchestration.
If your primary goal with your orchestration is to build incredibly reliable, efficient, robust, and costefficient pipelines, this is the right talk for you. Uh you want to empower your data teams potentially a small company or large company potentially scaling and you're growing your data teams across multiple regions or even across multiple comp continents. This will be the talk for you. And by the end of this talk, we have a few sort of expected outcomes here.
Um, the first one we target is called data triggers. And what we really want to make sure we distill to you by the end of this talk is you're able to leverage these data triggers to really have your jobs run only when the data is ready. You'll be able to use control flow tasks like looping, conditionals, back fills or parameters to just make your jobs much more robust. And then finally as well we hope that by the end of this talk you're able to honest if not start uh build sort of complex orchestrated workflows uh continue to build with data bricks and build larger dependency graphs between everything.
So with that said you've I'm guessing you've seen this in all the talks so far. We're among friends here. Some of the stuff we're going to say is looking into the future and legally required to say that all this stuff is subject to change. However, we'll be as accurate as we can uh with the information that we know uh right now. So, the s the core kind of core concept here is lakeflow. And the big question that I'm sure you're asking right now is what actually is LakeFlow?

2:12 LakeFlow architecture

There's a big keynote that we're having tomorrow that'll explain it in much more detail. However, I just really want to touch on it now. And what it really is is sort of unified data engineering on the databicks platform. So it's comprised of three components, three pillars that span the entire life cycle of ETL. And the first step in any ETL is ingest. And for data ingestion, we have LakeFlow connect. Maybe I'll be able to point here.
Lake connect, which are built-in out of the box ingestion connectors from Sauce as well as database sources. I won't go into too much detail on these, but I'm more than happy to take any questions afterwards. So after you bring in all of your data into data bricks the next step is of course transforming all of this data whether or not it's cleaning normalizing aggregating and for this we have lakeflow pipelines which are reliable data pipelines essentially made simple uh we had some talks already on authoring I hope you guys were able to see some of them but this is hyperefficient incremental low TCO data transformation within data bricks and then finally all of this stuff wrapped together gets orchestrated inside of a job and a job really is to use a term the artist formerly known as data bricks workflows.
So the term that I'll be using today exclusively is LakeFlow jobs and what this is the next evolution of data bricks workflows and of course all of this is built on unified governance with Unity catalog as well as hyper optimized storage that we support uh natively. So as I said, we're going to focus today on the jobs portion of it. What used to be called data bicks workflows. And what jobs essentially is is the sort of unified orchestrator uh across the data bricks intelligence platform.
Uh TLDDR simple authoring whether or not you want to author your jobs in the UI or if you're a bit more of a power user and you want to author manage observe all this uh programmatically. We also provide a suite of fullsp spec API uh as well as CLI connections and deployments which we'll go into a little bit later. Actionable insights with onboard metrics monitoring and observability. And then finally proven reliability uh 99.
95% uptime. So you can be confident that with us you won't have to deal with any sort of downtime or unexpected failures like that. So within jobs, within LakeFlow jobs, you're able to orchestrate anything. But what we provide are sort of a suite of out of the box tools to essentially help you along the way to make it easier for you. And these tools, they're called tasks. And jobs are comprised of one or more of these tasks.

4:43 Building tasks and control flow

And these tasks are individual units of work that do something. whether or not you want to do something relatively simple with databicks notebooks, do transformations with pipelines or if you even want to connect to external tools uh such as run your DBT models or update your PowerBI dashboards, all of this can be orchestrated within LakeFlow jobs. Once you decide the tasks that you want to do, once you decide what your job wants to do, this is where you connect them.
You integrate all your tasks together into specific patterns. And these patterns is called control flow. and whether or not you want to do simple sequential execution. We also support out of the box features to support looping job modularity uh or as well as introducing conditional logic into your jobs. All of this is possible using the onboard features uh within LegFlow jobs. And then finally once you create your tasks, you create your control flow then you need to decide how is this job actually going to execute?
How am I going to run it? And we also provide out of the box features to support this. Whether or not you want to have your job scheduled, for example, run every day or every week at Monday at 8 a. m. , that's possible. Or if you want your jobs to be a little bit more data aare and you only want your jobs to run when the data is actually ready, and this will be sort of the main focus of this talk here. So then once you have all this, we kind of level set here.
Now I will just want to go in and introduce some of the out of the box control flow features that we have within LakeFlow jobs and then afterwards then pashant will give us a really cool demo just to kind of show you how this actually all kind of works in practice. So one of the big uh comments or concerns that we heard from customers previously was that their jobs are just getting really big, really repetitive, really large.

6:38 Advanced control flow features

They're using notebooks. Maybe they ingest some data from GDBC connections or maybe they process regional sales data that delineated by country. It was getting very repetitive and so with that we built something called for each. And what for each does it allows looping over a single task with looping for multiple tasks coming soon. Definitely let us know if you need that. We always really like hearing from you guys. And the real sort of value ad of forge is simplification and streamlining.
So this specific job we had a customer where they were again they were doing processing of individual tables that were delineated by country the exact same logic but they were able to functionally simplify their DAG into what was I'm not going to count that many tasks into four tasks using for supports up to 1,000 iterations. with up to 100 of these iterations happening at the same time. So a concurrency of 100. So for each is really cool.
You guys should really really try it out. And of course it's not just words. Um we've had customers of all size have success with for each in their own control flow. Uh specifically Mastercard which is one sort of outspoken customer. And if you want to learn more about how Mastercard both used for each as well as LakeFlow jobs to simplify their orchestration, they're giving a talk later today where they'll speak about one of their specific use cases that we know of.
So definitely check that out if you guys have time. So then when you're developing your jobs or you're debugging your jobs, often times you need to fix individual tasks. And one of the concerns that we heard from customers previously is that they had to clone their job, remove all the tasks that they didn't want, test the fix in an isolated environment, and then port the fix back to the previous job. It just was quite inefficient.
So with this, you're able to also run only the tasks that you want inside of your lakeflow job. So you don't need to worry about running compute for an entire job if you only have one specific task or a subset of tasks that you want to run. You're able to select the individual tasks that you want to run and then run that. So this is quite useful if you want to save time when you're debugging iteratively develop and save money because you don't need to run your compute on the entire job.
You can only run it on the tasks that you want. Moving a bit forward, I spoke earlier about conditionals and this is if you want to introduce branching into your jobs. What conditionals support are you can define a specific boolean logic inside of your conditional task. If evaluated to true, one task will run. If evaluated to false, then another test will run after that. One of the specific use cases that we've seen customers be successful here is for AI training within data bricks, within LakeFlow jobs.
We support the training of AI models natively. And often times you only want your models to actually start training if the data is either of high enough quality or there's enough data for there to be an effective training of that. So with the conditional task, you're able to introduce branching and it's also possible to cascade these if else conditions by pairing them together for a little bit more granular control if you're looking for that.
Moving bit forward, this is one of our current preview features we would love for you guys to try. It's also a common thing where data arrives late and data arrives late. You need to process it. You need to make sure that it's reflected in your most up-to-date tables. However, you want to do this easily and robustly without needing a lot of manual intervention. Currently in preview, we have a backfill feature where you're able to trigger multiple job runs over a defined period of time that you could see on the uh on the short visual here.
And you're also able to do this concurrently. So if you need to do multiple runs over a large period of time, we also support concurrency of 100 parallel runs. G is coming fast, but if you guys want to try this out before we G, we'd also love to hear from you and enable your specific workspaces to try it out. So I just kind of give a brief overview of some of the control flow features that we have. So now we've established our control flow.

11:03 Data-aware triggers

We have our tasks. We have our flow. Now we need to decide, okay, how do we actually trigger these jobs? Do we want it to run every day at 8 a. m.? Do we want to have it run when a specific table is updated? What's the sort of relationship between the data and the job itself? This is where we have with triggers. So the sort of easiest way to automate this is using a schedule as I mentioned. Um let's say you can run it just every day at 8 a. m.
Uh with our scheduleuler we support very simple in the UI or if you want to be a bit more precise then you can also use chron expressions. However even though this is quite useful for batch processing of batch data this also sort of starts to become a bit problematic once either your data is late or if the data does not arrive at all. If your data is late and you have a schedule on it, the job may fail. The job may process an incomplete data set, pushing an incomplete data set downstream, or it may just run and not process any data.
You have no guarantee of the freshness of your data and the latency between the data arriving and the job actually starting. You have no control over that. So with this in mind, this is where data triggers come into play. So just sort of imagining a scenario where let's say in the case of file arrival triggers here on the bottom. You have some files that arrive in an S3 bucket and you kind of have a general idea. You kind of know when the files will arrive, but you don't know exactly when it'll arrive.
You have a schedule set on it, but sometimes the schedule doesn't reflect the true state of the data. And what we'll support with file arrival triggers is we will watch these external storage locations for you and we will trigger the jobs only when the data is ready only when the data arrives in this specific storage bucket at no extra cost to you. So not only not only this is a big efficiency boost, the job only runs when the data is ready.
It's also a big time save. You don't need to worry about the maintenance and the overhead of dealing with late arriving data. And three, it's also a big cost. You can be confident that your job will only run when it actually has data to compute and process. If we move a bit further on this, here we have table update triggers which is kind of similar in concept to the file arrival trigger except instead of watching an external storage location, it watches individual tables.
So for this you can say okay this job I only want it to run when tables X Y and Z are updated. This is now fully possible with LakeFlow jobs and we're very very close to ging it as well. Currently current table types supported are delta tables and materialized views and we're hard at work making sure that we also support streaming tables and views as well to be able to trigger your jobs. So data triggers are functionally the answer to data latency issues, data freshness issues.
If what you want is for your job to run only when the data is ready, then here we recommend to use data triggers uh instead of schedules. And so I just kind of give a bit of an overview on the technical benefits of it. But in terms of the enterprise or business value ad that data triggers have, what they really do is support and empower cross team collaboration. As your businesses scale, often times your data teams will also scale and become more distributed potentially across offices, across regions or across continents.
And it's really difficult to keep track of who owns what set of data, who owns what table, um who updated table X. I need to know that. So I permission to run table. So I know permission to uh update table Y. And with data triggers, it does not matter who updated the table. It does not matter the source of the update. The only thing that mattered is that the data is the most upto-date. So if your goal is to empower your teams to build a bit more of a data mesh, a bit more distributed, then data triggers are fantastic for that.
Secondly, and I speak about this a lot because this is really important. It really ensures data freshness. You want your jobs to process the latest data. You don't want it to process old data or you want to make sure that it runs the most up-to-date data. With cron or with schedules, they're not always synchronized to the arrival or the update of the data that the job is processing. But with data triggers, you know that the job will run once the data is ready and it's complete to go.
And then finally, it always comes down to cost at the end of the day. With data triggers, we monitor external storage locations or we monitor the update of tables at no extra cost to you in your data bricks bill. There will be no extra cost assoc associated with data triggers. So you can be quite confident that compute is not wasted and your cluster is only engaged once it actually has work to do once it actually is ready to process some data.
So now the whole sort of question here is okay this is awesome this is cool whatever but how can I actually sort of deploy all of this together what if I have hundreds of jobs that I need to manage what if I have more and this is where data bricks asset bundles come into play with data bricks asset bundles it essentially introduces software engineering best practices CI/CD into defining your jobs we had some talks earlier about dabs and we'll have some more after as well you guys should check that out if you're interested core TLDDR with dataix asset bundles, software engineering best practices, version control and CI/CD in the deployment of your lakeflow jobs.

16:20 Deployment and CI/CD

And the question that we also often heard was, okay, again cool, but I prefer Python, maybe I come from Airflow, maybe I'm just have a bit more of a programmatic background. I prefer Python. And we currently have an active public preview for Python support for data bricks asset bundles. So definitely check that out and definitely let us know what you think of it as we move towards ging it. So then I'm done talking. Um I think it's time to actually show how this all kind of looks in practice.

17:31 Practical demonstrations

Thanks. Thanks. So uh we'll start with the basics of uh what server what buffalo are are like flow jobs right now. So this is a typical buffer page. If you are already used to data bricks uh platform uh this is the page which you land uh when you go into workflows right now very with the recent change it is jobs and pipelines and you create you click on create job that's when you will be creating the job for your particular use case now there are multiple ways of looking at this like you have say for example you have some specific notebook task for example now we can start with a notebook task here or we can also see all the available task for example example uh just showcasing all of them there are a huge number of task types right from what uh was discussing there is notebook task there is a pipeline and a huge number of list of tasks uh right including AI dashboard for example so these are the various task types I mean some of them I'll be showcasing now like if else condition being one this is if else's condition where you can chain you can do if else's condition and also continue with the task type tasks which you want to uh run as part of your pipeline and there is for each uh task type as well.
So these are the various task types you see in uh uh data bricks and we are continuously adding more like very recently PowerBI is another task type which was added to uh the task types here and uh there are a couple of other things uh like if I if I'm a probably most of you are already using uh database workflows but to just to give you a tlddr um there are couple of things which you should be doing for example adding t tags for your specific uh projects or or the teams or whatever is the case we should be adding specific uh tags so that those tags are available in system tables and easily cost attribution can be done.
I mean this is more like a general best practice you should be doing and uh job notifications again if there are failures or if the job is running uh longer time like you can specify metrics. So all these are part of uh a workflow. Now coming to the point of uh most important one this is schedules schedule and triggers which uh was explaining in detail. So there is uh multiple ways of scheduling jobs. The first one being scheduled which is where you specify uh the schedule type.
There is simple and there is advanced. Now this is advanced. You can specify exact date and time etc. And if you're even more interested probably you can even use quads uh quads crown syntax and you can specify the values here right right here. So this is the normal way of specifying uh trigger type. Now if I go to the same trigger type there are multiple ways of doing this here again. So there is file arrival trigger implies there is some ads bucket ads gen 2 bucket or S3 bucket or Google cloud bucket where there are files landing only when a file lands you want a file or multiple files land into that bucket you want this workflow to trigger so that's when you choose this one like you specify file level trigger and specify the storage location datab bricks will continuously look at that folder and trigger this pipeline a moment a file lands into this location.
Now extending that topic a bit more is table update trigger and it's not just a single table, it could be multiple tables and you also have an option of triggering when all the tables are updated or at least one of them is updated. So uh this is again another variation of uh uh triggers. So to showcase all this I do have a simple job um which I will showcase now. Yeah. So this is a job which I have been running for quite some time.
Uh let me close this. Yeah. So this is the complete job where I do some uh analysis with uh for each like for example I have a lot of data uh fact tables in uh in three different tables and uh I would like to load the data. Previously I would have to do three separate tasks for that but because of for each so I'm showcasing the for each task here and there is the inner notebook the notebook which actually loads the data and you can run with for each so there is a task type called for each and you specify I mean this could be inputs could as well be here I have hardcoded but you can as well uh get them from a upstream task as also and use those values which are coming from there to process the data which is there uh in some specific tables.
I mean I'm just giving one example but basically for each works uh this way and then I have a a big uh DAG uh doing a lot of uh bronze silver gold uh aggregations basically u medallion architecture and then a bit of uh machine learning and also updating our uh uh refreshing BI dashboard. So I'm doing all this at the end of the day what I'm trying to do is spec getting product recommendations for a specific uh say in some specific area all of a sudden a product has become a rage.
So we need to ensure the supply chain management and the people who are supplying that should have enough information that product has to be st stocked in that particular uh stores for a simple example. So this is how the uh the use case is and uh only if it is on a Sunday I would like to uh refresh uh my model. So I I would like to retrain my model. So in that case um I mean there is a simple condition here. Here I'm using uh data bricks uh uh template here basically job time uh job start time dot uh and ISO weekday and if it is Sunday which is 7 only then I do re uh retrain the model or else I usually go into the publish model stat.
So that's the full view of what exactly is happening in this. Now this if else condition is not just on uh some specific template but it could also be the task values which are set by any of the upstream uh upstream tasks here and I also am doing something uh very uh nifty here. So in this case I would like to run uh clean up and log if any of the upstream tasks fail. So you specify here. So there are again uh runif dependencies.
So there is this is a huge tag. Now probably it might be the case that some task fail all of a sudden but I would like to clean up essentially in that case I would go specify at least one failed and by default it is always all succeeded in this case I want to run this task only if one of the upstream tasks fail. So this is how how you run uh a complete pipeline and various number of uh task types we are talking about here.
Now one cool thing I would like to show here is I'm not just um orchestrating the notebook task or uh SQL files or Python but I'm also orchestrating a DT pipeline. Now this is the DT pipeline which is actually doing the gold uh aggregations in this case. So you get um you are able to as I mentioned before like we have a huge number of task types which we are able to orchestrate in that I'm also showcasing uh DT. Now the cool thing here is I am doing table update triggers.
In this case it's just one single table but essentially you get the picture like you can add multiple tables etc. Now to show this live I will go to my workspace. I have a simple uh simulate trigger uh which I will I will run it now. It's taking a bit of time but essentially you get the uh gist. So there is a trigger u there is a uh catalog database and the table product request table. Now I will quickly go to the product uh request table and run it.
One second. So this is my simulate table triggers. So I am I have a database and I have a couple of uh uh couple of tables in that and a particular table I'm trying to update and I am use I'm going to use serverless for this. I don't want to wait for a cluster to start up. So this is a simple I mean simple statement to trigger the pipeline. So as of now if I go back to my page um it was run twice till now and one of them was manual.
So let me start kickstart the run. Let me run it here. So this is what this is doing is this is putting this is inserting a record into the table very table what we are uh trying to uh what we are trying to use as a table update uh trigger here. So the moment the table is updated the a new record is in inserted it should trigger the job uh this particular pipeline uh immediately. So we'll just wait for the job to uh to this notebook shell to execute and in the meantime that job will uh that job will get triggered automatically.
So uh we'll wait for couple couple of seconds probably hopefully it will be up. Yeah. Uh, it's already executing. So, let it run. it executed. So we should see a new row here, a line item, new line item which says it should be launched by a table update and uh it's specific run like you can see already see the job has already come. So this is the by table update. So I inserted a row into a table that table was being used uh for triggering this pipeline.
So immediately uh immediately the job uh started running and it may take around 3 minutes. So essentially this is how you can use table update triggers for uh seamlessly ensuring that you're best you are using a particular table and based on that table or any number of tables for that matter run the pipeline automatically. So this is my first demo which I wanted to showcase. Um there is another uh use case where a lot of uh a lot of times we usually read um some uh some kind of uh how should I put it?
Uh some kind of um yeah some kind of what we want to do is like I have I have a job which is running for quite some time and all of a sudden it failed for uh in production for a for a simple example. So in this case I have a uh I have five tasks and we'll just go to one of the task and inject an error. So this is where I want to showcase repair and rerun. Now in this repair and rerun I'm explicitly injecting an error uh in my uh code uh in my notebook a syntax error if it loads soon. uh the what I'm trying to showcase here is when a job fails which uh I was trying to run multiple times today when a job fails we automatically so uh let me I inject an error explicitly in this code and let me run this job now and uh the moment it reaches uh this specific task it should fail because of the obvious reason that I am explicitly injecting an error here.
Now previously it would have been a pain like you would have to fix the issue and then rerun the entire pipeline which is not just inefficient but also it will incur some cost also. So now what repair and rerun does is you can start exactly at the point of where that particular uh job failed but from that task onwards you can run as many tasks as possible like if if if there is a dependency that you want to run only a specific task even we can do that's called partial runs so I will show that also right now it is this job is running so it should fail uh anytime now because I explicitly injected an error yeah let it fail fail.
Uh the moment it fails probably I can go back and uh fix it. So it failed already. Now the beauty here is I will fix this error for whatever reason and then go back to my notebook and do a repair run. So this is where the uh the UI comes and it also shows you how many tasks it is going to repair. So in this case I have repair run of three tasks because my uh silver pro silver in the silver layer failed. In this case I have two other gold tables uh gold notebooks which are running.
But essentially this is how you run it like and also you can specify if I want to run by my entire job you can do that as well. And uh for example again I want to explicitly run only specific tasks even you can do that like in this case uh I can select any specific task which I want to run not just the failed ones but also the ones which were successful also. So you can do it all this and you can also specify uh repair run and then click on and also specify any parameters which you want to pass and you click on repair run.
The job will start exactly from the point in this case I explicitly chose a successful job also. So a successful task also. So it will start from bronze silver sales promotions and uh complete the rest of the task all the three tasks there. Now this is all we are talking about repair and rerun and we are talking about for each and a lot of other things. Now many many a time it usually happens that we have a huge stack like right now data bricks allows uh thousand task very recently you're supporting thousand task um but running having thousand task is probably a huge maintenance and management issue.
Now what you would like to do in such cases is probably modalize those t modalize those jobs into multiple sub jobs and then trigger them. Now that's where again one more beauty feature in data bricks. Now let me start uh one simple uh job here. Run job and I will choose one of the notebooks. one of the notebooks which I have for whatever task one and specify some notebook uh yeah serless and then data engine um I created the task now as a second task instead of creating a a another task what I would like to do is use run job this is the run job task And I will use the same repair and rerun task which we just now uh ran I specified that and I am already having all the values and click on create task and I click the I run the job.
So this way you can have a huge DAC could also be decomposed into multiple uh sub jobs and you can orchestrate that as well like in a simple way and this could I mean I'm just showcasing one task and one uh job but you can have multiple job types also into this and you can create how many ever uh required. So that's about uh run job and my final simple demo is on uh um utilizing um code for for uh triggering jobs. So it's most of the best practices which uh um was talking about are with dabs.
So essentially you create notebooks uh for example in this case I have a notebook. py Pi which is which is explicitly I'm calling out as datab bricks notebook source and then I also have some python code python pure python uh script and there is sql query also. So there is a lot of things which are happening here and what I'm trying to do here is I'm using job config which this is all uh dabs uh with the job config I created a complete uh yl file which lists the tasks like I have injection task which is uh nothing but notebook. py I'm calling out uh calling it out here and then there is a spark python task which is my main. py and finally there is another uh SQL task.
So I have all this. Now the it's usually a lot of people would like to use uh their uh local workspace or they would like to use dabs to push from uh devote to test to QA to prod. So for all that you could potentially use uh dabs and it's very simple like in this case I'm doing um I have the entire code here. Now I can I I have the I have the code here and also I have um I just do the authentication with uh uh data bricks u and when I click when I do that it's already authenticated.
So in my case uh I wouldn't need to do anything. Now immediately I will do bundle sync I mean whatever code I have right now it will get synced into database platform and it will get deployed and a job also is created all be with the help of uh the job config and the databicks ML here. Now the ML has u the dev which is the workspace which I'm using right now. uh the moment I am I press enter here it will kickstart uh it will create a job and it will also um show me which if there are multiple jobs it will help me it will give a helpful prompt to choose which of the jobs you want to run in my specific case as you can see there is only a single job in the job config there is a single job here my process my data processing job so once it loads yeah you can see my data processing job orchestration dice and I will just press enter here it will it should start the job and it will also help you uh give you a run URL.
Now let me take this URL go to the UI platform and then press enter. Here is where you see my job actually running and it's complete DAG and uh you can also look at the uh YAML code right in the platform. Uh uh it's taking a bit of time. So let me go to a different job to showcase. Uh so I have the complete code here. This is YAML. This is nothing but exactly the same thing which I did from my local environment and this now it is directly in the platform and you can also look at JSON, Python and other variants also which uh we were discussing earlier.
So this is how you do uh you you deploy code you run code using dabs. So the job is running the as I mentioned an injection task and then analysis task with a python source and analysis task as SQL notebook. So the job is running it should complete in couple of minutes. So uh we'll hopefully yeah so these are a couple of things I wanted to show uh today. Uh yeah absolutely thank you. So we we have a bit of time left.

37:42 Key takeaways and conclusion

So I just want to do some sort of final housekeeping before we get to uh questions. So just with three main takeaways. Um firstly and secondly we have the real value of data triggers. They empower collaboration independence between your data teams. Again as you scale your data teams will scale with you and you need to make sure that you establish a mesh architecture that is able to support this. Data triggers is able to provide the platform for that.
Use data triggers primarily to run jobs only when the data is actually ready. And then finally, you can really combine data triggers and control flow to build very sophisticated, very robust data meshes on top of LakeFlow jobs. So for more presentations and to learn more about not just Lakeflow jobs but the other side of LakeFlow uh definitely we would recommend these as well as on the bottom make sure not to miss the LakeFlow keynote uh which is tomorrow.
It's really cool demo and yeah final thing complete your surveys and yeah now we still have some time for questions and if there's any flow over we can go outside.

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.