Gowtham Manne
08/16/2022, 4:28 PMmutation LaunchRunMutation(
$repositoryLocationName: String!
$repositoryName: String!
$jobName: String!
$runConfigData: RunConfigData!
) {
launchRun(
executionParams: {
selector: {
repositoryLocationName: $repositoryLocationName
repositoryName: $repositoryName
jobName: $jobName
}
runConfigData: $runConfigData
}
) {
__typename
... on LaunchRunSuccess {
run {
runId
}
}
... on RunConfigValidationInvalid {
errors {
message
reason
}
}
... on PythonError {
message
}
}
}
How can I pass custom parameter to the job ?
sandy
08/16/2022, 5:54 PMprha
08/16/2022, 5:57 PMGowtham Manne
08/16/2022, 5:59 PMprha
08/16/2022, 6:06 PMGowtham Manne
08/16/2022, 6:11 PMprha
08/16/2022, 6:16 PMGowtham Manne
08/16/2022, 6:18 PMrunConfigData: $runConfigData
prha
08/16/2022, 9:04 PMRunConfigData
:
"""
This type is used when passing in a configuration object
for pipeline configuration. Can either be passed in as a string (the
YAML configuration object) or as the configuration object itself. In
either case, the object must conform to the constraints of the dagster config type system.
"""
scalar RunConfigData
It depends on how you’re passing it in (probably via Python?), but you either pass a run config dictionary
# example run config dictionary, from the docs example
{"ops": {"my_op": {"inputs": {"input_string": {"value": "marmot"}}}}}
or the yaml string of the run config dictionary:
# example run config yaml, from the docs example
ops:
my_op:
inputs:
input_string:
value: "marmot"
I would recommend you first familiarize yourself with the required run config needed to launch your job in repository A (using launchpad) before then trying to launch using the GraphQL API.