Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

production_encryption queue #54

Open
shamas- opened this issue Oct 4, 2023 · 1 comment
Open

production_encryption queue #54

shamas- opened this issue Oct 4, 2023 · 1 comment

Comments

@shamas-
Copy link

shamas- commented Oct 4, 2023

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.

@bpurinton
Copy link

bpurinton commented Dec 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants