omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    How long will a pythonista script run for before shutting down?

    Pythonista
    3
    4
    3562
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dormane
      Dormane last edited by

      I'm new to both python and pythonista and I'm wondering how long a script will run before it shuts down? Will a script shut down even when actively being used or only when run in the background.

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        http://omz-forums.appspot.com/pythonista/post/5998059267817472
        A script runs until the end, if pythonista is in the foreground.
        It will pause when the device sleeps, but you can turn that off:

        console.set_idle_timer_disabled(flag)
        Disable or enable the idle timer (which puts the device to sleep after a certain period of inactivity).
        

        In the background, you get 10 minutes.

        1 Reply Last reply Reply Quote 0
        • Dormane
          Dormane last edited by

          Thanks!

          1 Reply Last reply Reply Quote 0
          • ccc
            ccc last edited by

            You could also try NoDoze: http://omz-forums.appspot.com/pythonista/post/5988988296888320

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors