-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
v03_pipeline/bin/pipeline_worker.py
Outdated
project_pedigree_paths=project_pedigree_paths, | ||
run_id=run_id, | ||
**task_kwargs, | ||
**loading_run_task_params, | ||
), | ||
*[ | ||
WriteProjectFamilyTablesTask( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope!!
] | ||
|
||
def run(self): | ||
with hfs.open(self.output().path, mode='w') as f: |
There was a problem hiding this comment.
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!
* 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>
No description provided.