Moral: to be productive, utilize all the tools you have, and don't waste your hours waiting for feedback from long-running tasks. Don't waste precious time. In the end, only the result is important, not the time spent!
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
And I achieve that with this little hack. Result is 100%, client is happy, my kid is picked up on time - he is happy (I hope so), my laptop can rest, it is happy too, I guess.
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
I wrote a simple script, scheduled the task, closed my laptop, and picked up my kid from training on time. That's why I'm in the cafรฉ now - waiting for him. But I don't want my limited time wasted. I want this time spent with 100% result.
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
So what do I do? I have an answer today - just run a scheduled task via Heroku scheduler (devcenter.heroku.com/articles/sch...). Schedule it once a day and remove the schedule in a few hours when the script is stopped. That's it!
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
I still had no idea how to run long-running processes without the risk of the connection dropping. I don't want to have these long-running processes on my laptop - I might want to close it, pack it into my backpack, and go home from this cafรฉ where I am writing this message.
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
While I learned from my mistakes in terms of keeping the processes and making the script idempotent (so that when I repeat it, the process continues from where it stops and does not perform the same actions twice).
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
Nevertheless, I followed this way and it worked. Thanks god the users didn't need to receive the emails thrice!
That's a story from several years ago.
Today, I faced the same task.
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
Well, naturally, we can split the job into several parts and run them one by one or in parallel. But still, having the scripts run via the Heroku console from a terminal is not an option, as the connection can drop on my side too.
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
But that's not so bad to bombard users with the same (very useful, though!) email. The main challenge was still there - how do I run this script properly on Heroku if the connection drops in 1 hour, but I have an operation that takes more time?
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
It turned out there were over 1 million users to whom I needed to send emails. So, in 1 hour, the connection dropped, and I had no idea where it stopped. Some users received emails, and some did not! Repeating the script again would send duplicate emails. What a fault!
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
Work in a coffee shop
My son training
Heroku run long-running command properly
What's the connection between Heroku, my son, a coffee shop, and productivity?
Once, I asked to send mass emails from Heroku via a script. How dare I connect to the console and run it there! First of all, I made a mistake in predicting the operation.
02.11.2025 08:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
I'm excited to share that my open-source projects have passed ๐๐บ ๐ฑ๐ผ๐๐ป๐น๐ผ๐ฎ๐ฑ๐! It's amazing to see how far they've reached and how they're helping others in the ๐ฅ๐๐ฏ๐ ๐ฐ๐ผ๐บ๐บ๐๐ป๐ถ๐๐. I'm really grateful to everyone who has ๐๐๐ฝ๐ฝ๐ผ๐ฟ๐๐ฒ๐ฑ, ๐ฐ๐ผ๐ป๐๐ฟ๐ถ๐ฏ๐๐๐ฒ๐ฑ, or ๐๐ต๐ฎ๐ฟ๐ฒ๐ฑ ๐ณ๐ฒ๐ฒ๐ฑ๐ฏ๐ฎ๐ฐ๐ธ along the way. rubygems.org/profiles/ka8...
20.10.2025 17:14 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
Need advice on Solid Queue's memory usage ยท Issue #330 ยท rails/solid_queue
Ruby: 3.3.4 Rails: 7.2.1 Solid Queue: 0.7.0, 0.8.2 I run a Rails App on AWS EC2 instance with 1G of memory. I notice the solid queue process takes up 15-20% of the instance's memory, which becomes ...
SolidQueue, the default ActiveJob's adapter in Rails, is very cool. But there is a catch - it needs 1Gb RAM to make all things out of the box working fine. That means it's not good for Heroku default Dynos. Surprise - github.com/rails/solid_...
#rails #solidqueue #activejob #heroku
10.10.2025 00:13 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
This simple and swift measure results in annual savings of $600!
07.10.2025 19:25 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
It's essential to remember to ๐ฒ๐น๐ถ๐บ๐ถ๐ป๐ฎ๐๐ฒ ๐ฎ๐ป๐ ๐ผ๐ฟ๐ฝ๐ต๐ฎ๐ป๐ฒ๐ฑ ๐ฟ๐ฒ๐๐ผ๐๐ฟ๐ฐ๐ฒ๐ in your Heroku applications to avoid unnecessary costs. By taking prompt action to remove the orphaned ๐ฃ๐ผ๐๐๐ด๐ฟ๐ฒ๐ฆ๐ค๐ add-on, as shown in the screenshot, expenses on hosting were reduced by $50 immediately, translating to a 15% savings.
07.10.2025 19:25 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
Unfortunately, the last step of removing the old add-on is often overlooked, leading to unnecessary expenses. While this oversight may not significantly impact established businesses, costing around $50 ๐ฝ๐ฒ๐ฟ ๐บ๐ผ๐ป๐๐ต, for startups without revenue, it can be a substantial burden.
07.10.2025 19:25 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
The process of upgrading the ๐ฃ๐ผ๐๐๐ด๐ฟ๐ฒ๐ฆ๐ค๐ add-on involves several steps:
1. Create a new add-on, replicating the data from the main one;
2. Promote the new add-on to the primary status;
3. Eliminate the old add-on;
4. Remove the old add-on from the application.
07.10.2025 19:25 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
One common expense arises from the need to periodically upgrade resources, such as the PostgreSQL add-on. Read further to see how to avoid unnecessary costs.
07.10.2025 19:25 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
Heroku price with orphan add-on
Heroku price without orphan add-on
๐ข๐ป๐ฒ ๐๐ถ๐บ๐ฝ๐น๐ฒ ๐๐ฎ๐ ๐๐ผ ๐ฐ๐๐ ๐ฐ๐ผ๐๐๐ ๐ผ๐ป #๐๐ฒ๐ฟ๐ผ๐ธ๐ ๐ถ๐ป๐๐๐ฎ๐ป๐๐น๐
Heroku, a popular hosting provider for many businesses, particularly startups and small enterprises, offers convenience, easy setup, and reliability. However, it can be ๐ฐ๐ผ๐๐๐น๐!
07.10.2025 19:25 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
๐ก Tอhอeอ อlอeอsอsอoอnอ: before blaming ๐ฅ๐๐ฏ๐ (or any language), check your ๐๐ first. Thatโs usually where the real performance story lives.
02.10.2025 20:25 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
๐ The app only ever needed the last 30 days.
Tอhอeอ อfอiอxอ:
๐ง Simply rotate (delete) obsolete data on schedule. Result: an ๐ฒ๐ฎ๐๐, ๐ฟ๐ฒ๐น๐ถ๐ฎ๐ฏ๐น๐ฒ, ๐บ๐ฎ๐ถ๐ป๐๐ฎ๐ถ๐ป๐ฎ๐ฏ๐น๐ฒ, ๐ฎ๐ป๐ฑ ๐๐๐๐๐ฎ๐ถ๐ป๐ฎ๐ฏ๐น๐ฒ solution โ and a ๐ฏ๐น๐ฎ๐๐ถ๐ป๐ด ๐ณ๐ฎ๐๐ app again.
02.10.2025 20:25 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
An app started running painfully slow. At first, everything was fine โ until millions of records piled up over time. The culprit? Automatic stats collection from a 3rd-party service, dumping endless data into the DB.
Tอhอeอ อcอaอtอcอhอ:อ ๐ 90% of this data was useless.
02.10.2025 20:25 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
Not slow Ruby demo.
๐ ๐ฅ๐๐ฏ๐ ๐ถ๐ ๐ป๐ผ๐ ๐๐น๐ผ๐.
Itโs all about ๐๐ค๐ฌ ๐ฎ๐ค๐ช ๐๐ค๐ค๐ ๐๐ฉ.
Many developers love to critique #ruby for being "๐ต๐ฐ๐ฐ ๐ด๐ญ๐ฐ๐ธ". But in most cases, the real bottleneck isnโt Ruby at allโit's the ๐๐. Hอeอrอeอโอsอ อaอ อrอeอaอlอ-อwอoอrอlอdอ อeอxอaอmอpอlอeอ ๐
02.10.2025 20:25 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
Unforgettable days of learning, connections, and high energy. ๐โจ
Forever grateful โ from the Heart of Code. โค๏ธ
#EuRuKo2025 #HeartOfCode
20.09.2025 22:25 โ ๐ 9 ๐ 4 ๐ฌ 0 ๐ 0
zapier-vs-self-made.md
GitHub Gist: instantly share code, notes, and snippets.
Zapier vs DIY for event processing: pros, cons & cost analysis โ gist.github.com/ka8725/242f4...
Do you agree with my scoring?
14.09.2025 19:33 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
Built a shiny new feature on OpenAIโs API. By the time we released, it was deprecated. JavaScript vibes.
10.09.2025 16:05 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
Life is choices: good or evil, comfort or suffering, solitude or community. This book shows the paths, which one you choose? ๐ฏ recommend it - The Glass Bead Game by Hermann Hesse
16.08.2025 12:12 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
Targeted sales pitch by AI.
#AI is transforming sales at a frightening speed. Iโve never seen messages this targeted and direct from past "lead generators". Should I trust them? Still doubtful.
14.08.2025 21:18 โ ๐ 1 ๐ 1 ๐ฌ 0 ๐ 0
On Aug 10, the N+1 issue was fixed.
With the N+1 we could not tame the RAM consumption.
The N+1 problem is not only about performance; it also impacts network traffic to the database, which can lead to unusual RAM usage.
Take care of your #rubyonrails app.
12.08.2025 17:42 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
On my way becoming software engineer ๐ป
Also the dude that brings nice things on ShortRuby Newsletter
A collection of posts of interest to Ruby and Rails developers.
Hand-picked, high signal, always on topic.
Maintained by @skillstopractice.com
Also available as a feed:
https://bsky.app/profile/did:plc:ip3trmvdbnlm4g7cdc5xs7ub/feed/aaaf5jle4pb7e
Full stack web developer professionally, hobbyist astronomer, musician, outdoorsman. I'm usually doing something with code.
(neo)vim, Ruby, *nix
Software developer. Creating and learning.
Sometimes I wrote https://a-chacon.com/blog
In the attempt to create an RSS reader app: https://chaski.a-chacon.com
Staff Full Stack Engineer ex-Calendly ex-homedepot, #KeepRubyWeird, #TDD ist, Disney World Fanatic, National Park Goer, Life long @Braves fan, #GamerDad to 4 awesome kids
Building Hologram, a full-stack Elixir web framework
https://hologram.page
Create and share social media content anywhere, consistently.
Built with ๐ by a global, remote team.
โฌ๏ธ Learn more about Buffer & Bluesky
https://buffer.com/bluesky
I'm an independent software developer living in France.
noteflakes.com
github.com/noteflakes
Full-Stack Web Developer โข OSS Contributor โข Electronic Music Addict โข Ruby/Rails, JavaScript/Stimulus, Crystal โข Hotwire Contributors Team โข StimulusReflex Core.
Website: marcoroth.dev
Building: rubyevents.org | rubyconferences.org | gem.sh | hotwire.io
The largest and longest running annual Ruby conference in Europe (since 2003). Community driven.
2025 edition will be held in Viana do Castelo, Portugal: https://2025.euruko.org
No longer here.
Find me on Mastodon instead:
https://mastodon.social/@skillstopractice
Or if you don't use Mastodon, you can follow my bridged account here on Bluesky:
@skillstopractice.mastodon.social.ap.brid.gy
Rails core, Ruby committer, funemployed.
Senior Ruby engineer, father, vegan. Creator of Shrine, rodauth-rails and vim-test.
Arkency | RailsEventStore | wroc_love.rb
Rails programmer since 2004
Chess player aspiring to become IM
coffee amateur
sf books lover
DDD, CQRS, Event Sourcing
Product Engineer, Ruby on Rails Developer
โฃ Curator of newsletter.shortruby.com
โฃ Helping #Ruby developers design better test cases at https://goodenoughtesting.com
Application monitoring that helps developers move fast and fix things. We're everything you need to keep production happy โ and nothing you don't.
๐ https://honeybadger.io
endorsed by jerry july 11, 2025
๐ช๐บ European #ruby developer. #emacs fan, #zed user.
#husband, #father, #musician, #exvangelist.
Love wins.
Maintainer of the Barley serializer gem
https://moskitohero.com
https://ruby.social/@MoskitoHero
CTO | Software Engineer | Rails Foundation Director | Rubyist | Ex-Sound Engineer | Runner | https://1500cals.com
https://mileswoodroffe.com