cancel
Showing results for 
Search instead for 
Did you mean: 

Threads for Alfresco Job and Repo action

boneill
Star Contributor
Star Contributor

Hi Guys,

I am writing a job in alfresco which processes batches of documents at a time.  I would like each of those batches to run in a seperate thread with their own transaction boundaries to improve throughtput of the job.  I realise I dont understand how Repo actions fit within this.  If I start a new Repo action for each batch in the job will the Repo  action run a seperate thread in Alfresco?

Hope this is a simple question.

Regards

Brian

1 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager

If you are using asynchronous Actions, every action will be executed on a different thread.

If you are using synchronous Actions, you need to create your own mechanism to handle a Thread Pool.

Hyland Developer Evangelist

View answer in original post

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

If you are using asynchronous Actions, every action will be executed on a different thread.

If you are using synchronous Actions, you need to create your own mechanism to handle a Thread Pool.

Hyland Developer Evangelist

Hi angelborroy,

Many thanks for clarifying this for me.  I will keep this in mind in future when executing jobs with batches.

Brian