cel_client.py 436 B

1234567891011121314151617181920
  1. from celery import Celery
  2. import redis
  3. from cel_seo_click import selenium_jared_click
  4. from celery.schedules import crontab
  5. app.conf.beat_schedule = {
  6. # Executes every Monday morning at 7:30 a.m.
  7. 'add-every-monday-morning': {
  8. 'task': 'tasks.add',
  9. 'schedule': crontab(hour=7, minute=30, day_of_week=1),
  10. 'args': (16, 16),
  11. },
  12. }
  13. r=selenium_jared_click.delay()
  14. print('done')
  15. #rtxt=r.get()
  16. #print(rtxt)