Commit 4b790c0b authored by Jose Borreguero's avatar Jose Borreguero
Browse files

modify mock task

Signed-off-by: default avatarJose Borreguero <>
parent 8ba917b2
Pipeline #201373 passed with stages
in 5 minutes and 47 seconds
......@@ -21,6 +21,9 @@ from .models import Job, Log, Result
from .wrapper.local import LocalWrapper
from .wrapper.remote import RemoteWrapper
# standard imports
from datetime import datetime
logger = get_task_logger(__name__)
......@@ -449,5 +452,8 @@ def delete_key_from_server(
def clean_expired_sessions():
r"""Print a silly message"""
print("DEBUG: clean_expired_sessions") # print to celery's log file /var/log/celery.log
open("/tmp/clean_expired_sessions.log", "a").write("DEBUG: clean_expired_sessions\n")
current_time ="%H:%M:%S")
f"DEBUG: Task clean_expired_sessions executed at {current_time}"
) # print to celery's log file /var/log/celery.log
return None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment