Skip to content

Commit d03751e

Browse files
author
Connor McMahon
authored
Merging dev into master #105
2 parents bce3a49 + 1363385 commit d03751e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+6414
-559
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is. Please make an effort to fill in all the sections below; the information will help us investigate your issue.
12+
13+
**Investigative information**
14+
15+
- Durable Functions extension version:
16+
- durable-functions npm module version:
17+
- Language (JavaScript/TypeScript) and version:
18+
- Node.js version:
19+
20+
***If deployed to Azure App Service***
21+
22+
- Timeframe issue observed:
23+
- Function App name:
24+
- Function name(s):
25+
- Region:
26+
- Orchestration instance ID(s):
27+
28+
> If you don't want to share your Function App name or Functions names on GitHub, please be sure to provide your Invocation ID, Timestamp, and Region - we can use this to look up your Function App/Function. Provide an invocation id per Function. See the [Functions Host wiki](https://github.com/Azure/azure-webjobs-sdk-script/wiki/Sharing-Your-Function-App-name-privately) for more details.
29+
30+
**To Reproduce**
31+
Steps to reproduce the behavior:
32+
33+
1. Go to '...'
34+
2. Click on '....'
35+
3. Scroll down to '....'
36+
4. See error
37+
38+
> While not required, providing your orchestrator's source code in anonymized form is often very helpful when investigating unexpected orchestrator behavior.
39+
40+
**Expected behavior**
41+
A clear and concise description of what you expected to happen.
42+
43+
**Actual behavior**
44+
A clear and concise description of what actually happened.
45+
46+
**Screenshots**
47+
If applicable, add screenshots to help explain your problem.
48+
49+
**Known workarounds**
50+
Provide a description of any known workarounds you used.
51+
52+
**Additional context**
53+
54+
- Development environment (ex. Visual Studio)
55+
- Links to source
56+
- Additional bindings used
57+
- Function invocation IDs

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
|Branch|Status|
2+
|---|---|
3+
|master|[![Build Status](https://azfunc.visualstudio.com/Azure%20Functions/_apis/build/status/Azure.azure-functions-durable-js?branchName=master)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=13&branchName=master)|
4+
|dev|[![Build Status](https://azfunc.visualstudio.com/Azure%20Functions/_apis/build/status/Azure.azure-functions-durable-js?branchName=dev)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=13&branchName=dev)|
5+
16
# Durable Functions for Node.js
27

38
The `durable-functions` npm package allows you to write [Durable Functions](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview) for [Node.js](https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-node). Durable Functions is an extension of [Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/functions-overview) that lets you write stateful functions and workflows in a serverless environment. The extension manages state, checkpoints, and restarts for you. Durable Functions' advantages include:
@@ -64,7 +69,7 @@ module.exports = df.orchestrator(function*(context){
6469

6570
**Note:** Orchestrator functions must follow certain [code constraints.](https://docs.microsoft.com/en-us/azure/azure-functions/durable-functions-checkpointing-and-replay#orchestrator-code-constraints)
6671

67-
7. Write your client function ([see sample]((./samples/HttpStart/))):
72+
7. Write your client function ([see sample](./samples/HttpStart/)):
6873
```javascript
6974
module.exports = async function (context, req) {
7075
const client = df.getClient(context);
@@ -116,4 +121,4 @@ The `durable-functions` shim lets you express a workflow in code as a [generator
116121

117122
These calls return a `Task` or `TaskSet` object signifying the outstanding work. The `orchestrator` method appends the action(s) of the `Task` or `TaskSet` object to a list which it passes back to the Functions runtime, plus whether the function is completed, and any output or errors.
118123

119-
The Azure Functions extension schedules the desired actions. When the actions complete, the extension triggers the orchestrator function to replay up to the next incomplete asynchronous unit of work or its end, whichever comes first.
124+
The Azure Functions extension schedules the desired actions. When the actions complete, the extension triggers the orchestrator function to replay up to the next incomplete asynchronous unit of work or its end, whichever comes first.

azure-pipelines.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
variables: {
2+
MODULE_VERSION: '1.2.2',
3+
NODE_LOWER_LTS: '8.x',
4+
NODE_HIGHER_LTS: '10.x'
5+
}
6+
name: $(MODULE_VERSION)-$(Date:yyyyMMdd)$(Rev:.r)
7+
8+
trigger:
9+
- master
10+
- dev
11+
12+
jobs:
13+
- job: UnitTests
14+
strategy:
15+
matrix:
16+
WINDOWS_NODE8:
17+
IMAGE_TYPE: 'vs2017-win2016'
18+
NODE_VERSION: $(NODE_LOWER_LTS)
19+
WINDOWS_NODE10:
20+
IMAGE_TYPE: 'vs2017-win2016'
21+
NODE_VERSION: $(NODE_HIGHER_LTS)
22+
pool:
23+
vmImage: $(IMAGE_TYPE)
24+
steps:
25+
- task: NodeTool@0
26+
inputs:
27+
versionSpec: $(NODE_VERSION)
28+
displayName: 'Install Node.js'
29+
- script: npm install
30+
displayName: 'npm install'
31+
- script: npm run test
32+
displayName: 'npm build and test'

0 commit comments

Comments
 (0)