-
Use Python 3.11
- You can use a docker container to get the correct version of python:
docker run -it --rm --volume .:/app --workdir /app --volume ~/.prefect:/root/.prefect python:3.11 bash
- You can use a docker container to get the correct version of python:
-
(Only for first time setup) Create a virtual environment:
python -m venv env
-
Enter your virtual environment:
source ./env/bin/activate
-
(Only for first time setup) Install dependencies
pip install -r requirements.txt
-
Ensure you have RolyPoly credentials
- Use the
/set-password
command in the #commands channel of the Sprocket Discord server if you need to set a password - Can check and reset your password using the
/test-login
and/update-password
commands respectively if you don't remember your password
- Use the
-
Configure Prefect to talk to Sprocket Prefect
prefect config set PREFECT_API_URL="https://[discord username]:[rolypoly password]@prefect.spr.ocket.dev/api"
- Note that if you have special characters in your password you will need to URL encode them
- For example, a
!
will become%21
- For example, a
-
Test connection with:
prefect deployment ls
- There should be at least one item here
-
Now you can test all runs with:
python ./src/flows/process-query-directory.py
- Check results of test run here: https://f004.backblazeb2.com/file/sprocket-artifacts/test/pages/index.html
-
Notifications
You must be signed in to change notification settings - Fork 2
SprocketBot/datasets
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published