Coder Social home page Coder Social logo

Comments (3)

dpeng817 avatar dpeng817 commented on May 29, 2024

Hey there - I think we generally consider running jobs inside other jobs like this bad practice. What are you trying to achieve with this pattern exactly?

from dagster.

whytem avatar whytem commented on May 29, 2024

Hi @dpeng817, the job is triggered by an external event (a data load) and utilises the parameters passed to that job to dynamically determine the selection of assets required to materalize and the inner job to complete the materialization.

Is there a way to have a job materalize a dynamic subset of assets based on an input parameter within a single job?

Thanks!

from dagster.

whytem avatar whytem commented on May 29, 2024

I moved this logic from a job to a sensor which addresses the above issue. However, that eliminates the possibility to externally trigger the execution which was possible with the job (through GraphQL). I instead created a microservice which provides a long-polling endpoint for Dagster sensors to access a queue populated by the incoming event sources. This feels like a hacky solution.

What is considering the best practice for triggering asset materializations from external events such as a webhook call?

from dagster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.