Python Forum
scheduled job only runs once
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scheduled job only runs once
#3
(Aug-19-2019, 06:53 AM)fishhook Wrote:
Quote:why?
def job():
    import asdf_1 
All that you code do is importing module. Python's modules are imported only once per process.

would love to know the alternative... other than execfile of course...
Reply


Messages In This Thread
scheduled job only runs once - by Stan2292 - Aug-19-2019, 02:09 AM
RE: scheduled job only runs once - by fishhook - Aug-19-2019, 06:53 AM
RE: scheduled job only runs once - by Stan2292 - Aug-19-2019, 06:55 AM
RE: scheduled job only runs once - by buran - Aug-19-2019, 07:03 AM
RE: scheduled job only runs once - by fishhook - Aug-19-2019, 08:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to do 100 runs simulation based on the current codes? dududada 6 1,001 Sep-03-2023, 01:43 PM
Last Post: deanhystad
  Another program runs bho68 7 1,211 Nov-08-2022, 08:16 PM
Last Post: bho68
  Importing a function from another file runs the old lines also dedesssse 6 2,577 Jul-06-2021, 07:04 PM
Last Post: deanhystad
  How to create an Excel app that runs Python? felipe0216 3 2,285 May-31-2020, 01:19 AM
Last Post: ibutun
  Python Program Runs in Pycharm but not in Terminal Vbhardwaj2383 2 3,315 Apr-06-2020, 04:41 PM
Last Post: Vbhardwaj2383
  How to execute code WHILE a function runs t4keheart 4 2,705 Jan-27-2020, 01:47 PM
Last Post: t4keheart
  Scheduler runs but then fails marciokoko 2 4,116 Jan-19-2017, 12:02 AM
Last Post: marciokoko

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020