It should be possible to deploy a REANA system easily for the use case of no limits, no quota calculations. This means to introduce a new easy-to-modify helm value that could alter quota usage calculation policy, e.g. do it after every workflow run (i.e. current behaviour), e.g. do it nightly (i.e. via crontab-like updater, as we do now; but not as part of termination tasks, which is not scalable); e.g. don't do it at all (i.e. completely turned off, for the fastest termination tasks, as in the wild patch above). Note that various policies might also affect how quota usage is being displayed (or not) in the web UI, for the sake of consistency.
Current behaviour
When somebody installs 0.8.0-alpha.4, by default the quota system is not imposing any limits on users:
However, when a user runs a few workflows, the quota consumption is being calculated:
This causes troubles with workflow runtime pod termination, see https://github.com/reanahub/reana-db/issues/149.
As an administrator, if you would like to deploy a system that does not care about quotas, you currently cannot without wild patches such as https://github.com/reanahub/reana-db/pull/150#discussion_r733896652
Expected behaviour
It should be possible to deploy a REANA system easily for the use case of no limits, no quota calculations. This means to introduce a new easy-to-modify helm value that could alter quota usage calculation policy, e.g. do it after every workflow run (i.e. current behaviour), e.g. do it nightly (i.e. via crontab-like updater, as we do now; but not as part of termination tasks, which is not scalable); e.g. don't do it at all (i.e. completely turned off, for the fastest termination tasks, as in the wild patch above). Note that various policies might also affect how quota usage is being displayed (or not) in the web UI, for the sake of consistency.
See also https://github.com/reanahub/reana-db/issues/149