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

satextractor.schedler causing circular import #38

Closed
carderne opened this issue Feb 16, 2022 · 2 comments
Closed

satextractor.schedler causing circular import #38

carderne opened this issue Feb 16, 2022 · 2 comments

Comments

@carderne
Copy link
Contributor

The first line of this imports gcp_scheduler

from .gcp_scheduler import get_scheduler
from .scheduler import create_tasks_by_splits

Which itself imports from the same __init__.py again, causing a circular loop:

from satextractor.scheduler import create_tasks_by_splits

@carderne
Copy link
Contributor Author

Presumably get_scheduler() should be in the main scheduler.py and then it can import the gcp_schedule from gcp_scheduler.py?

@carderne
Copy link
Contributor Author

Fixed by ef9c562

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