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.

Project-level Parameters

See original GitHub issue

Hi, I wondering about the role of parameters and Digdag, using the CLI.

On the one hand, we can set parameters when the server starts as server level parameters shared across projects and workflows using digdag server --param …. On the other hand, it seems we can set workflow level parameters with digdag start … --param ….

What I’m thinking is that I was to be able to set properties for projects and workflows per project, and for the life of the project (not for a single session as, if I understand correctly, with digdag start.

Wondering if support --param makes sense with digdag push … to set project level params, either one at a time or with a config file just like with the server command. That would allow me to change params when changing the project files, or possibly to only change params using digdag push.

Hope this makes sense. I guess my ask then is:

  • what is the best way to alter parameters per project?
  • is it possible to allow for push to set project level params?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mugacommented, Sep 15, 2018

@friendofasquid @hiroyuki-sato Sorry for my delayed response. I believe that https://github.com/treasure-data/digdag/pull/845 could solve your issue. https://github.com/treasure-data/digdag/pull/845 enables storing parameter values generated by the current workflow session then, they could be accessed by the next session or other workflows. Please take a look and if you have any questions and suggestions, please feel free to comment on it.

0reactions
friendofasquidcommented, Nov 26, 2018

@nickhall I never did get what I needed into production, but the param_get and param_set features look like they’d do what we need. See: https://docs.digdag.io/operators/param_get.html

It’s not 100% obvious how we’d set different values depending on what environment we’re running the code in without restarting the server. One way would be to store that information in a database table and use a digdag operator to query and store. In this case, you’d store your config as a table instead of as a YAML file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integration Services (SSIS) Package and Project Parameters
You can create project parameters at the project level and package parameters at the package level. Project parameters are used to supply ...
Read more >
Using Project-level Parameters - Introduction to Scale
Scale maintains a queryable list of all past project versions. You can quickly see what was in a given project version of the...
Read more >
Project Parameter - an overview | ScienceDirect Topics
Project parameters define the scope, budget, schedule, and quality of the project. There is an interrelationship among these parameters.
Read more >
SSIS Project Parameters Vs Package Parameters
In SSIS, Parameters are of two types: Project Parameters and Package Parameters. Project Parameters are something like Global. You can access them from...
Read more >
How to use Package Level Parameter and Project Level ...
Project level and Package level parameters are available in SSIS 2012 and later versions of SSIS. We use them in SSIS Package so...
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