diff --git a/components/apify/actions/run-task/run-task.mjs b/components/apify/actions/run-task/run-task.mjs index 46077a4798646..318fa2d96c183 100644 --- a/components/apify/actions/run-task/run-task.mjs +++ b/components/apify/actions/run-task/run-task.mjs @@ -7,7 +7,7 @@ export default { key: "apify-run-task", name: "Run Task", description: "Run a specific task and optionally wait for it's termination.", - version: "0.0.1", + version: "0.0.2", type: "action", props: { apify, @@ -15,6 +15,9 @@ export default { propDefinition: [ apify, "taskId", + () => ({ + desc: true, + }), ], description: "The ID of the task to run", }, diff --git a/components/apify/apify.app.mjs b/components/apify/apify.app.mjs index 8f9c2e6c3fbd9..1d0d5641f1229 100644 --- a/components/apify/apify.app.mjs +++ b/components/apify/apify.app.mjs @@ -50,10 +50,13 @@ export default { type: "string", label: "Task ID", description: "The ID of the task to monitor.", - async options({ page }) { + async options({ + page, desc = false, + }) { const { items } = await this.listTasks({ offset: LIMIT * page, limit: LIMIT, + desc, }); return items.map((task) => ({