https://dagster.io/ logo
#dagster-support
Title
# dagster-support
s

S N V C Sridevi Jaddu

03/28/2022, 12:50 PM
Hi Everyone, I have given below line of code in scheduler.py file basic_schedule = ScheduleDefinition(job=my_dbt_cli_job, cron_schedule="15 18 * * *") but when i executed this via dagit I didn't see any scheduler reflecting under schedules option Can somebody help me out with basic job scheduling in Dagster Thanks.
d

Daniel Mosesson

03/28/2022, 12:50 PM
Did you add the schedule to the respository?
s

S N V C Sridevi Jaddu

03/28/2022, 12:51 PM
nope actually what is this repository for
i have no clue on this
d

Daniel Mosesson

03/28/2022, 12:52 PM
try adding something like:
Copy code
@respository
def my_respository():
    return [my_schedule, my_job1, my_job2, ...]
to your file
s

S N V C Sridevi Jaddu

03/28/2022, 12:53 PM
sure
Thank you @Daniel Mosesson the exact code worked and it is reflecting but it didn't get triggered as per my timings as soon as my time occured it showed up next day timings near schedule without running todays schedule what could be the reason
do i need to start daemon process?
d

Daniel Mosesson

03/28/2022, 1:10 PM
yes
s

S N V C Sridevi Jaddu

03/28/2022, 1:10 PM
Could you pls tell me how to start it
d

Daniel Mosesson

03/28/2022, 1:10 PM
s

S N V C Sridevi Jaddu

03/28/2022, 1:28 PM
I'm getting below error did i miss any step😕
d

daniel

03/28/2022, 2:10 PM
Hi, did you start dagit and the daemon using the same arguments to locate your code (for example, pointing at the same workspace.yaml file, or using the same file path after "-f"?
Is it possible to share the contents of your workspace.yaml file?
and finally, make sure that you're running dagit and the daemon using the same python environment
s

S N V C Sridevi Jaddu

03/28/2022, 2:12 PM
ok lemme check if I have used same path or not
Thank you for guidance🙂
This is my worksapve file
I have both of my files in same location
I'm running cmd prompts for both dagit and daemon from same location
d

daniel

03/28/2022, 2:19 PM
Is it possible to DM or post your schedules.db file in your DAGSTER_HOME folder?
s

S N V C Sridevi Jaddu

03/28/2022, 2:20 PM
yeah
I have shared Dagster_home folder
pls check and lemme know where I'm going wrong
d

daniel

03/28/2022, 4:30 PM
Following up from offline thread - the next step was to try turning the schedule off and on within dagit, while making sure that dagit is running from the same cmd prompt as the daemon. We have a fix coming up in the next couple of weeks that should make this unneeded
2 Views