external_service
external_service copied to clipboard
Using `:fault_injection` strategy causes `:fuse_monitor` to fail
Using v 0.9.1, execute the following in iex:
ExternalService.start(:some_name, fuse_strategy: {:fault_injection, 0.5, 5, 1_000})
If you wait a while (1 minute?), it fails with:
20:59:03.131 [error] GenServer :fuse_monitor terminating
** (FunctionClauseError) no function clause matching in :fuse_monitor.update/2
With a reference to fuse/src/fuse_monitor.erl:91: :fuse_monitor.update({:some_name, {:gradual, 0.5}}, [])
Thanks @davidsulc, I'll take a look into this.
FYI it seems this in an upstream issue: https://github.com/jlouis/fuse/issues/28
There should be a fix of this as of 2.4.5 (which hasn't been released yet, but I'll do that once tests have been run, etc).
Updated to fuse 2.5 so this should be resolved.
@davidsulc: Please verify if this is still an issue for you.