question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

job config defaults not loading in launchpad

See original GitHub issue

Summary

Setup:

  • single graph definition graph_1
  • creating multiple jobs from it job_pro and job_dev
  • both jobs go to separate repos:
    • job_pro -> pro_repo
    • job_dev -> dev_repo

I like to provide a default configuration for those jobs. Problem is that the launchpad config shows only for job_pro on dagit and doesn’t load for job_dev. I figured out that if both job definitions go to the same repository the config is loaded for both jobs as expected, as soon as they go to different repos the default config is only loaded on job_pro.

example:

from my_graph import graph_1

default_config = {
    "ops": {
        "some_op": {
            "config": {
                "nice_key": "cool"
            }
        }
    }
}

job_pro = graph_1.to_job(
    name="job_pro",
    config=default_config
)

job_dev = graph_1.to_job(
    name="job_dev",
    config=default_config
)

Reproduction

Tested this on 0.13.17 and 0.13.18, both with similar results.

Additional Info about Your Environment

Tested all local, with spawning dagit and accessing a local workspace.yaml.

---
load_from:
    - python_file:
        relative_path: repositories/pro.py
        working_directory: ./
    - python_file:
        relative_path: repositories/dev.py
        working_directory: ./

Message from the maintainers:

Impacted by this bug? Give it a 👍. We factor engagement into prioritization.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alangenfeldcommented, Feb 8, 2022

Opening new tabs in the launchpad is probably the best workaround while we work on fixing this

0reactions
hellendagcommented, Apr 26, 2022

I believe this is resolved by #7559.

There is an edge case noted by @alangenfeld above, in which the launchpad editor has been intentionally cleared of content. We will save this config session, as it may be what you see the next time you load the launchpad. This should be uncommon, since having a default config implies that you probably won’t clear the editor and end up in that state.

If you do find yourself in this edge case, creating a new config tab should correctly load the default config, and you can delete the old empty tab.

You should see a correctly populated config tab in the launchpad when:

  • Viewing a job where you have never edited config
  • Viewing a job after clearing localStorage
  • Creating a new config tab

This change will be in the upcoming release. Please let us know if you continue running into this problem after that!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Launchpad Designer Troubleshooting | SAP Help Portal
This section provides a central starting point for solving problems in the launchpad designer. Prerequisites. You have maintained the following settings:.
Read more >
Troubleshoot fiori launchpad | How to fix issue tile - YouTube
Most of us working deploying fiori app in sap fiori launchpad, often we face issue in fiori launchpad with app not loading, tile...
Read more >
Use Launchpad to view and open apps on Mac - Apple Support
Close Launchpad without opening an app: Click anywhere (except on an app) or press ... or if you reach the time limit set...
Read more >
Excellent and very detailed blog on how to properly configure ...
SAP Fiori Launchpad URL not working? ... Help not working? Check the settings in transaction HELP_CONFIG and your SAP Web Dispatcher parameters.
Read more >
Troubleshoot Launchpad for Python and R scripts - SQL ...
... Launchpad service from starting, including configuration problems ... Launchpad to connect to SQL Server and run external script jobs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found