0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

📚 Add some documentation comments to some tasks.

This commit is contained in:
Andrey Antukh 2020-11-19 17:28:32 +01:00 committed by Alonso Torres
parent f5967c3c0a
commit 6800adfaa4
2 changed files with 7 additions and 0 deletions

View file

@ -22,6 +22,9 @@
;; Task: Delete Executed Tasks
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; This tasks perform a cleanup of already executed tasks from the
;; database.
(s/def ::max-age ::dt/duration)
(s/def ::delete-completed-tasks
(s/keys :req-un [::max-age]))

View file

@ -22,6 +22,10 @@
;; Task: Remove Media
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Task responsible of explicit action of removing a media from file
;; system. Mainly used for profile photo change; when we really know
;; that the previous photo becomes unused.
(s/def ::path ::us/not-empty-string)
(s/def ::props
(s/keys :req-un [::path]))