production_encryption queue
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.
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