Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F886127
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
Fri, Aug 8, 8:44 PM
Size
411 B
Mime Type
text/x-diff
Expires
Sun, Aug 10, 8:44 PM (23 h, 35 m)
Engine
blob
Format
Raw Data
Handle
246076
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