Closed matti closed 2 years ago
Because they are serialized to JSON, stored in Redis and deserialized from it when job runs.
Happens here https://github.com/chaps-io/gush/blob/master/lib/gush/client.rb#L130. And why a symbol? Pure preference 😁
huh, if you do a similar thing with sidekiq it keeps keys as strings.
also, if you give a symbol as an argument in sidekiq, it becomes a string. so this behaviour is kinda other way around than in sidekiq.
https://github.com/chaps-io/gush/blob/master/lib/gush/client.rb#L130
principle of most surprise.
I don't like keys as strings, hence the preference.
That preference is really against the most popular (?) implementation of similar tool (sidekiq) - it should be atleast configurable
Yeah, configuration option sounds good. Would you mind preparing a PR?
Closing due to inactivity
--> project_id becomes a symbol, why?