Skip to content

PythonOperator with external module #12097

Answered by turbaszek
lforesta asked this question in Q&A
Discussion options

You must be logged in to vote

How about using this as callable?

def my_function(*args, **kwargs):
    from some_module import some_function
    return some_function(*args, **kwargs)

You still have to have the some_module installed on worker but it should not be necessary on scheduler and worker.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@lforesta
Comment options

@turbaszek
Comment options

@lforesta
Comment options

@turbaszek
Comment options

@lforesta
Comment options

Answer selected by lforesta
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