<#1902 Fix module loading bug in instance tracker ...
# flyte-github
a
#1902 Fix module loading bug in instance tracker class Pull request opened by cosmicBboy TL;DR This PR fixes an issue reported here where
pyflyte
and other executables were trying to be loaded by the
tracker.py
module when finding trackable instances. Type ☑︎ Bug Fix ☐ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed • [ ] Smoke tested • [ ] Unit tests added (will be added subsequently) • [ ] Code documentation added • [ ] Any pending items have an associated Issue Complete description The eager workflow PR introduced a bug that caused breakages in
@dynamic
workflows and agents. The underlying reason is that eager workflows need to be able to load task/dynamic/workflow functions as
InstanceTrackingMeta
instances so that it can execute them via
FlyteRemote
. The issue is that, before
1579
,
InstanceTrackingMeta
did not support loading entities defined in the
__main__
module. This PR handles a module loading error that was being raised because the
tracker
module was trying to load the
pyflyte
and other
pyflyte-*
executables. Tracking Issue flyteorg/flyte#4245 Follow-up issue #1892 flyteorg/flytekit Codecov: 55.08% (-39.90%) compared to 85b8d29 Codecov: 5.26% of diff hit (target 94.97%) ✅ 28 other checks have passed 28/30 successful checks