Skip to content
Snippets Groups Projects
Commit 953b21ad authored by Julian Rother's avatar Julian Rother
Browse files

Set domain in scheduler request context, fixes #361

parent 182fb778
Branches
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ def sched_func(delay, priority=0, firstdelay=None, args=[], kargs={}):
firstdelay = random.randint(1, 120)
def wrapper(func):
def sched_wrapper():
with app.test_request_context():
with app.test_request_context(base_url='https://video.fsmpi.rwth-aachen.de/'):
try:
if config.get('DEBUG', False):
print("Scheduler: started {} (frequency 1/{}s)".format(func.__name__, delay))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment