Hi
I’m not sure where to direct this question, so I’m starting with you :)
Is there any way it would be possible to have an extension run for more than the default 45 seconds?
In short, I’m building an extension that would need to process a lot of users in a project, and perform various tasks on them. In my current code, I had to build in limits to stop the code from processing too many users at once, as this would mean the code would hit the 45 second limit and then fail.
This means that I can fairly safely process 250 users in 45 seconds, but if the server is slow, then I can risk that this would not even work. Running this every hour would give me the ability to process 6000 users per day, but in some cases this will not be enough.
Worst case scenario, the solution in that case would be to split this into multiple projects, based on country or similar, and then just set up 8 projects with 8 connected workflows that would then load 8 jobs at the same time on the servers. This would increase the capacity to a theoretical 48.000 users, but loads in the projects would be very uneven, so might just be closer to 20-30.000 users per day.
I get that one job should not block the server for an extended amount of time but seeing that the SF extractor can run for 10 mins, makes me think that other jobs should be able to run a bit longer than the 45 seconds?.
Connecting the tasks might fix this a bit, but still not really. If the first tasks attempt to get all users in a project, and it is not able to do so within 45 seconds, should the next task then continue collecting users, or should it try to process those from the previous task, which might not be possible, if it failed due to running for too long? You see my point?
Btw, either I missed it completely or the documentation on connecting tasks is missing? There is a short bit in the plugin-app.jsx file, but only on the export, not how you pick up files from other tasks?
Thanks in advance!