When triggering a workflow to run via the Task API...
# ask-stanley-ai
a
When triggering a workflow to run via the Task API in suitescript, how many instances of the workflow can I launch at a time, and will they silently fail to launch if I try to submit one of those workflow-triggering tasks when there are already a certain number of them running?
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** When triggering a workflow to run via the Task API in SuiteScript, the number of instances of the workflow that can be launched at a time depends on how you create the task and how many deployments there are. If a task is already running and another user tries to start the same task, NetSuite will not notify the second user that the task is already running. It also won't prevent the second user from starting the task. However, only one instance of the script will run, depending on how the task was created and the number of deployments. As for the question of whether tasks will silently fail to launch if there are already a certain number of them running, the conversations do not provide a definitive answer. However, it's important to note that error handling mechanisms, such as try-catch blocks, can be used in SuiteScript to handle any errors that might occur when creating tasks. This can help to ensure that tasks do not silently fail.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819885254
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819397
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817688
Please provide your feedback on this answer.