Skip to content

Commit

Permalink
πŸ„ Mario Pipelines (#133)
Browse files Browse the repository at this point in the history
* Uses Mario Pipeline to run batches

* linting

---------

Co-authored-by: Andrew Myers <andrew_myers@wgbh.org>
  • Loading branch information
mrharpo and afred authored Aug 29, 2023
1 parent b34d040 commit 4ba8c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chowda/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ async def is_action_allowed(self, request: Request, name: str) -> bool:
async def start_batches(self, request: Request, pks: List[Any]) -> str:
"""Starts a Batch by sending a message to the Argo Event Bus"""
try:
for batch_id in pks:
with Session(engine) as db:
with Session(engine) as db:
for batch_id in pks:
batch = db.get(Batch, batch_id)
pipeline = ','.join(
[app.endpoint for app in batch.pipeline.clams_apps]
Expand Down

0 comments on commit 4ba8c93

Please sign in to comment.