# Sidekiq

Check out the the doc at <https://github.com/mperham/sidekiq/wiki>

## Job Definition

```ruby
class MyDummyPutsJob
  include Sidekiq::Worker

  def perform(text)
    puts text
  end
end
```

## Jobs Enqueueing&#x20;

```ruby
MyDummyPutsJob.perform_async("Hi there future you!")
```

## How Sidekiq really works

{% embed url="<https://pdabrowski.com/articles/how-sidekiq-really-works>" %}

## Tips and Tricks

#### Run all Sidekiq processes on your computer

```bash
gem install foreman 
forman start -f Procfile.dev
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://prospect-io.gitbook.io/developer-playbook/our-stack/ruby-on-rails/sidekiq.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
