jared 10 months ago
parent
commit
085119cd4d
1 changed files with 20 additions and 0 deletions
  1. 20 0
      deployment/cel_client.py

+ 20 - 0
deployment/cel_client.py

@@ -0,0 +1,20 @@
+from celery import Celery
+import redis
+from cel_seo_click import selenium_jared_click
+
+from celery.schedules import crontab
+
+app.conf.beat_schedule = {
+    # Executes every Monday morning at 7:30 a.m.
+    'add-every-monday-morning': {
+        'task': 'tasks.add',
+        'schedule': crontab(hour=7, minute=30, day_of_week=1),
+        'args': (16, 16),
+    },
+}
+
+r=selenium_jared_click.delay()
+print('done')
+#rtxt=r.get()
+#print(rtxt)
+