https://dagster.io/ logo
#ask-ai
Title
# ask-ai
s

Slackbot

02/08/2024, 11:00 PM
This message was deleted.
s

Scout

02/08/2024, 11:00 PM
Based on the documentation, jobs in Dagster can be defined for both ops and assets. However, the usage for each concept is unique. Jobs can execute a portion of a graph of Software-defined Assets or ops based on a schedule or an external trigger. When a job begins, it kicks off a run, which is a single execution of a job in Dagster. The documentation provides examples of defining asset jobs using the
define_asset_job
function, which materializes a fixed set of assets each time they run. It also mentions that jobs can target overlapping sets of assets, suggesting that multiple jobs can be created with different selections of assets. However, the documentation does not explicitly provide an example of combining an ops job and an asset job directly within a single job definition. Typically, a job targets either a graph of ops or a selection of Software-defined Assets. If you need to combine ops and assets within a workflow, you might consider defining a job that includes both ops and assets by constructing a graph that includes the necessary ops and then materializing the assets as part of the job's execution. This would involve defining the assets and ops within the same graph and then using that graph to define the job. For specific guidance on how to implement this in your Dagster project, you may want to consult the sections of the documentation related to [Asset jobs](https://docs.dagster.io/concepts/assets/asset-jobs) and [Op jobs](https://docs.dagster.io/concepts/ops-jobs-graphs/op-jobs), or look for examples that closely match your use case. If the documentation does not provide a clear answer, it may be beneficial to explore community discussions or reach out to the Dagster community for more tailored advice.
2 Views