Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion components/apify/actions/run-task/run-task.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ 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,
taskId: {
propDefinition: [
apify,
"taskId",
() => ({
desc: true,
}),
],
description: "The ID of the task to run",
},
Expand Down
5 changes: 4 additions & 1 deletion components/apify/apify.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => ({
Expand Down
Loading