title: How can I inspect a queue in ActiveJobs?
body: <p>Before enqueueing a job I would like to inspect the queue and see if a job already exists in the queue with the exact same arguments and in that case not enqueue the job. But I cannot find out how I should be able to do this. Is it possible? </p>
  
  <p>I know I can easily do it in my tests with the use of the TestHelper. TestHelper relies on the TestAdapter which we of course does not use in the production environment.</p>
  
  <p>A little bit more background. In our API we retrieve the clients version number in each request. We use Intercom for support and want to present the app version in Intercom so we can see what version our customers use when addressing support issues. But to limit the number of calls to Intercom I delay each posting to Intercom a couple of minutes and while a post is enqueued I do not want to enqueue new ones with the same data. </p>
  
  <p>My question is related to <a href="https://stackoverflow.com/questions/40032266/list-queued-tasks-with-activejob-asyncadapter">List queued tasks with ActiveJob AsyncAdapter</a> but that question only deals with the number of enqueued jobs.</p>
  
  <p><a href="https://stackoverflow.com/questions/28212817/efficiently-reschedule-activejob-resque-sidekiq">Efficiently reschedule ActiveJob (resque/sidekiq)</a> indicates that this is not possible and I would need to implement the solution separately.</p>
  
  <p>Can I somehow inspect a queue and the jobs in it with ActiveJobs or do I need to keep track of what I have queued and what has been performed?</p>