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.

ops can not be used as a config entry in place of solids in the Playground run config

See original GitHub issue

Summary

Release 0.12.4 added:

ops can now be used as a config entry in place of solids.

It works in config you provide in the code, but not in the Playground run config.

Reproduction

Simple example test_ops.py:

from dagster import op, graph, repository


@op
def op1(context, input1: int):
    context.log.info(f"Ran for {input1}")


@graph
def graph1():
    op1()


@repository()
def repo1():
    job1 = graph1.to_job(config={"ops": {"op1": {"inputs": {"input1": 12}}}})
    return [job1]

Run: dagit -f test_ops.py

image

The “Launch Execution” button remains gray and this error is displayed:

Received unexpected config entry “ops” at the root. Expected: “{ solids?: { op1: { config?: Any inputs: { input1: (Int | { json: { path: String } pickle: { path: String } value: Int }) } outputs?: [{ result?: { json: { path: String } pickle: { path: String } } }] } } }”.

Workarounds:

  • leave the Playground run config blank so it uses the one from the code
  • replace ops with solids in the Playground run config.

Message from the maintainers:

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dpeng817commented, Jul 31, 2021

Hey @NicolasPA, apologies for the thrash. You are correct that default config should be showing up in the playground for the job.

Turned out to be a bug in the default config buildup; after resolving, the default config no longer errors from the playground, as expected: Screen Shot 2021-07-31 at 8 48 58 AM

Thanks again for surfacing! A fix should be out for next release.

One thing to note, an unfortunate side affect of allowing for both config entries is that (for now), config errors related to op config are surfaced in terms of solid.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Ops
The CloudConfig configures various attributes about the cloud provider, we want to use with ops. BucketName.
Read more >
dagster/CHANGES.md at master - GitHub
Executing a subset of ops within a job that specifies its config value directly on the job, it no longer attempts to use...
Read more >
Run Configuration - Dagster Docs
Job run configuration allows providing parameters to jobs at the time ... Various Dagster entities (ops, assets, resources) can be individually configured.
Read more >
How To Automate Jenkins Setup with Docker ... - DigitalOcean
Step 2 — Installing Jenkins Plugins. To use JCasC, you need to install the Configuration as Code plugin. Currently, no plugins are installed....
Read more >
Creating a Director Config File - Platform Automation Toolkit
om has a command called staged-director-config, which is used to extract the Ops Manager and the BOSH director configuration from the targeted foundation....
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