{"id":19500667,"url":"https://github.com/miare-ir/sreinterview","last_synced_at":"2026-05-06T14:40:40.577Z","repository":{"id":96514364,"uuid":"576495208","full_name":"miare-ir/SREInterview","owner":"miare-ir","description":"This repo holds the material for the technical step of our SRE interview process.","archived":false,"fork":false,"pushed_at":"2022-12-11T13:43:19.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-11-18T14:37:01.630Z","etag":null,"topics":["ansible","celery","django","interview","miare","sre"],"latest_commit_sha":null,"homepage":"https://jobs.miare.ir","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miare-ir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-10T02:48:03.000Z","updated_at":"2022-12-10T02:53:10.000Z","dependencies_parsed_at":"2023-04-26T22:12:18.706Z","dependency_job_id":null,"html_url":"https://github.com/miare-ir/SREInterview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miare-ir/SREInterview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miare-ir%2FSREInterview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miare-ir%2FSREInterview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miare-ir%2FSREInterview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miare-ir%2FSREInterview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miare-ir","download_url":"https://codeload.github.com/miare-ir/SREInterview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miare-ir%2FSREInterview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32699114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","celery","django","interview","miare","sre"],"created_at":"2024-11-10T22:09:26.855Z","updated_at":"2026-05-06T14:40:40.560Z","avatar_url":"https://github.com/miare-ir.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Task Description\n\nWe want to set up a server to run \u0026 serve a `Django` application which uses `Celery` for its\nbackground jobs.\n\nThe application source code we want to serve is located in this repo. Please refer to the\n[About this repo](#about-this-repo) section for more information.\n\nWhat you should deliver is a private ansible repository that you added `amirali` and `sazary` users as collaborators.\n\nIf you have any questions or find any part of the task vague, don’t hesitate to get in touch with\nus.\n\n## Must have requirements:\n\n- The `Django` application should be running and serving views.\n- At least one `Celery` worker should be running.\n- A suitable broker for `Celery` should be selected. We recommend using `Redis`. Whatever you\n  choose for it, security considerations (authentication, authorization, …) should be met.\n- A suitable database should be used. We recommend `Postgresql`. Whatever you choose for it,\n  security considerations (authentication, authorization, …) should be met.\n- All of these modules should be running using `systemd`, `Docker` or any other solution you choose.\n  Everything needed for installation \u0026 configuration of that solution must be provided in the final\n  result.\n- Security considerations of the server itself should be met, as we’re going to expose this machine\n  to the internet.\n\n## Nice to have requirements:\n\n- Having the application served behind a reverse proxy. We recommend `Nginx`.\n- Having a valid SSL certificate for views. The SSL/TLS connection should be terminated in the\n  reverse proxy.\n- Having the server, application \u0026 any of the important components monitored. We recommend using\n  `Prometheus` for monitoring.\n\n## Expected result\n\nWe don’t want to do any manual config on the server and will use `Ansible` for provisioning the\nserver from a raw `Ubuntu 22.04` installation. So, the final result we’re expecting from you is a\nrepo with `Ansible` roles \u0026 playbook to do everything.\n\n# About this repo\n\nThis application does one simple thing: It will queue some tasks, each of which would just `sleep`\nfor a duration that is given to it, and displays the results.\n\n## Setting up the project\n\nInstall all requirments. Please note that if you've decided to use some other database or broker\nfrom our recommendations, you may have to update the `requirements.txt` file accordingly.\n\n```sh\n$ pip install -r requirements.txt\n```\n\nThen ask the `manage.py` script to create tables. Please check the `DATABASES` section of the\nsettings file for default values.\n\n```sh\n$ ./manage.py migrate\n```\n\n## Running the project\n\nTo run the application (HTTP views):\n\n```sh\n$ gunicorn core.wsgi:application\n```\n\nTo run the `celery` workers:\n\n```sh\n$ celery -A core worker\n```\n\n## Using the project\n\nTo trigger a new task:\n\n```sh\n$ curl -F duration=1 http://localhost:8000/tasks/\n```\n\nTo check the status:\n\n```sh\n$ curl http://localhost:8000/tasks/\u003cTASK_ID\u003e/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiare-ir%2Fsreinterview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiare-ir%2Fsreinterview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiare-ir%2Fsreinterview/lists"}