@apify/n8n-nodes-apify
Version:
n8n nodes for Apify
123 lines • 3.53 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.properties = void 0;
exports.properties = [
{
displayName: 'POST /v2/actor-tasks/{actorTaskId}/runs',
name: 'operation',
type: 'notice',
typeOptions: {
theme: 'info',
},
default: '',
displayOptions: {
show: {
resource: ['Actor tasks'],
operation: ['Run task'],
},
},
},
{
displayName: 'Actor Task',
name: 'actorTaskId',
required: true,
description: "Task ID or a tilde-separated owner's username and task's name",
default: 'janedoe~my-task',
type: 'string',
displayOptions: {
show: {
resource: ['Actor tasks'],
operation: ['Run task'],
},
},
},
{
displayName: 'Wait For Finish',
name: 'waitForFinish',
description: 'The maximum number of seconds the server waits for the run to finish. By default the server do not wait for the run to finish and returns immediately. The maximum value is 60 seconds.',
default: null,
type: 'number',
typeOptions: {
maxValue: 60,
},
routing: {
request: {
qs: {
waitForFinish: '={{ $value || $value === 0 ? $value : undefined }}',
},
},
},
displayOptions: {
show: {
resource: ['Actors'],
operation: ['Run actor'],
},
},
},
{
displayName: 'Timeout',
name: 'timeout',
description: `Optional timeout for the run, in seconds. By default, the run uses a
timeout specified in the task settings.`,
default: null,
type: 'number',
routing: {
request: {
qs: {
timeout: '={{ $value || $value === 0 ? $value : undefined }}',
},
},
},
displayOptions: {
show: {
resource: ['Actor tasks'],
operation: ['Run task'],
},
},
},
{
displayName: 'Memory',
name: 'memory',
description: `Memory limit for the run, in megabytes. The amount of memory can be set
to a power of 2 with a minimum of 128. By default, the run uses a memory
limit specified in the task settings.`,
default: null,
type: 'number',
routing: {
request: {
qs: {
memory: '={{ $value }}',
},
},
},
displayOptions: {
show: {
resource: ['Actor tasks'],
operation: ['Run task'],
},
},
},
{
displayName: 'Build',
name: 'build',
description: `Specifies the actor build to run. It can be either a build tag or build
number. By default, the run uses the build specified in the task
settings (typically \`latest\`).`,
default: '',
type: 'string',
routing: {
request: {
qs: {
build: '={{ $value }}',
},
},
},
displayOptions: {
show: {
resource: ['Actor tasks'],
operation: ['Run task'],
},
},
},
];
//# sourceMappingURL=properties.js.map