https://dagster.io/ logo
Title
d

Dominick Giordano

02/16/2022, 3:28 PM
I am trying to set up a schedule for my jobs in dagster. I currently have a dagit and dagster-daemon ecs container launched. I am able to run jobs manually by ssh into my dagit container and calling the jobs to start. They queue and run successfully with the dagster-daemon service. I cannot seem to get the schedules I create to show up in the schedules tab of the dagit interface. My current configuration consists of multiple
@graph
with multiple
@op
for each. I would like to be able to run some of these entire graphs at a certain time (once a day/once a week) and some of them based on an outlying trigger (file upload etc.). If anyone with experience configuring a schedule could help that would be greatly appreciated, thanks!
d

daniel

02/16/2022, 3:34 PM
Hi Dominick - are the schedules that you created included in your repository?
d

Dominick Giordano

02/16/2022, 3:41 PM
Yes - do you think it has anything to do with my dagster.yaml config?
d

daniel

02/16/2022, 3:42 PM
If it's not showing up on the Schedules tab, I think it would be related to your workspace.yaml (or your repository code), not your dagster.yaml
If you go to the Workspace tab, do you see what you expect based on the contents of your workspace.yaml file?
d

Dominick Giordano

02/16/2022, 3:47 PM
Yes I am seeing everything - my workspace.yaml is fairly simple:
load_from:
  - python_file:
      relative_path: dag_repo.py
d

daniel

02/16/2022, 3:48 PM
and even after you reload the location from the Workspace tab, the contents of your Schedules tab is empty?
d

Dominick Giordano

02/16/2022, 3:52 PM
Yes
d

daniel

02/16/2022, 3:52 PM
would you mind posting or DMing your repository code?
d

Dominick Giordano

02/16/2022, 4:26 PM
One more quick question - If i needed to set env vars for the job I am running in a schedule - how do I do that?
d

daniel

02/16/2022, 4:27 PM
if you're in ECS - the way to handle secrets in your launched jobs is here: https://docs.dagster.io/deployment/guides/ecs#secrets-management .
d

Dominick Giordano

02/16/2022, 4:29 PM
They are not sensitive data - not sure if I need to do all of that
d

daniel

02/16/2022, 4:30 PM
At the moment that's the only config we have in ECS for setting environment variables within launched jobs. You can set dagster run config within the schedule function though
d

Dominick Giordano

02/16/2022, 4:31 PM
Yes - that was more of what I was looking for - so I can just add to that dict
d

daniel

02/16/2022, 4:33 PM
We don't have a way for you to set arbitrary environment variables in your schedule function and have them be injected into the launched task, but you can specify your run config in the schedule function, just like you can when launching runs from the launchpad
d

Dominick Giordano

02/16/2022, 4:34 PM
I dont think I follow - is there an example