TaskCollectionClient
Hierarchy
- ResourceCollectionClient
- TaskCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
create
Creates a new task.
Parameters
task: TaskCreateData
The task data.
Returns Promise<Task>
The created task object.
list
Lists all Tasks.
Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched items in a single API call is limited.
const paginatedList = await client.list(options);Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are retrieved.
for await (const singleItem of client.list(options)) {...}Parameters
options: TaskCollectionListOptions = {}
Pagination and sorting options.
Returns PaginatedIterator<TaskList>
A paginated iterator of tasks.
Client for managing the collection of Actor tasks in your account.
Tasks are pre-configured Actor runs with saved input and options. This client provides methods to list and create tasks.
https://docs.apify.com/platform/actors/running/tasks