https://dagster.io/ logo
#ask-community
Title
# ask-community
k

Krishna Somasundaram Rm ee19b147

06/30/2022, 4:20 PM
Hi, I would like to test out schedules in dagster, using sqlite and without using docker if possible, as my organization has not yet provided my permission for it. Here is my dagster.yaml file:
Copy code
schedule_storage:
  module: dagster.core.storage.schedules
  class: SqliteScheduleStorage
  config:
      base_dir: /u/path/schedules
I've managed to start the dagster-daemon service, and in another terminal I have run the following code:
Copy code
from dagster import job,op,ScheduleDefinition,repository,DefaultScheduleStatus

@op
def existential_crisis(context):
    <http://context.log.info|context.log.info>("Im in a 5 minute loop! aaaaaa")


@job
def my_job():
    existential_crisis()


my_running_schedule = ScheduleDefinition(
    job=my_job, cron_schedule="0 9 * * *", default_status=DefaultScheduleStatus.RUNNING
)

@repository
def hello_world_repo():
    return [my_job]
when I run this on dagit while setting the right dagster home variable too, the schedules tab simply says no schedules found. Is it possible at all to test schedules, given that I cannot work with docker, and would like to stick with sqlite only?
b

Brooke Talcott

06/30/2022, 4:24 PM
I’ve run schedules without docker, but it looks like you’re not including the schedule in your repo definition try
Copy code
@repository
def hello_world_repo():
    return [my_job, my_running_schedule]
dagster bot responded by community 1
k

Krishna Somasundaram Rm ee19b147

06/30/2022, 4:42 PM
That works, thanks! I think the docs do not mention including the schedule as a part of the repository
b

Brooke Talcott

06/30/2022, 4:46 PM
If you can find where that happens and flag it with the dagster team I’m sure they’d be eager to address that!
c

chris

06/30/2022, 7:06 PM
Hey! We do show an example of including a schedule in our repo docs: https://docs.dagster.io/concepts/repositories-workspaces/repositories#defining-a-repository and also in our schedule troubleshooting guide.
k

Krishna Somasundaram Rm ee19b147

07/01/2022, 6:21 AM
My bad, apologies
2 Views