Skip to content
Snippets Groups Projects
Commit 13c51865 authored by kaiyou's avatar kaiyou
Browse files

Add some basic debug logging to tasks.loop

parent 7c6e628d
No related branches found
No related tags found
No related merge requests found
Pipeline #2056 passed
......@@ -23,6 +23,8 @@ def run_transitions():
trigger = profile.updated_at + datetime.timedelta(seconds=delay)
if profile.transition_step == models.Profile.INIT and trigger > datetime.datetime.now():
continue
print("Applying {}/{} to profile {}@{}".format(
profile.transition, profile.transition_step, profile.username, profile.service.name))
common.apply_transition(profile)
models.db.session.commit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment