
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
cadence-web
Advanced tools
Cadence is a distributed, scalable, durable, and highly available orchestration engine we developed at Uber Engineering to execute asynchronous long-running business logic in a scalable and resilient way.
This web UI is used to view workflows from Cadence, see what's running, and explore and debug workflow executions.
Set these environment variables if you need to change their defaults
Variable | Description | Default |
---|---|---|
CADENCE_TCHANNEL_PEERS | Comma-delmited list of tchannel peers | 127.0.0.1:7933 |
CADENCE_TCHANNEL_SERVICE | Name of the cadence tchannel service to call | cadence-frontend |
CADENCE_WEB_PORT | HTTP port to serve on | 8088 |
CADENCE_EXTERNAL_SCRIPTS | Addtional JavaScript tags to serve in the UI | |
ENABLE_AUTH | Enable auth feature | false |
AUTH_TYPE | concurrently supports ADMIN_JWT | '' |
AUTH_ADMIN_JWT_PRIVATE_KEY | JWT signing private key for ADMIN_JWT type | '' |
cadence-web
requires node v10.22.1
or greater to be able to run correctly. cadence-web
uses all the standard npm scripts to install dependencies, run the
server, and run tests.
To provide a consistent environment we recommend using docker in development. We provide a default configuration for remote containers using docker-compose.
npm install
should run automatically in the container upon doing so.npm run dev
.localhost:8088
(or the custom Cadence Web port you have defined) to load the webapp.To start local server with live reload on code change you can run docker-compose up
.
For development and contributing to cadence-web
, please see the contributing guide.
You may also use docker by pulling ubercadence/web. It is also included in the Cadence server's local docker setup.
If you need to extend cadence-web
to add middleware to the server, you can install cadence-web
as a dependecy, and it will export the Koa web server that has not yet been started or configured. It includes an additional init
function that will then compose the built-in middleware. This gives you an option to add middleware before or after you call init
so it will add the middleware at the beginning or the end of the chain, respectively.
init(options)
All options are optional.
useWebpack
: If true
, starts webpack and adds the middleware, otherwise if false
, it assumes the UI bundle was already built and serves it statically. Defaults to process.env.NODE_ENV === 'production'
.
logErrors
: If true
, thrown errors are logged to console.error
. Defaults to true
.
For example, here is how you would add a request count metric using uber-statsd-client
:
var app = require('cadence-web');
var createStatsd = require('uber-statsd-client');
var sdc = createStatsd({
host: 'statsd.example.com',
});
app
.use(async function(ctx, next) {
sdc.increment('http.request');
await next();
})
.init()
.listen(7000);
The webpack configuration is also exported as webpackConfig
, and can be modified before calling init()
.
MIT License, please see LICENSE for details.
FAQs
Cadence Web UI
We found that cadence-web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.