New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename command-line option --expiration-date #4931
Comments
Some thoughts:
|
The command line option `--expiration-date` is missleading. The option defines a duration in hours, where as the name indicates a date.
An interesting remark, but I think would rather have the CLI use seconds as a default and be able to process suffixes like |
I like the idea of doing it consistent and having more than just seconds. However, just defining our own norm could also be annoying for users. We should create an extra issue for that. I'll go with seconds now. |
This feature is rarely used and probably unknown to most; I don’t regard changing the unit (as long as it’s accompanied by changing the option name) as a concern. |
The command line option `--expiration-date` is missleading. The option defines a duration in hours, where as the name indicates a date.
The command line option `--expiration-date` is missleading. The option defines a duration in hours, where as the name indicates a date.
…_line_option___expiration_date Client: Rename command-line option --expiration-date Fix #4931
Given that item 5 remains to be discussed and implemented, I would suggest reopening the issue. |
@dchristidis or @joeldierkes please create a ticket for this separately. That range should be implemented on server side. |
As referenced in rucio#4931 the CLI option `--duration` of `rucio-admin replicas declare-temporary-unavailable` should rather have an allowed time-range than accepting every number. This avoids the mistake of submitting time-ranges that are too big (e.g. > 1000y).
As referenced in rucio#4931 the CLI option `--duration` of `rucio-admin replicas declare-temporary-unavailable` should rather have an allowed time-range than accepting every number. This avoids the mistake of submitting time-ranges that are too big (e.g. > 1000y).
As referenced in rucio#4931 the CLI option `--duration` of `rucio-admin replicas declare-temporary-unavailable` should rather have an allowed time-range than accepting every number. This avoids the mistake of submitting time-ranges that are too big (e.g. > 1000y).
As referenced in rucio#4931 the CLI option `--duration` of `rucio-admin replicas declare-temporary-unavailable` should rather have an allowed time-range than accepting every number. This avoids the mistake of submitting time-ranges that are too big (e.g. > 1000y).
As referenced in rucio#4931 the CLI option `--duration` of `rucio-admin replicas declare-temporary-unavailable` should rather have an allowed time-range than accepting every number. This avoids the mistake of submitting time-ranges that are too big (e.g. > 1000y).
Motivation
From the documentation of
rucio-admin replicas declare-temporary-unavailable
:This option name is misleading as the argument is not in date format. This has lead to some case were people tried something like
--expiration-date 20210720
, which works, but the expiration date set in Rucio is in year 4327.I think it’s preferable to maintain a relative timeout (like with rule lifetime) rather than enforcing some date format.
Modification
--expiration-timeout
or--duration
and deprecate the current one, with the intention of removing it entirely in the next major Rucio release.update-rule --lifetime
.0
should be allowed as an exception and would mean ‘revert the previous declaration’. This might have to be implemented server-side too (if so, a different issue is needed).The text was updated successfully, but these errors were encountered: