Skip to content
GitLab
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • Baserow
  • baserowbaserow
  • Issues
  • #1499

HOURS_UNTIL_TRASH_PERMANENTLY_DELETED environment variable is not converted to int

Describe the problem

If you set the HOURS_UNTIL_TRASH_PERMANENTLY_DELETED, the mark_old_trash_for_permanent_deletion task fails. Related to: https://community.baserow.io/t/int-or-str-hours-until-trash-permanently-deleted/2086/5.

Steps to reproduce

Set the HOURS_UNTIL_TRASH_PERMANENTLY_DELETED environment variable to anything.

Actual result

It results into a TypeError: unsupported type for timedelta hours component: str error.

Expected result

It shouldn't fail.

Edited Jan 15, 2023 by Bram Wiepjes
Assignee
Assign to
Time tracking