Skip to content

How to run a task which may need more time than the SSH time out? #32

Description

@don2ccc

Hello Sir @href

Like say, I have below task defined, you can see there has "async" added.
this is because the ".run.sh" will takes very long time, usually about 3 minutes, it is for start our app server. after added async option, it works good from cli.

How can I do the same with Suitable API? could you advise me?

- name: APP START
      shell: ./run.sh
      async: 1000
      poll: 0
      register: start_process
      args:
        chdir: /path/to/some/where/
      notify:
      - check_status

Thanks a lot!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions