Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History service: improve a new event creation mechanism #5379

Open
dmitrii-beliakov opened this issue Sep 14, 2023 · 0 comments
Open

History service: improve a new event creation mechanism #5379

dmitrii-beliakov opened this issue Sep 14, 2023 · 0 comments

Comments

@dmitrii-beliakov
Copy link
Collaborator

dmitrii-beliakov commented Sep 14, 2023

Investigate how to create new events more efficiently:

  • create an event automatically when the first action is going to be saved (improvement for usages, less code on the user's side)
  • don't try to create events if there is an existing event for this correlation ID (improvement for chained events)
  • (?) create events in async way together with actions (allow to save actions first and then the event)
  • create a better approach than currently used when there are multiple events created: ix_ha_flow_event_task_id will not allow to create it. Probably it is better not to write anything at all if there is an entry with the same ID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant