Skip to content

brunofuentes/django-scheduler

Repository files navigation

Task Scheduler App

APP URL: https://django-task-scheduler.herokuapp.com/admin/

Instructions

  1. With the given credentials, log in to the admin panel and open the requests menu.
  2. Add your HTTP Request with a name, choose GET or POST, add your URL, add a start date and time and save it.
  3. You will see your inputs in the requests table. You can modify if only before the request has been made.
  4. The requests table will be updated once the request has been made with the following infos: STATUS, STATUS_CODE and RES_BODY (3 right columns).
  5. Additional infos of the requests can be found at Task Results tab, such as id, task name, complete datetime, state and worker.

Tech Stack:

List of all dependencies: requirements.txt

Running the project locally:

Make sure you have Redis installed. Follow this tutorial to get it done.

  1. Clone this repository
  2. Initiate and activate a virtualenv:
python3 install virtualenv
python -m virtualenv env
  1. Install all dependencies:
pip install requirements.txt
  1. Run Django Project / Migrations:

python manage.py migrate
python manage.py runserver
  1. In order to fully run the application you need:
  • django server running
  • celery worker
  • redis server
  • PostgreSQL database

Usefull commands:

  • To start a celery worker:
celery -A scheduler worker --loglevel=info -P threads (for windows)
celery -A scheduler worker --loglevel=info (for UNIX Systems)

  • To start redis (on a windows, WSL Terminal):
redis-server
  • In case of changes on the models:
python manage.py makemigrations

About

A task scheduler app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published