Skip to content

Commit fd91f21

Browse files
Update state-manager/app/tasks/create_next_states.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 1b87b06 commit fd91f21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

state-manager/app/tasks/create_next_states.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ async def get_input_model(node_template: NodeTemplate) -> Type[BaseModel]:
238238
if len(new_unit_states) > 0:
239239
await State.insert_many(new_unit_states)
240240
except DuplicateKeyError:
241-
logger.error(f"Duplicate key error for new unit states: {new_unit_states}")
241+
logger.warning(f"Caught an expected duplicate key error for new unit states, likely due to a race condition: {new_unit_states}")
242242

243243
except Exception as e:
244244
await State.find(

0 commit comments

Comments
 (0)