Skip to content

Commit

Permalink
Restore missing repo.py file (#6677)
Browse files Browse the repository at this point in the history
Summary:
This was removed in #4833, I assume unintentionally. Unfortunate that we don't have a test on the 'prod' folder of deploy_docker, that would have caught this.

Test Plan: docker-compose build now passes
  • Loading branch information
gibsondan committed Feb 17, 2022
1 parent c71062f commit d2117a4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/deploy_docker/repo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from dagster import job, op, repository, schedule


@op
def hello():
return 1


@job
def my_job():
hello()


@schedule(cron_schedule="* * * * *", job=my_job, execution_timezone="US/Central")
def my_schedule(_context):
return {}


@repository
def deploy_docker_repository():
return [my_job, my_schedule]

0 comments on commit d2117a4

Please sign in to comment.