This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Errors on launching Python 3.8.6, 3.10.6 for the code from article | |
https://levelup.gitconnected.com/running-fastapi-and-celery-together-in-a-single-command-66afd9b15561 | |
(BackgroundTasks) [ray@ray-len BackgroundTasks]$ python run.py main:app --reload | |
Traceback (most recent call last): | |
File "/home/ray/.local/share/virtualenvs/BackgroundTasks-prfU8w7U/lib/python3.10/site-packages/kombu/transport/virtual/base.py", line 925, in create_channel | |
return self._avail_channels.pop() | |
IndexError: pop from empty list | |
During handling of the above exception, another exception occurred: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import subprocess | |
from datetime import date, timedelta | |
from os import path | |
from shutil import os | |
from time import sleep | |
import sys | |
import re | |
import zim_datetimetz as tz |