Our two main mechanisms for background processing are cronjobs (managed with whenever) job queues, usually with Sidekiq Learn about cronjobs Read HowTo: Add Jobs To cron Under...

Understand how we manage cronjobs with whenever. Find a project that uses whenever. Find out what kinds of work is done in those cronjobs. Can you find...

You have the following HTML structure:

If you want to run Javascript code whenever someone clicks on a ...

..., you can do this in three different ways: function code(event...

...the game is to click on the currently visible mole as fast as possible. Whenever the user clicks within the arena, the moles are randomly hidden or shown.

makandra Curriculum

...we simply log into the production server's SQL console and alter tables there whenever we need a change? How do we need to work with migrations when we change...

...exercise, please don't use the :counter_cache option and do everything manually instead. Whenever you add a new column you need to take care of existing records. Add a...

...no separate build process in development. Instead the Rails server directly compiles the asset whenever it renders a javascript_tag, stylesheet_tag or image_tag. It still has issues on...

makandra Curriculum

...your mentor is both your code reviewer and your customer. Ping them in Slack whenever you think it's their turn in the process. For all further lessons, you should...

...RSS gem for the purpose of this card. Update it once a day (using whenever) Tip Consider the best place to put the new logic. Should it be an existing...

...not implement sending a welcome e-mail, send an e-mail now. In MovieDB, whenever someone creates a movie, send a notification to moviedb-admin@example.com. Can you attach the movie's...

makandra Curriculum

...Exception Notification We are using the exception_notification gem to receive an e-mail whenever one of our apps raises an unhandled exception. Look through the repo and understand how...

...with a text/plain content type. Write a Middleware that prints OUCH to the screen whenever the Rails application raises an unhandled error...

Best results in other decks

Whenever is a Ruby gem that provides a nicer syntax for writing and deploying cron jobs. Leading zeros are important for whenever if you use the 24-hours format!

Due to network or hardware failures, it can happen that one of your cronjobs will not run at the time...

Search in all decks