Closed maxpohlmann closed 4 months ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Totals | |
---|---|
Change from base Build 0c34ca8dc6937f148b6e272dfd621251e6da8765: | 0.03% |
Covered Lines: | 351 |
Relevant Lines: | 406 |
Thank you! :)
We had a problem where Quantum could only schedule a job right after executing
mix clean
, but with every call tomix
after that, our configured jobs were not scheduled, becausefunction_exported?/3
returned false, even though the function still existed, but apparently was not yet exported at the time the Quantum code executed. This PR fixes this by callingCode.ensure_loaded?/1
beforefunction_exported?/3
, which actively tries to load the module before returningtrue
if this was successful orfalse
otherwise (e.g. if the module does not exist).