Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schedule management commands #3237

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

SahilDhillon21
Copy link
Contributor

fixes #1899

I have added commands to execute other tasks hourly, daily, weekly and monthly

@JisanAR03
Copy link
Contributor

The scripts created in this PR (run_daily.py, run_hourly.py, run_monthly.py, run_weekly.py) are useful for scheduling tasks. However, these scripts alone do not handle the scheduling. The actual scheduling needs to be set up on the production server using a system scheduler like cron. Without this external setup, the scripts will not run automatically. do you have any other suggestion ?

@SahilDhillon21
Copy link
Contributor Author

Yes, you are right, these scripts do not automatically schedule the commands. I think the idea is that @DonnieBLT would schedule these tasks to be run hourly, monthly etc on the production server (we already have a scheduler there). So now, contributors can directly add the required tasks to these scripts since they do not have direct access to the scheduler

@DonnieBLT DonnieBLT merged commit e48b4ae into OWASP-BLT:main Jan 17, 2025
9 checks passed
@DonnieBLT
Copy link
Collaborator

Heroku has a scheduler plugin we use similar to cron

drvcodenta pushed a commit to drvcodenta/BLT that referenced this pull request Jan 21, 2025
DonnieBLT added a commit that referenced this pull request Mar 3, 2025
…rademark squatting (#3194)

* fix: #907

* Issue 2972 added refrash feature 2 (#3204)

* Add command to synchronize repository contributors and update technical details in RepoDetailView

* Add command to synchronize repository contributors and update technical details in RepoDetailView

* --no-update officially deleted from poetry

* poetry assume we want to install local package BLT

* poetry assume we want to install local package BLT

* chore(deps): Bump unstructured from 0.16.11 to 0.16.12

Bumps [unstructured](https://github.com/Unstructured-IO/unstructured) from 0.16.11 to 0.16.12.
- [Release notes](https://github.com/Unstructured-IO/unstructured/releases)
- [Changelog](https://github.com/Unstructured-IO/unstructured/blob/main/CHANGELOG.md)
- [Commits](Unstructured-IO/unstructured@0.16.11...0.16.12)

---
updated-dependencies:
- dependency-name: unstructured
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps-dev): Bump ruff from 0.8.4 to 0.8.6

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.8.4 to 0.8.6.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.8.4...0.8.6)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat: add ContributorStats model for tracking contributor activity (#3208)

* Comments on blog (#3195)

* comments on blog added

* on comments

* pre

* change

* chages

* changes

* tests added

* pre

* feat: add ContributorStats admin interface and template for displaying contributor statistics (#3211)

* chore(deps-dev): Bump ruff from 0.8.6 to 0.9.0

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.8.6 to 0.9.0.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.8.6...0.9.0)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps): Bump pydantic from 2.10.4 to 2.10.5

Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.10.4 to 2.10.5.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v2.10.4...v2.10.5)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat: add ProjectBadgeView and RepoBadgeView for tracking project and repo visit counts (#3214)

* feat: add badges for project and repository view counts with copy functionality (#3215)

* enhance IP address retrieval for project and repo badge view

* update project URL to new project url and remove unused views (#3218)

* update project URL to new project url and remove unused views

* update project URL to new project url and remove unused views

* chore(deps-dev): Bump ruff from 0.9.0 to 0.9.1

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.9.0...0.9.1)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* enhance invitation feature with email notifications and referral links (#3220)

* enhance invitation feature with email notifications and referral links

* enhance invitation feature with email notifications and referral links

* chore(deps): Bump django-environ from 0.11.2 to 0.12.0

Bumps [django-environ](https://github.com/joke2k/django-environ) from 0.11.2 to 0.12.0.
- [Release notes](https://github.com/joke2k/django-environ/releases)
- [Changelog](https://github.com/joke2k/django-environ/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/joke2k/django-environ/commits)

---
updated-dependencies:
- dependency-name: django-environ
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps): Bump unstructured from 0.16.12 to 0.16.13

Bumps [unstructured](https://github.com/Unstructured-IO/unstructured) from 0.16.12 to 0.16.13.
- [Release notes](https://github.com/Unstructured-IO/unstructured/releases)
- [Changelog](https://github.com/Unstructured-IO/unstructured/blob/main/CHANGELOG.md)
- [Commits](Unstructured-IO/unstructured@0.16.12...0.16.13)

---
updated-dependencies:
- dependency-name: unstructured
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps): Bump django from 5.1.4 to 5.1.5

Bumps [django](https://github.com/django/django) from 5.1.4 to 5.1.5.
- [Commits](django/django@5.1.4...5.1.5)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps): Bump sentry-sdk from 2.19.2 to 2.20.0

Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.19.2 to 2.20.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-python@2.19.2...2.20.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* add a script for import new project (#3227)

* chore(deps): Bump scout-apm from 3.2.1 to 3.3.0

Bumps [scout-apm](https://github.com/scoutapp/scout_apm_python) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/scoutapp/scout_apm_python/releases)
- [Changelog](https://github.com/scoutapp/scout_apm_python/blob/master/CHANGELOG.md)
- [Commits](scoutapp/scout_apm_python@v3.2.1...v3.3.0)

---
updated-dependencies:
- dependency-name: scout-apm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps): Bump django-import-export from 4.3.3 to 4.3.4

Bumps [django-import-export](https://github.com/django-import-export/django-import-export) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/django-import-export/django-import-export/releases)
- [Changelog](https://github.com/django-import-export/django-import-export/blob/main/docs/changelog.rst)
- [Commits](django-import-export/django-import-export@4.3.3...4.3.4)

---
updated-dependencies:
- dependency-name: django-import-export
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps): Bump tweepy from 4.14.0 to 4.15.0

Bumps [tweepy](https://github.com/tweepy/tweepy) from 4.14.0 to 4.15.0.
- [Release notes](https://github.com/tweepy/tweepy/releases)
- [Changelog](https://github.com/tweepy/tweepy/blob/master/docs/changelog.md)
- [Commits](tweepy/tweepy@v4.14.0...v4.15.0)

---
updated-dependencies:
- dependency-name: tweepy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps-dev): Bump ruff from 0.9.1 to 0.9.2

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.9.1...0.9.2)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Add schedule management commands (#3237)

* feat(slack): add Slack event handling for team joins and messages (#3239)

* test(slack): add unit tests for Slack message handling functions (#3240)

* team overview dashboard (#3233)

* team overview dashboard

* add img h w

* Anonymous can post suggestions and Improved UI (#3158)

* initial commit

* second commit

* fixed pre-commit

* fixed pre-commit

* fixed pre-commit

* pre-commit

* CORS policy fix

---------

Co-authored-by: DonnieBLT <[email protected]>

* Creating slack-bot for OWASP slack workspace (#3145)

* slackbot initial commit

* slack bot integration

* major changes

* resolving CI/CD

* CI/CD

* fixed pre-commit

* fixing

* chore(deps): Bump django-simple-captcha from 0.6.0 to 0.6.1

Bumps [django-simple-captcha](https://github.com/mbi/django-simple-captcha) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/mbi/django-simple-captcha/releases)
- [Changelog](https://github.com/mbi/django-simple-captcha/blob/master/CHANGES)
- [Commits](mbi/django-simple-captcha@v0.6.0...v0.6.1)

---
updated-dependencies:
- dependency-name: django-simple-captcha
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps): Bump unstructured from 0.16.13 to 0.16.14

Bumps [unstructured](https://github.com/Unstructured-IO/unstructured) from 0.16.13 to 0.16.14.
- [Release notes](https://github.com/Unstructured-IO/unstructured/releases)
- [Changelog](https://github.com/Unstructured-IO/unstructured/blob/main/CHANGELOG.md)
- [Commits](Unstructured-IO/unstructured@0.16.13...0.16.14)

---
updated-dependencies:
- dependency-name: unstructured
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps): Bump selenium from 4.27.1 to 4.28.0

Bumps [selenium](https://github.com/SeleniumHQ/Selenium) from 4.27.1 to 4.28.0.
- [Release notes](https://github.com/SeleniumHQ/Selenium/releases)
- [Commits](https://github.com/SeleniumHQ/Selenium/commits/selenium-4.28.0)

---
updated-dependencies:
- dependency-name: selenium
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Merge conflicting migrations

* Delete website/migrations/0181_merge_20250121_1617.py

* Delete website/migrations/0179_alter_issue_label.py

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: DonnieBLT <[email protected]>
Co-authored-by: Altafur Rahman <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Krrish Sehgal <[email protected]>
Co-authored-by: Sahil Omkumar Dhillon <[email protected]>
Co-authored-by: Krishna Kaushal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants