Skip to content

Import mechanism in (git) jobs #643

Answered by glennmatthews
u1735067 asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the question!

The Git repository Job discovery implementation, much like the $JOBS_ROOT Job discovery, is really designed more around importing individual files in isolation - as you've seen here, while it may be possible to work around this, it's definitely outside the scope of how the feature is "intended" to be used. We could probably stand to improve the documentation and recommendations here to make this more explicit.

I'll state that from my viewpoint, if there's enough complexity in your Jobs that you need to have a common "library" of code to be used across multiple Jobs, my general recommendation would be to package the library code (at least) into a Python package …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@glennmatthews
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by u1735067
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants