Acme-CPANModulesBundle-Import-PerlDancerAdvent-2018

 view release on metacpan or  search on metacpan

devdata/http_advent.perldancer.org_2018_13  view on Meta::CPAN

    </ul>
</li>
</ul>
</div>


<div id="content">
<div class="pod-document"><h1><a name="the_twelve_days_of_dancer"></a>The Twelve Days of Dancer</h1>

<p>Hello and goodbye, 2018! It seems like we hardly knew you. It's been a few 
years since our last calendar, and while everyone here is busy with other 
projects, we still wanted to give you a mini-advent-calendar this year. 
Welcome to the Twelve Days of Dancer!</p>
<p>This year's calendar features twelve posts that cover a wide range of topics.
We feature several new authors, cover some new ground (for us!) with an
article on accessibility, and even have a crossover post showing how Dancer
can be used with other frameworks.</p>
<p>Without further ado, let's dance!</p>
<h2><a name="state_of_the_dancer"></a>State of the Dancer</h2>

<p>In 2017 and 2018, we saw fewer but more significant updates to Dancer and 

devdata/http_advent.perldancer.org_2018_16  view on Meta::CPAN

            "$title: Created child process $pid for job $id by parent $$ - $guid");
    });
        
    $job-&gt;on( failed =&gt; sub( $job, $error ) {
        chomp $error;
        $logger-&gt;error( $error );
    });
});</pre>

<p>To help us for future capacity planning, we want our workers to tell us if they are running at peak capacity, so log when this event occurs:</p>
<pre class="prettyprint">$worker-&gt;on( busy =&gt; sub( $worker ) {
    my $max = $worker-&gt;status-&gt;{ jobs };
    $logger-&gt;log( "$0: Running at capacity (performing $max jobs)." );
});</pre>

<p>Now, we apply the configuration (read below) to the worker. When the worker starts, it tells us information about how it was configured (this was really useful during development):</p>
<pre class="prettyprint">my $max_jobs = $hostconfig-&gt;{ max_children };
my @queues   = @{ $hostconfig-&gt;{ queues }};

if( $minion-&gt;has_invalid_queues( @queues ) ){
    print "Invalid job queues specified: " . join( ',', 

devdata/http_advent.perldancer.org_2018_24  view on Meta::CPAN

        <li><a class="feed" href="/feed/2018">RSS</a></li>
    </ul>
</li>
</ul>
</div>


<div id="content">
<div class="pod-document"><h1><a name="what_s_next_for_dancer__looking_into_the_future_"></a>What's next for Dancer? (looking into the future)</h1>

<p>It's been a busy year, and we got a lot to be happy about. But there is always more work to
be done, and always more improvements to be made.</p>
<p>This list is by no means exhaustive, but it should give you a little glimpse for some of the 
things we have in store for 2019:</p>
<ul>
<li><a name="item_New_Documentation"></a><b>New Documentation</b>
<p>You asked for it, and I made reference to it on day 1, all new documentation is coming in
2019. While many of you love the docs, a lot of you don't, and thanks to your comments in last
year's survey, we think we have a good understanding of why.</p>
<p>The new documentation branch is well underway, and addresses the shortcomings of the existing 
documentation by explaining important concepts in a clear and simple way. You'll have a better



( run in 0.254 second using v1.01-cache-2.11-cpan-87723dcf8b7 )