<p>In <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="321490578" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1852" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1852/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1852">#1852</a> we're looking at processing GPX files using the <a href="https://edgeguides.rubyonrails.org/active_job_basics.html" rel="nofollow">Active Job</a> framework, and there's many other places where it makes sense to start using job queues too (for example, sending multiple diary entry comment notifications) for tasks that could be run asynchronously.</p>
<p>ActiveJob comes with a simple built-in task runner, but that uses the current process and so isn't really production-grade. I've had good experiences with <a href="https://github.com/collectiveidea/delayed_job">Delayed Job</a>, which stores jobs in PostgreSQL. The alternative would be e.g. resque using redis for job persistence, but I don't think that's necessary since it's something else to run, and we're not exactly creating bazillions of jobs per second.</p>
<p>Since I'm fairly confident that we'll use Active Job for multiple topics, I think it's worth setting up the backend (migrations, configuration and deploying task runners in production) separately, to avoid having to combine all this stuff into a larger PR.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2015">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLXz43KxOqbQmP_vRzPVthM8dXZXWks5uhykzgaJpZM4XJ5A3">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLUNtlsayWZOVCV8ggmVDso6tES1gks5uhykzgaJpZM4XJ5A3.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Implement Delayed Job as an Active Job backend (#2015)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/2015"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2015",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2015",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Implement Delayed Job as an Active Job backend (#2015)",
"sections": [
{
"text": "",
"activityTitle": "**Andy Allan**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@gravitystorm",
"facts": [
{
"name": "Repository: ",
"value": "openstreetmap/openstreetmap-website"
},
{
"name": "Issue #: ",
"value": 2015
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 2015,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 2015\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/openstreetmap-website/issues/2015"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 388468791\n}"
}
],
"themeColor": "26292E"
}
]</script>