Closed jwoertink closed 4 years ago
If this is something you'd like to support, I can submit a PR for it.
Perhaps it's counter intuitive, but you pass all the parameters you want into the same macro. This avoids depending on the finished macro hook.
class AfterLoginWorker < Mosquito::QueuedJob
params(member_id : String, ip : String)
def perform
# ...
end
end
Ah. Ok. I'll give that a shot.
Alright, this works how I would expect. Cleaned up my code. I see you added the doc tag, so that's good 👍 Thanks!
Documented in the wiki now: https://github.com/robacarp/mosquito/wiki/Job-Parameters
I guess this isn't a thing? I'm assuming I have to make a special object and do my own custom serialization? If that's the case, then there may need to be a better error message for this.