def checkAbsentees():
 today = datetime.now().date()
 absentees = []
 employees = Employee.objects.all()
 for each in employees:
 daily\_hour = DailyHour.objects.filter(employee=each, created\_\_date=today).first()
 if daily\_hour is None:
 absentees.append(each.name)
 send\_mail(
 'Absentees for Today',
 ", ".join(absentees),
 settings.EMAIL\_HOST\_USER,
 ['harigovindyearzero@gmail.com'],
 fail\_silently=False,) i have this function to be executed every 30secs.i need to do this with celery in django.can you show me from intial steps with examples
 Sure, I can help you set up a Celery task to run your `checkAbsentees` function every 30 seconds. Here are the steps you can follow:

**Step 1: Install Celery and its dependencies**

You can install Celery using pip:
```
pip install celery
Here's a step-by-step guide to running your `checkAbsentees` function every 30 seconds using Celery in a Django project:

**Step 1: Install Celery and its dependencies**

In your terminal, navigate to your Django project directory and run:
```
pip install celery[librabbitmq]
```
This will install Celery and the RabbitMQ broker, which is a popular message broker used by Celery.

**Step 2: Add Celery to your Django project**

In your Django project's `settings.py` file, add the following lines:
```python
INSTALLED_APPS = [
    #...
    'django_celery_beat',
    'celery',
]

CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'  # RabbitMQ broker URL
CELERY_RESULT_BACKEND = 'rpc'  # Optional, but recommended for Django
```
**Step 3: Create a Celery app**

In your Django project directory, create a new file called `celery.py` with the following content:
```python
import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'your_project.settings')

app = Celery('your_project')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
```
Replace `your_project` with the name of your Django project.

**Step 4: Define the task**

