Hello, flyte team! I have a question about multi-...
# ask-the-community
s
Hello, flyte team! I have a question about multi-container in flyte.
Copy code
@task(image=image1)
def task_a():
  import some_package_only_in_1
  return some_package_only_in_1() 

@task(image=image2)
def task_n():    
  import some_package_only_in_2 
  return some_package_only_in_2()
Those modules between
some_package_only_in_1&some_package_only_in_2
have dependency conflicts. Thus, I should try to build multi containers for each tasks. For example, I will run the entire workflow container with the name of
workflow_image
. It does not contain both modules,
some_package_only_in_1&some_package_only_in_2
. Dose it make Runtime Error when I execute
serialize source codes
because of both modules? Thank you!
s
@SeungTaeKim, the code should work. It's okay even if the image you're using to package and register your workflow doesn't contain
some_package...
. Have I answered your question?
s
@Samhita Alla good news for me 🙂 Thank you!
120 Views