You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
🏠
Working from home
Jean-Pierre Pommet
jppommet
🏠
Working from home
Past Entrepreneur. Alumni Mojiva, TapCommerce, Twitter, Swipe Labs, Shopify. Currently PSE @ Atlas
How to delete Sidekiq jobs in a Rails app using ActiveJobs
How to delete Sidekiq jobs in a Rails app using ActiveJobs
Sidekiq jobs can be enqueued or scheduled. Enqueued means that they are gonna be picked up as soon as possible,
scheduled jobs will be enqueued at some specific time.
job_id and jid
When using ActiveJobs, Rails will return a job_id after sending the job to ActiveJobs
Concurrently execute a lambda function for warming purposes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It seems that it does not matter what timezone is on the server as long as you have the time set right for the current timezone, know the timezone of the datetime columns that you store, and are aware of the issues with daylight savings time.
On the other hand if you have control of the timezones of the servers you work with then you can have everything set to UTC internally and never worry about timezones and DST.
Here are some notes I collected of how to work with timezones as a form of cheatsheet for myself and others which might influence what timezone the person will choose for his/her server and how he/she will store date and time.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters