-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust queues to prioritize account syncs (#1682)
- Loading branch information
Showing
12 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class DestroyJob < ApplicationJob | ||
queue_as :default | ||
queue_as :latency_low | ||
|
||
def perform(model) | ||
model.destroy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class ImportJob < ApplicationJob | ||
queue_as :default | ||
queue_as :latency_medium | ||
|
||
def perform(import) | ||
import.publish | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class SyncJob < ApplicationJob | ||
queue_as :default | ||
queue_as :latency_medium | ||
|
||
def perform(sync) | ||
sync.perform | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class UserPurgeJob < ApplicationJob | ||
queue_as :default | ||
queue_as :latency_low | ||
|
||
def perform(user) | ||
user.purge | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
<%# locals: (series:) %> | ||
<% if series %> | ||
<% if series.has_current_day_value? %> | ||
<div | ||
id="netWorthChart" | ||
class="w-full flex-1 min-h-52" | ||
data-controller="time-series-chart" | ||
data-time-series-chart-data-value="<%= series.to_json %>"></div> | ||
<% elsif series.empty? %> | ||
<div class="w-full h-full flex items-center justify-center"> | ||
<p class="text-gray-500 text-sm">No data available for the selected period.</p> | ||
</div> | ||
<% else %> | ||
<div class="w-full h-full flex items-center justify-center"> | ||
<p class="text-gray-500">No data available for the selected period.</p> | ||
<p class="text-gray-500 text-sm animate-pulse">Calculating latest balance data...</p> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters