breamware / sidekiq-batch

Sidekiq Batch Jobs Implementation
MIT License
357 stars 95 forks source link

Callback is triggered just after perform is call #76

Closed afuente90 closed 1 year ago

afuente90 commented 1 year ago

I am trying to get the callback (success or complete) when the worker is full finished not just after it is called.

Are there any way to get it done?

I tried with Worker.perform_in(4.seconds,data) and also in config sidekiq: :batch_push_interval: 3

But Success or complete event is called just after the action is called.

I also request the status inside the complete function and inside it complete is false: { :bid => "XXXX", :total => 0, :failures => 0, :pending => 0, :created_at => nil, :complete => false, :failure_info => [], :parent_bid => nil, :child_count => 0 }

Thank you

github-actions[bot] commented 1 year ago

Stale issue message