question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature: Support to run jobs with --full-refresh option from airflow

See original GitHub issue

Feature scope

Web UI

Description

Currently, I can add a job with tasks e.g meltano job add <job_name> --tasks "<tap_name> <target_name>". But when I want to run a job with full-refresh option, I get an error The job has invalid task. Adding the support of full-refresh will help us to schedule the job from airflow. In production environments, we don’t have access into the container (meltano deployed in kubernetes) to run CLI. Hence, it’s difficult to run a job with full-refresh option.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

2reactions
aaronsteerscommented, Oct 7, 2022

@tayloramurphy - Yeah, I think the “C” option would make a lot of sense. Basically: “assume each line is a string to be passed to run unless it’s prefixed by another command”.

This has the nice benefit of being neatly copy-pasteable.

# Before the feature, we have to run them separately:
meltano run tap-github target-snowflake
meltano invoke dbt:run --select=foo+  # This doesn't work as a job task
meltano run dbt:test

# After the feature, we can copy-paste each line in as a task:
meltano job create my_new_job --tasks "[tap-github target-snowflake, invoke: dbt:run --select=foo+, dbt:test]
meltano run my_new_job

Which creates this yaml:

  tasks:
  - tap-github target-snowflake
  - invoke: dbt:run --select=foo+
  - dbt:test

Which would be equivalent to:

  tasks:
  - run: tap-github target-snowflake
  - invoke: dbt:run --select=foo+
  - run: dbt:test
1reaction
tayloramurphycommented, Oct 7, 2022

@aaronsteers yep - I quite like that

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scheduler — Airflow Documentation - Apache Airflow
The Airflow scheduler monitors all tasks and DAGs, then triggers the task instances once their dependencies are complete. Behind the scenes, the scheduler...
Read more >
Configuration Reference — Airflow Documentation
Configuration Reference¶. This page contains the list of all the available Airflow configurations that you can set in airflow.cfg file or using environment ......
Read more >
Scheduling & Triggers - Apache Airflow
The Airflow scheduler monitors all tasks and all DAGs, and triggers the task instances whose dependencies have been met. Behind the scenes, it...
Read more >
Best Practices - Apache Airflow
First run airflow dags list and store the list of unpaused DAGs. Then use this same list to run both dags pause for...
Read more >
FAQ — Airflow Documentation
Does your script “compile”, can the Airflow engine parse it and find your DAG object? To test this, you can run airflow dags...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found