Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Future Outlier <[email protected]>
  • Loading branch information
Future Outlier committed Oct 3, 2023
1 parent 896e571 commit 67e4838
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flytekit/extend/backend/agent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ async def DeleteTask(self, request: DeleteTaskRequest, context: grpc.ServicerCon
logger.info(f"{agent.task_type} agent start deleting the job")
if agent.asynchronous:
return await agent.async_delete(context=context, resource_meta=request.resource_meta)
return await asyncio.get_running_loop().run_in_executor(None, agent.delete, context, request.resource_meta)
return await asyncio.get_running_loop().run_in_executor(None, agent.delete, context, request.resource_meta)
2 changes: 1 addition & 1 deletion tests/flytekit/unit/extend/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,4 @@ def test_convert_to_flyte_state():
@patch("flytekit.current_context")
def test_get_agent_secret(mocked_context):
mocked_context.return_value.secrets.get.return_value = "mocked token"
assert get_agent_secret("mocked key") == "mocked token"
assert get_agent_secret("mocked key") == "mocked token"

0 comments on commit 67e4838

Please sign in to comment.