astarte-platform / astarte

Core Astarte Repository
https://docs.astarte-platform.org/
Apache License 2.0
236 stars 45 forks source link

Trigger Engine: do not crash when trigger policy has no ttl #952

Closed Annopaolo closed 1 month ago

Annopaolo commented 1 month ago

#951 fixed the TTL of policies, but it introduced a bug when to TTL was set due to Elixir's by-value evaluation strategy. Fix this by making the queue x-args generation lazy.