summary refs log tree commit diff
path: root/configs/aurora/smf1-test-cron-job.aurora
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2018-09-18 11:27:09 -0700
committerFranck Cuny <fcuny@twitter.com>2018-09-18 11:27:09 -0700
commita4872e963489f5db2474f1d1350a44c970a873d3 (patch)
tree7b343c0f6f6dd084d9d3913abe8fe7a1594c185e /configs/aurora/smf1-test-cron-job.aurora
parent[emacs] Adding a few modes back (diff)
downloademacs.d-a4872e963489f5db2474f1d1350a44c970a873d3.tar.gz
[configs] add some aurora configs.
Diffstat (limited to 'configs/aurora/smf1-test-cron-job.aurora')
-rw-r--r--configs/aurora/smf1-test-cron-job.aurora17
1 files changed, 17 insertions, 0 deletions
diff --git a/configs/aurora/smf1-test-cron-job.aurora b/configs/aurora/smf1-test-cron-job.aurora
new file mode 100644
index 0000000..3ade1b4
--- /dev/null
+++ b/configs/aurora/smf1-test-cron-job.aurora
@@ -0,0 +1,17 @@
+# A cron job that runs every 5 minutes.
+jobs = [
+  Job(
+    cluster = 'smf1-test',
+    role = 'fcuny',
+    environment = 'test',
+    name = 'cron_hello_world-trashing',
+    cron_schedule = '*/5 * * * *',
+    constraints = {
+        'host': 'smf1-fki-17-sr1',
+    },
+    instances=10,
+    task = SimpleTask(
+      'cron_hello_world',
+      'echo "Hello world from cron, the time is now $(date --rfc-822)"'),
+  ),
+]