The problem is as follows, the loading of a csv file into the portal and the evaluation of the file data is done in a thread with Sidekiq. The detail is that it processes a number of records of that file correctly and the last records do not process them, since it seems that the parameters that it should read from the records stored in the database do not continue reading them or not. Extracts correctly It calls the classes but does not have the parameters to be processed. Therefore, it gives me errors that those fields can not be processed because they are empty.
I'm not sure if it's because of some gem timer that does not allow me to read the data while the thread is running or what process will be truncating the execution of that data.
One of the problems is that on several occasions sidekiq becomes unstable and it is necessary to lower and lift the process so that it continues working normally.