Skip to content

Commit b1e6a51

Browse files
committed
Forgot to include tasks
1 parent 9649e71 commit b1e6a51

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test_app/tasks.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import time
2+
3+
from ansible_base.task.publish import task
4+
5+
6+
@task()
7+
def hello_world():
8+
print('hello world')
9+
10+
11+
@task()
12+
def sleep(seconds=2):
13+
print(f'about to sleep for {seconds} seconds')
14+
time.sleep(seconds)
15+
print(f'finished sleeping for {seconds} seconds')

0 commit comments

Comments
 (0)