Sensors in branch deployments #16408
-
Can sensors not be activated in branch deployments? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
No, sensors can only be fully turned on in production deployments. You can navigate to the sensor page and "Test Sensor" will let you run an evaluation tick of the sensor in the branch deployment |
Beta Was this translation helpful? Give feedback.
-
Worth noting that the "test sensor" button is currently only available for "regular" sensors and not asset sensors, multi-asset sensors or run status sensors. You would need to unit test / use direct invocation APIs to test these other sensors for now. #12346 (comment) shows a good example of testing and mocking asset sensors. The GraphQL API meanwhile does have a mutation SensorDryRun {
sensorDryRun(
selectorData: {
repositoryName: "",
repositoryLocationName: "",
sensorName: ""
},
cursor: ""
) {
__typename
... on DryRunInstigationTick {
timestamp
evaluationResult {
runRequests {
runKey
tags {
key
value
}
runConfigYaml
assetSelection {
path
}
jobName
}
}
}
... on PythonError {
message
stack
}
... on SensorNotFoundError {
message
}
}
} Note that:
If the Code location name is something like "foo@bar" then this represents |
Beta Was this translation helpful? Give feedback.
No, sensors can only be fully turned on in production deployments. You can navigate to the sensor page and "Test Sensor" will let you run an evaluation tick of the sensor in the branch deployment