0

I'm using Python 3 & Anaconda, running on AWS

I have a function, let's call it my_task, which I want to run every day at 11am and 11pm.

def my_task():
    print("Hey, task is running!");

How can I do this?

I've tried this and this but neither of them is for Anaconda.

Community
  • 1
  • 1
pookie
  • 3,796
  • 6
  • 49
  • 105

1 Answers1

1

The apscheduler package discussed in the answer you linked to here isn't, as you noted, in the main anaconda distribution but it is in the following conda channel. This means that you can install it via conda install -c conda-forge apscheduler=3.3.1 and use it. I'd try installing with that and then following the procedures discussed in that other question/answer.

Community
  • 1
  • 1
Paul
  • 5,473
  • 1
  • 30
  • 37
  • Thank you, Paul. `conda install -c conda-forge apscheduler=3.3.1` is indeed the correct answer. – pookie Feb 15 '17 at 09:57