/dagster

Learning Dagster

Primary LanguagePython

View this example in the Dagster docs at https://docs.dagster.io/examples/deploy_docker.

How to reload user code

  1. run docker-compose up
  2. access http://0.0.0.0:3000/
  3. execute my_step_isolated_job link
  4. go to Launchpad tab
  5. click on the Launch Run button at the bottom right of the page
  6. the result should be successful (as expected)
  7. modify method hello in repo.py
    @op
    def hello():
        get_dagster_logger().info(func_name())
        return 2
  8. restart the following docker instance
    docker restart docker_example_user_code
  9. access http://0.0.0.0:3000/code-locations
  10. reload the repository
  11. execute my_step_isolated_job link
  12. go to Launchpad tab
  13. click on the Launch Run button at the bottom right of the page
  14. the result should NOT be successful

Things to keep in mind

  • volume settings in the docker-compose file should be reflected in the run_launcher settings of dagster.yaml file also
  • in this example update with the correct path the following line
    /full/path/to/repo.py
  • see this example about mounting volumes