xuganyu96 commented on issue #31818:
URL: https://github.com/apache/airflow/issues/31818#issuecomment-1585413616

   Some notes to myself about the specification of the new feature.
   
   `--retry` is a optional argument that accepts a non-negative integer that 
indicates the number of times the database check will be performed AFTER the 
initial failure (meaning that with `--retry 0` database check will be performed 
once). The default value is to retry 0 times.
   
   `--retry-delay` is an optional argument that accepts a positive integer as 
the number of seconds between each retry. The minimum value is 1 second.
   
   At each database check failure, the command should print a message to STDOUT 
(borrowed from `curl`):
   
   > Will retry in X seconds. Y retries left.
   
   At the final database check failure, no additional message will be printed, 
and the program should exit with a non-zero exit code.
   
   _some addition notes for implementation_:
   
   - Use `type=positive_int(allow_zero=False)` for specifying integer argument


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to