Skip to content

Conversation

@aaronsteers
Copy link

@aaronsteers aaronsteers commented Feb 14, 2023

@aaronsteers
Copy link
Author

@pnadolny13 - I think we want to wait for annotations feature (meltano/meltano#7215) to ship - but when that's done, can you help us test this using squared?

logger.info(f"DAG created for schedule '{schedule_name}', task='{run_args}'")


def create_dags():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This runs meltano schedule list --format=json, which will not include annotation information. Currently, one has to ready the project files or manifest directly to get the annotations.


def _is_enabled(schedule_def: dict, environment_name: str) -> bool:
"""Return true if the schedule should be enabled for the named environment."""
airbyte_annotations: dict = schedule_def.get("annotations", {}).get("airbyte", {})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aaronsteers I think these were supposed to be airflow references instead of airbyte 😄 , right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Airflow-specific annotations to schedules, including environment-specific schedules

4 participants