Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F460990
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 17, 10:24 PM
Size
411 B
Mime Type
text/x-diff
Expires
Mon, May 19, 10:24 PM (7 h, 32 m)
Engine
blob
Format
Raw Data
Handle
220032
Attached To
rWEBDNS WebDNS (edet4)
View Options
diff --git a/lib/tasks/cleanup.rake b/lib/tasks/cleanup.rake
new file mode 100644
index 0000000..e38794a
--- /dev/null
+++ b/lib/tasks/cleanup.rake
@@ -0,0 +1,12 @@
+namespace :cleanup do
+ desc "Cleanup completed jobs"
+ task :jobs => :environment do
+ Job.completed.destroy_all
+ end
+
+ # add new jobs here too
+ task :all => [:jobs]
+end
+
+desc "Cleanup everything"
+task :cleanup => 'cleanup:all'
Event Timeline
Log In to Comment