Skip to content

add task to write success file for run #920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 9, 2024
Merged

Conversation

jklugherz
Copy link
Contributor

No description provided.

project_pedigree_paths=project_pedigree_paths,
run_id=run_id,
**task_kwargs,
**loading_run_task_params,
),
*[
WriteProjectFamilyTablesTask(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there's an argument for making this a luigi task with dynamic dependencies (it would make the task parameter inheritance cleaner, and I could reuse the task inside of the WriteSuccessFileTask requires) but that feels silly since this can be accomplished by a simple loop

Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 Do we even need WriteProjectFamilyTablesTask here if it's in the requires of the WriteSuccessFileTask?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nope!!

@jklugherz jklugherz marked this pull request as ready for review October 8, 2024 13:54
@jklugherz jklugherz requested a review from a team as a code owner October 8, 2024 13:54
]

def run(self):
with hfs.open(self.output().path, mode='w') as f:
Copy link
Collaborator

Choose a reason for hiding this comment

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

super nitpicky but you can just do:

with self.output().open('w') as f:

we don't need the hail filesystem for this!

@bpblanken bpblanken merged commit 73d1669 into dev Oct 9, 2024
3 checks passed
@bpblanken bpblanken deleted the write-success-file-task branch October 9, 2024 12:24
bpblanken added a commit that referenced this pull request Oct 9, 2024
* add task to write success file for run (#920)

* add task to write success file for run

* remove WriteProjectFamilyTablesTask from pipeline_worker

* no hfs

* add to init

* var seqr (#922)

* var seqr

* ruff

* comma

* remove luigi config in order to move it to helm

---------

Co-authored-by: Julia Klugherz <juliaklugherz@gmail.com>
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.

2 participants