@apify/n8n-nodes-apify
Version:
n8n nodes for Apify
22 lines • 1.57 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.properties = exports.option = exports.name = void 0;
const properties_1 = require("./properties");
const hooks_1 = require("./hooks");
exports.name = 'Run task';
const rawOption = {
name: 'Run Task',
value: 'Run task',
action: 'Run task',
description: 'Runs an actor task and immediately returns without waiting for the run to finish Optionally you can override the actor input configuration by passing a JSON object as the POST payload and setting the Content Type application JSON HTTP header Note that if the object in the POST payload does not define a particular input property the actor run uses the default value defined by the task or actor s input schema if not defined by the task The response is the actor Run object as returned by the Get run endpoint If you want to wait for the run to finish and receive the actual output of the actor run as the response use one of the Run task synchronously API endpoints instead To fetch the actor run results that are typically stored in the default dataset you ll need to pass the ID received in the defaultDatasetId field received in the response JSON to the Get items API endpoint',
routing: {
request: {
method: 'POST',
url: '=/v2/actor-tasks/{{$parameter["actorTaskId"]}}/runs',
},
},
};
const { properties, option } = (0, hooks_1.runHooks)(rawOption, properties_1.properties);
exports.properties = properties;
exports.option = option;
//# sourceMappingURL=index.js.map