Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = async function (context, req) {
const client = df.getClient(context);
const instanceId = await client.startNew(req.params.functionName, undefined, req.body);
context.log(`Started orchestration with ID = '${instanceId}'.`);
return client.createCheckStatusResponse(context.bindingData.req, instanceId);
};
module.exports = async function (context, req) {
const client = df.getClient(context);
const instanceId = await client.startNew(req.params.functionName, undefined, req.body);
context.log(`Started orchestration with ID = '${instanceId}'.`);
const timeoutInMilliseconds = getTimeInSeconds(req, timeout) || 30000;
const retryIntervalInMilliseconds = getTimeInSeconds(req, retryInterval) || 1000;
const response = client.waitForCompletionOrCreateCheckStatusResponse(
context.bindingData.req,
instanceId,
timeoutInMilliseconds,
retryIntervalInMilliseconds);
return response;
};
module.exports = async function (context, req) {
const client = df.getClient(context);
const instanceId = await client.startNew(req.params.functionName, undefined, req.body);
context.log(`Started orchestration with ID = '${instanceId}'.`);
return client.createCheckStatusResponse(context.bindingData.req, instanceId);
};
module.exports = async function(context) {
const client = df.getClient(context);
const instanceId = await client.startNew('Orchestrator', undefined, 'Nuget');
context.log(`Started orchestration with ID = '${instanceId}'.`);
return client.createCheckStatusResponse(context.bindingData.req, instanceId);
}
module.exports = async function (context, srcBlob) {
const client = df.getClient(context),
name = context.bindingData.name,
length = srcBlob.length;
//context.log("name:", name, " size:", length);
const instanceId = await client.startNew("renderPipeline", undefined, name);
//context.log("orchestrator:", instanceId);
return client.createCheckStatusResponse(name, instanceId)
};