<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introducing-asgard-a-thor-based-task-runner-v9o6aj980" -->

---
title: Introducing Asgard: a Thor-Based Task Runner | daily.dev
description: Asgard 0.4.0, a Ruby task runner built on Thor, defines tasks as methods in a .loki file with dependencies declared through a single depends_on line that can...
canonical: https://daily.dev/posts/introducing-asgard-a-thor-based-task-runner-v9o6aj980
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introducing Asgard: a Thor-Based Task Runner | daily.dev
og:description: Asgard 0.4.0, a Ruby task runner built on Thor, defines tasks as methods in a .loki file with dependencies declared through a single depends_on line that can...
og:url: https://daily.dev/posts/introducing-asgard-a-thor-based-task-runner-v9o6aj980
og:image: https://api.daily.dev/og/posts/v9O6aJ980.png
og:image:alt: Introducing Asgard: a Thor-Based Task Runner
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing Asgard: a Thor-Based Task Runner

**[Ruby Flow](https://daily.dev/sources/rubyflow)** · 12 min read · 2 upvotes · 0 comments

## Summary

Asgard 0.4.0, a Ruby task runner built on Thor, defines tasks as methods in a .loki file with dependencies declared through a single depends_on line that can mix serial and concurrent stages. New in 0.4.0 is a scheduling feature that runs tasks via launchd or systemd user timers, plus a fix for a bug where tasks always exited 0 regardless of returned status. The author explains the design rationale versus Rake and Make, shows shell helpers, multi-file task organization with import, and a --doctor diagnostic command.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://madbomber.github.io/blog/engineering/introducing-asgard>

## Questions this post answers

### What's new in Asgard 0.4.0 for Ruby task runners?

Asgard 0.4.0 adds scheduled tasks that run under the operating system's own scheduler (launchd on macOS, systemd user timers on Linux) declared directly in the .loki file with at:, on:, and every: keywords. The release also fixes a bug where asgard <task> always exited 0 even when the task returned :fail, so CI quality gates now report failure correctly.

_Ruby developers automating CI pipelines can track task runner updates like this one on daily.dev._

### How does Asgard let you mix serial and concurrent task dependencies in one line?

A single depends_on call takes an execution plan read left to right: a bare symbol is a serial stage, and an array is a stage whose members all run concurrently in separate threads, with the next stage starting only after every member finishes. Moving a step between serial and concurrent is just an edit to brackets, with no separate -j flag or parallel task type needed.

_Anyone weighing Rake, Make, or a new runner for concurrent builds can compare approaches on daily.dev._

### How do I run Ruby tasks on a schedule with launchd or systemd without writing plist or timer files by hand?

Asgard 0.4.0 lets you declare schedule :task_name, at: or every: entries directly in a .loki file, then run asgard schedule install to generate and load the underlying launchd (macOS) or systemd user timer (Linux) job files. Commands like asgard schedule list, stop, start, trigger, and log manage the installed entries, and Asgard runs no daemon of its own.

_Developers setting up scheduled jobs without hand-writing plist files can find setup details like these on daily.dev._

## Similar posts on daily.dev

- [your community gem host](https://daily.dev/posts/your-community-gem-host-sonrptrpc) · Ruby Flow · 0 upvotes · 0 comments
- [Adding custom Thor commands to your Rails app](https://daily.dev/posts/adding-custom-thor-commands-to-your-rails-app-pl1tdzbm6) · RUBYLAND · 0 upvotes · 0 comments
- [Run all tasks: the feature we refused to ship \(until now\)](https://daily.dev/posts/run-all-tasks-the-feature-we-refused-to-ship-until-now--telbxgpie) · Kiro · 1 upvotes · 0 comments
- [\[Dev Weekly \#113\] Claude 4.8 Rewrites Agent Systems](https://daily.dev/posts/dev-weekly-113-claude-4-8-rewrites-agent-systems-askxel3ur) · The Miners · 1 upvotes · 0 comments
- [Ractor-age Rails: A How-To Guide](https://daily.dev/posts/ractor-age-rails-a-how-to-guide-6bfi7ymxr) · GitHub · 0 upvotes · 0 comments

---

Tags: [#ruby](https://daily.dev/tags/ruby), [#cli](https://daily.dev/tags/cli)

[View this post on daily.dev](https://daily.dev/posts/introducing-asgard-a-thor-based-task-runner-v9o6aj980)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Introducing Asgard: a Thor-Based Task Runner","url":"https://daily.dev/posts/introducing-asgard-a-thor-based-task-runner-v9o6aj980","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introducing-asgard-a-thor-based-task-runner-v9o6aj980"},"datePublished":"2026-09-27T05:23:29.758Z","dateModified":"2026-09-27T05:23:56.624Z","description":"Asgard 0.4.0, a Ruby task runner built on Thor, defines tasks as methods in a .loki file with dependencies declared through a single depends_on line that can...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/31e3023be5f6174ae978f6dfa2cb012c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/31e3023be5f6174ae978f6dfa2cb012c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Ruby Flow","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ruby Flow","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a21aaa8bcbbf448193a016895c90a0e1","url":"https://daily.dev/sources/rubyflow"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/introducing-asgard-a-thor-based-task-runner-v9o6aj980","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ruby,cli","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ruby Flow","item":"https://daily.dev/sources/rubyflow"},{"@type":"ListItem","position":3,"name":"Introducing Asgard: a Thor-Based Task Runner"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/introducing-asgard-a-thor-based-task-runner-v9o6aj980#faq","mainEntity":[{"@type":"Question","name":"What's new in Asgard 0.4.0 for Ruby task runners?","acceptedAnswer":{"@type":"Answer","text":"Asgard 0.4.0 adds scheduled tasks that run under the operating system's own scheduler (launchd on macOS, systemd user timers on Linux) declared directly in the .loki file with at:, on:, and every: keywords. The release also fixes a bug where asgard \u003ctask\u003e always exited 0 even when the task returned :fail, so CI quality gates now report failure correctly. Ruby developers automating CI pipelines can track task runner updates like this one on daily.dev."}},{"@type":"Question","name":"How does Asgard let you mix serial and concurrent task dependencies in one line?","acceptedAnswer":{"@type":"Answer","text":"A single depends_on call takes an execution plan read left to right: a bare symbol is a serial stage, and an array is a stage whose members all run concurrently in separate threads, with the next stage starting only after every member finishes. Moving a step between serial and concurrent is just an edit to brackets, with no separate -j flag or parallel task type needed. Anyone weighing Rake, Make, or a new runner for concurrent builds can compare approaches on daily.dev."}},{"@type":"Question","name":"How do I run Ruby tasks on a schedule with launchd or systemd without writing plist or timer files by hand?","acceptedAnswer":{"@type":"Answer","text":"Asgard 0.4.0 lets you declare schedule :task_name, at: or every: entries directly in a .loki file, then run asgard schedule install to generate and load the underlying launchd (macOS) or systemd user timer (Linux) job files. Commands like asgard schedule list, stop, start, trigger, and log manage the installed entries, and Asgard runs no daemon of its own. Developers setting up scheduled jobs without hand-writing plist files can find setup details like these on daily.dev."}}]}
```

