Skip to content

Commit

Permalink
Updates warning message when result persistence fails (#15099)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris White <[email protected]>
  • Loading branch information
desertaxle and cicdw authored Aug 27, 2024
1 parent 524b83d commit 2cfdd84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/prefect/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ async def return_value_to_state(
await result.write()
except Exception as exc:
local_logger.warning(
"Encountered an error while writing result: %s Execution will continue, but the result has not been written",
"Encountered an error while persisting result: %s Execution will continue, but the result has not been persisted",
exc,
)
state.data = result
Expand Down Expand Up @@ -369,7 +369,7 @@ async def return_value_to_state(
await result.write()
except Exception as exc:
local_logger.warning(
"Encountered an error while writing result: %s Execution will continue, but the result has not been written",
"Encountered an error while persisting result: %s Execution will continue, but the result has not been persisted",
exc,
)
return State(
Expand Down Expand Up @@ -398,7 +398,7 @@ async def return_value_to_state(
await result.write()
except Exception as exc:
local_logger.warning(
"Encountered an error while writing result: %s Execution will continue, but the result has not been written",
"Encountered an error while persisting result: %s Execution will continue, but the result has not been persisted",
exc,
)
return Completed(data=result)
Expand Down

0 comments on commit 2cfdd84

Please sign in to comment.