Thank for your response, I tried to place a log in the perform method as follows:
@MainActor
func perform() async throws -> some IntentResult {
for item in 0...10000 {
os_log(.debug, "perform boot: \(item)")
}
return .result()
}
Each time I initiate from Siri and fetch logs, the logs appear to be uneven. Most of the time, I can only log from 400 onwards, and after that, the logs are not printed fully.
Then I tried using async await when logging:
@MainActor
func perform() async throws -> some IntentResult {
for item in 0...10000 {
await printLog(item)
}
return .result()
}
and this time the print seems to work more reliably, but it still doesn't print all the numbers within the for loop (Only able to print around 9500 to 9990 numbers).I understand that app intents run in the extension process and it does not operate reliably for handling heavy and sequential tasks, is that correct?