summaryrefslogtreecommitdiff
path: root/examples/separate_worker/example_tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/separate_worker/example_tasks.py')
-rw-r--r--examples/separate_worker/example_tasks.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/separate_worker/example_tasks.py b/examples/separate_worker/example_tasks.py
new file mode 100644
index 0000000..568b77c
--- /dev/null
+++ b/examples/separate_worker/example_tasks.py
@@ -0,0 +1,12 @@
+"""
+This module contains just the code for the scheduled task.
+It should not be run directly.
+"""
+
+from __future__ import annotations
+
+from datetime import datetime
+
+
+def tick():
+ print("Hello, the time is", datetime.now())