Skip to content

Avoiding Duplicate Execution Due to code.py Name Conflict in Python #2421

Open
@fedeful

Description

@fedeful

What happened?

When I create an application that has a file named "code.py" as the value for mainApplicationFile, this causes the code to execute twice when there are certain imports in the source file. This is probably due to interference with the module in Python's standard library.

Reproduction Code

No response

Expected behavior

No response

Actual behavior

No response

Environment & Versions

  • Kubernetes Version:
  • Spark Operator Version:
  • Apache Spark Version:

Additional context

No response

Impacted by this bug?

Give it a 👍 We prioritize the issues with most 👍

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions