-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to TemplateProcessor.setData, fix tests, draft persistence ty…
…pes. (#8) * Persistenance noop in-memory * WIP seprate Persistence class * add Persistence interface and draft different implementations * cleanup Persistence, add jsonPath to store argument * propogate jsonPath * add invocation path to log * added state files * update to the latest version * switch to memory persistence, expose persistenceType as a constructor parameter * revert tests to noop persistence behavior * uncomment perf test * docker build * draft support for TemplateProcessor for using setData * make setData working for serialGenerator * pass newly created templateProcessor to the repl * update version, WIP setData * convert workflow to a function to avoid reevaluation on every step log change * migrate to statuc helper functions to resolve json paths * commented out perf and correlate failing tests * uncomment perf test with doubled perf time to ensure no flaky tests on intel chip * fix correlate test * add a server to start the workflow * API to list all workflows * add verbose logging * fix retryCount * README++, subscribe/produce * README++ * locks++ * fix pubsub test * add table of content --------- Co-authored-by: Sergey Sergeev <[email protected]>
- Loading branch information
1 parent
0e26b72
commit ecb530b
Showing
22 changed files
with
2,354 additions
and
1,220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,3 +139,6 @@ dist | |
|
||
# IDEs | ||
.vscode | ||
|
||
# Internal state storage | ||
.state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Official Node.js runtime | ||
FROM node:20.5.1 | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /usr/src/app | ||
|
||
# Bundle the application source code inside the container | ||
COPY src ./src | ||
COPY package.json package-lock.json stated-workflow.js stated-workflow-docker.js README.md ./ | ||
COPY example ./example | ||
|
||
# Install application dependencies | ||
RUN npm install | ||
|
||
# Grant execute permissions for the stated-workflow-docker.js file | ||
RUN chmod +x stated-workflow-docker.js | ||
|
||
# Start an example workflow which listens on port 8080 for cloud events | ||
CMD ["node", "--experimental-vm-modules", "./stated-workflow-docker.js", "-f", "example/wfHttp01.yaml"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: '2' | ||
services: | ||
zookeeper: | ||
image: wurstmeister/zookeeper:latest | ||
ports: | ||
- "2181:2181" | ||
kafka: | ||
image: wurstmeister/kafka:2.11-1.1.1 | ||
ports: | ||
- "9092:9092" | ||
links: | ||
- zookeeper | ||
environment: | ||
KAFKA_ADVERTISED_HOST_NAME: ${HOST_IP} | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' | ||
KAFKA_DELETE_TOPIC_ENABLE: 'true' | ||
KAFKA_CREATE_TOPICS: "topic-test:1:1" | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
pulsar: | ||
image: apachepulsar/pulsar:latest | ||
command: bin/pulsar standalone | ||
ports: | ||
- "6650:6650" | ||
- "8080:8080" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.