Skip to content

Commit

Permalink
ARQ use context options for result timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
isra17 committed May 9, 2024
1 parent 7ebce5f commit fa4b783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/saturn_engine/worker/executors/arq/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async def process_message(self, message: ExecutableMessage) -> PipelineResults:

tasks = TasksGroup(name=f"saturn.arq.process_message({message.id})")
result_task: asyncio.Task[PipelineResults] = tasks.create_task(
job.result(timeout=self.options.timeout)
job.result(timeout=options.timeout)
)
healthcheck_task = tasks.create_task(self.monitor_job_healthcheck(job))
async with tasks:
Expand Down

0 comments on commit fa4b783

Please sign in to comment.