Skip to main content

Additional Task Editor Options

Additional options of task editor

The Task Editor has additional options that allow you to enable logs for a task, maintain a uniqueness database that can be used in multiple tasks, set a priority for the task, specify which preset to run upon completion of this task, and other extremely useful options.

Basic Options

Options to Do log and Keep unique

Do log

Select this option to be able to view the task logs while the task is running or after it is completed. You will be able to see in the task log the reasons for failed queries and based on this you can draw conclusions and take some actions.

Keep unique

Keep unique - the ability to save uniqueness information for future tasks

Advanced Options

More options

By pressing the More options button, you will see advanced settings for the results: limit the number of logs, priority, run on completion, use the result file for queries, override tools.js, delete the task on completion, call a URL on completion.

Prepend Text and Append Text

Prepend Text and Append Text - A-Parser can insert prepend and append text into the result file to form the header of a CSV file, for initial and final XML tags, etc.

Limit Number of Logs

If the value is greater than zero, old logs are automatically deleted.

Limits on the number of logs

Task Priority

Used in conjunction with the setting Dynamic Thread Limit. Tasks with higher priority will get threads immediately after the completion of each request at tasks with lower priority

  • If tasks have the same priority, preference is given to the task that was added earlier in time
  • Works only with dynamic thread limit
  • When adding a task through the API, it is necessary to specify the prio field from 1 to 100 (the higher, the higher)

Run the Next Task on Completion of the Current One

Run on complete - the ability to run the next task after the current one is completed. In the settings, you can specify the required thread config and select the option Use result file for query, which allows you to use the file with the result of the current task as a source of queries for the task specified in the dropdown list.

Option Run on complete

Call Callback URL on Task Completion

Invoke URL on completion - the ability to send a POST request to the specified URL upon completion of the task, in the body of which will be a JSON with the task's state:

"taskUid" : "214",
"state" : {
"requests" : "1",
"additionalCount" : 0,
"addTime" : 1527501047,
"activeThreads" : 0,
"logExists" : 0,
"changeTime" : 1527501049,
"resultsCount" : 0,
"lastQuery" : "tt",
"lastTotalFail" : 0,
"avgSpeed" : 60,
"queriesDoneCount" : 1,
"started" : 1,
"queriesCount" : 1,
"minimized" : 0,
"curSpeed" : 0,
"totalWaitProxyThreads" : 0,
"totalFail" : 1,
"queriesDoneCountAtStart" : 0,
"startTime" : 1527501049,
"runTime" : 0,
"uniqueResultsCount" : "none"
"status" : "completed",
"stats" : "<b>Overall stats</b><br>Runtime: 0:00:00<br>HTTP requests: 1<br><br><b>1. Net::HTTP</b><br>Queries done: 1<br>Successful queries: 0<br>Proxies used: 1 (per query)<br>Retries used: 1 (per query)<br>HTTP requests: 1 (per query)<br>Proxies banned: 0/10000"

Overriding tools.js

Override tools.js - overrides the existing tools.js for the current preset, and also allows exporting only the necessary functions along with the preset.

Remove task on completion

Remove task on completion - removes the task upon completion, without adding it to the completed tasks.

Stop task on error

Stop task on error - stops the execution of the task when a failed request occurs.