There is a way we can specify the retry in job as below
from azkaban import Job, Project
project = Project('azkaban_basic_flow', root=__file__)
project.properties['retries'] = '3' #line 3
project.properties['retry.backoff'] = '60000' #line 4
Say we have 10 projects - We need to hard code the lines 3 and 4 in all 10 projects. Is there any way we can enable the default retry mechanism, So that it can be inherited to all projects by default.
Global level properties should be defined in common.properties and that can be consumed through out the azkaban projects.(azkaban-version:3.1.0)
Steps to follow:
retries=3 retry.backoff=30000
${retries}
and${retry.backoff}
Reference documentation: azkaban documentation