title: How do I run a function once a day when other functions run with fixed interval multiple times a day
body: <p>I have a constantly running code using <a href="https://pypi.org/project/schedule/" rel="nofollow noreferrer">schedule</a>, and there is a place in the code that needs to run once a day.</p>
  <h3>Code</h3>
  <p>The code is defined as a nested function.</p>
  <p>Small presentation about code:</p>
  <pre><code>
  def main():
      ...
      ...
      ...
      def errorTable():
              ...
              ...
      file_read.close()
  
  while True:
      try:
          schedule.run_pending()
          schedule.every(1).seconds.do(main)
      except:
       time.sleep(1)  
  
  </code></pre>
  <p>The <code>main</code> function performs an operation approximately every 2 minutes. However, I want the <code>errorTable</code> function in it to run only once a day.</p>
  <h3>Issue</h3>
  <p>Since the code has a certain processing time, I cannot run it according to datetime. Because time can be missed. When I give a range, the code can run more than once.</p>
  <p>Other than all that, is there a way I can run the code once a day?</p>