mass_encryption icon indicating copy to clipboard operation
mass_encryption copied to clipboard

production_encryption queue

Open shamas- opened this issue 2 years ago • 1 comments

Not sure if it's configuration/Active Job backend specific, but after running mass_encryption:encrypt_all_in_tracks the MassEncryption::BatchEncryptionJobs were not picked up by default for me. I needed to add some configuration to process the production_encryption queue they were put on.

It's not a big deal, but if that is an expected step to get this working, it could bear a mention in the README.

shamas- avatar Oct 04 '23 22:10 shamas-

Hi there @shamas-, I think I'm having the same issue, as running mass_encryption:encrypt_all_in_tracks ONLY="User" returns:

[ActiveJob] Enqueued MassEncryption::BatchEncryptionJob (Job ID: xxxxxxxx) to Async(encryption) with arguments: #<MassEncryption::Batch:0x00007fdda0e8b248 @class_name="User", @from_id="xxxxxxxxx", @size=1000, @track=0, @tracks_count=1>, {:auto_enqueue_next=>true}

And the encryption did not seem to actually run. (still seeing unencrypted data in rails console)

What exactly did you mean by:

I needed to add some configuration to process the production_encryption queue they were put on.

Thanks!

Edit: Answered my own question by following the link in the README: https://guides.rubyonrails.org/active_job_basics.html

bpurinton avatar Dec 04 '23 20:12 bpurinton