Skip to content

Commit 80f5690

Browse files
sfreeman422CopilotCopilot
authored
Refactored jobs to use bash instead of python for portability (#186)
* Refactored jobs to use bash instead of python for portability * Update packages/jobs/pricing-job/script.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix bash job scripts: require_command checks, curl temp file leak, batched MySQL inserts (#187) * Initial plan * Fix code review feedback: require_command checks, temp file cleanup, batch MySQL inserts Co-authored-by: sfreeman422 <16405652+sfreeman422@users.noreply.github.com> Agent-Logs-Url: https://github.com/dev-chat/mocker/sessions/1c571688-b133-4945-9edc-a6d11e23df1d --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sfreeman422 <16405652+sfreeman422@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: sfreeman422 <16405652+sfreeman422@users.noreply.github.com>
1 parent 377dba9 commit 80f5690

13 files changed

Lines changed: 657 additions & 826 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ Each of the slash commands should have `Escape Channels, users and links sent to
9090

9191
3. `npm run start` (starts the backend server)
9292

93+
### Scheduled Jobs
94+
95+
The scripts in `packages/jobs` are standalone bash jobs intended for cron-style execution. They no longer require Python or Pipenv.
96+
97+
- `packages/jobs/health-job/script.sh` requires `bash` and `curl`
98+
- `packages/jobs/fun-fact-job/script.sh` requires `bash`, `curl`, `jq`, and `mysql`
99+
- `packages/jobs/pricing-job/script.sh` requires `bash`, `mysql`, and `awk`
100+
93101
### Available Scripts
94102

95103
From the root directory, you can run:

packages/jobs/fun-fact-job/Pipfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/jobs/fun-fact-job/Pipfile.lock

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)