Skip to content

periodic downloader with error channel added#16

Merged
KDwevedi merged 2 commits into
CodeForGoodTech:developmentfrom
starks-and-wolves:periodic-task-to-download-discord-msgs
Jul 5, 2023
Merged

periodic downloader with error channel added#16
KDwevedi merged 2 commits into
CodeForGoodTech:developmentfrom
starks-and-wolves:periodic-task-to-download-discord-msgs

Conversation

@starks-and-wolves

@starks-and-wolves starks-and-wolves commented Jun 28, 2023

Copy link
Copy Markdown
Contributor

fixes #6
We store all the messages downloaded in the "unstructured discord data" along with the message-id
The latest message has the greatest message-id value.
We query for the largest message-id for a particular channel and fetch new messages after that message-id, saving us from reading the entire history of each channel.
The download discord messages job is a recurring job running every 10 hours as of now. The duration can be configured through the config.json file.
We also have an alerts/error channel notification channel where all the errors/exceptions encountered during the downloading are sent.

@KDwevedi

Copy link
Copy Markdown
Contributor

Hey!
This seems good
Can we have commands to start/stop this task, instead of the task beginning at bot startup?

@starks-and-wolves

Copy link
Copy Markdown
Contributor Author

Hey! This seems good. Can we have commands to start/stop this task instead of the task beginning at bot startup?

Yeah, sure, will add the start and stop commands for controlling the job

@KDwevedi KDwevedi linked an issue Jun 29, 2023 that may be closed by this pull request
2 tasks
@starks-and-wolves

Copy link
Copy Markdown
Contributor Author

Hey @KDwevedi I have committed the said changes, please review. Thanks

@KDwevedi KDwevedi merged commit 86f87dd into CodeForGoodTech:development Jul 5, 2023
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.

Create a periodic task for collecting messages from discord server.

3 participants