#whenever — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #whenever, aggregated by home.social.
-
One common problem when working with background tasks in Rails is ensuring that the task queue itself is configured and functioning correctly.
For this purpose, I always create a test job that simply writes a test message to the log:
```
class CheckJob < ApplicationJob
queue_as :defaultdef perform
logger = Logger.new(Rails.root.join('log', 'check.log'), level: :info)
logger.info('OK')
end
end
```#Ruby #Rails #ApplicationJob #Job #Task #Background #Cron #Whenever #Check
-
whenever ⏰ Modern #datetime library for #Python
- https://github.com/ariebovenberg/whenever/tree/0.8.0
- https://whenever.readthedocs.io/en/latest/
- https://dev.arie.bovenberg.net/blog/python-datetime-pitfalls/A big release with several improvements and breaking changes that lay the groundwork for the eventual 1.0 release.
-
🚀 Oh look, another #datetime library for Python! Because clearly, what we need is more ways to poorly handle daylight saving time. 🙄 Time is an illusion, but coding with 'Whenever' is a bad joke. 😜
https://github.com/ariebovenberg/whenever #Python #libraries #daylightSaving #codingHumor #Whenever #HackerNews #ngated -
Whenever – typed and DST-safe datetimes for Python
https://github.com/ariebovenberg/whenever
#HackerNews #Whenever #Python #DST-safe #datetimes #datetime #PythonDev
-
Running "Hello World!" in 10 FORBIDDEN Programming Languages
https://www.youtube.com/watch?v=Ysled8GvKuk
#Esolang #Programming #SoftwareDevelopment #Whenever #ArnoldC #Chef #Whitespace #Chicken #Befunge #Piet #Intercal #Brainfuck #Malbolge