Skip to content

Instantly share code, notes, and snippets.

View globalxolutions's full-sized avatar

Ariel De La Rosa globalxolutions

View GitHub Profile
@globalxolutions
globalxolutions / gist:19f7f19490de2885b394ea1991045c70
Created November 11, 2021 23:33 — forked from ncherro/gist:0c185b77348908dd02d1
S3 bucket policy for asset sync
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:ListAllMyBuckets"],
"Resource": "arn:aws:s3:::*"
},
{
"Effect": "Allow",
# Tested on DelayedJob 2.1
class MyRecurringDelayedJob
def perform
# ...some slow code
end
def success(job)
MyRecurringDelayedJob.schedule_job(job)
end