Retries
# modules/example_task.py
import prism.task
class ExampleTask(prism.task.PrismTask):
RETRIES = 1
RETRY_DELAY_SECONDS = 60
def run(self, tasks, hooks):
test_str = "Hello, world!"
return test_str# modules/example_task.py
from prism.decorators import task
@task(
retries=1,
retry_delay_seconds=60
)
def example_task(tasks, hooks):
test_str = "Hello, world!"
return test_strLast updated