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

[Run] Preserve original code name/path where possible #1162

Merged
merged 42 commits into from Aug 5, 2021

Conversation

yaronha
Copy link
Collaborator

@yaronha yaronha commented Jul 29, 2021

  • in local runs try and use the original file vs create tmp (allow debug)
  • copy code body to local run functions (for UI)
  • when creating & running job code from code_to_function use the original py file name
  • edit run output string to show UI URL or CLI commands

yaron haviv added 30 commits April 27, 2021 23:48
This reverts commit 2538e36
@yaronha yaronha requested a review from Hedingber August 2, 2021 13:59

meta = BaseMetadata(name, project=project, tag=tag)
command, runtime = _load_func_code(command, workdir, secrets=secrets, name=name)

if runtime:
handler = handler or get_in(runtime, "spec.default_handler", "")
meta = BaseMetadata.from_dict(runtime["metadata"])
meta.name = name or meta.name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you remove this ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we want the local function to have the exact same name as the job function (so in UI its the same group)

mlrun/runtimes/base.py Outdated Show resolved Hide resolved
@Hedingber Hedingber changed the title [Run] preserve original code name/pass where possible [Run] Preserve original code name/pass where possible Aug 3, 2021
@Hedingber Hedingber changed the title [Run] Preserve original code name/pass where possible [Run] Preserve original code name/path where possible Aug 3, 2021
@Hedingber Hedingber merged commit 4354abe into mlrun:development Aug 5, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants