Skip to content

Add celery task logic#58

Merged
wpak-ai merged 3 commits into
cppalliance:developfrom
snowfox1003:dev-48
Feb 17, 2026
Merged

Add celery task logic#58
wpak-ai merged 3 commits into
cppalliance:developfrom
snowfox1003:dev-48

Conversation

@snowfox1003
Copy link
Copy Markdown
Collaborator

  • Add Celery task logic. run_all_collector will run at 1 a.m PST.
  • Add Celery section in README.md file

@snowfox1003 snowfox1003 self-assigned this Feb 13, 2026
Comment thread config/settings.py Outdated
Comment thread workflow/tasks.py Outdated
@snowfox1003 snowfox1003 requested a review from wpak-ai February 16, 2026 17:46
Comment thread README.md
Comment on lines +62 to +72
## Celery

The daily workflow runs as a Celery task (see [docs/Celery_test.md](docs/Celery_test.md)). You need **Redis** running (default: `localhost:6379`). Start the worker and (optionally) Beat in separate terminals:

```bash
# Worker (executes tasks)
celery -A config worker -l info

# Beat (schedules the daily task at 1:00 AM Pacific)
celery -A config beat -l info
```
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we doing this on the deployed server?
If you close/lose SSH connections to the remote server, then both the celery task and the celery beat will be killed immediately.
A better alternative is to use systemd services on Linux and a supervisor (process control system) that monitors, logs, and diagnose any issues persistently.

@wpak-ai wpak-ai merged commit 389d06b into cppalliance:develop Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants