Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Upvs::Drafts::ParseImportJob low priority #561

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/upvs/message_drafts_imports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def create
box: @box
)

Upvs::Drafts::ParseImportJob.perform_later(import, author: Current.user)
Upvs::Drafts::ParseImportJob.set(job_context: :later).perform_later(import, author: Current.user)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nie su uplne presvedceny ze toto chceme. Import je cez GUI a clovek ocakava, ze sa to tam objavi, kedze je to import tak default a nie asap ale later mi pride moc nie?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Podla mna nie, lebo ak ides toto robit (das si tu namahu vyrobit ZIP so vsetkymi poziadavkami naokolo), tak to nerobis pre par podani.
Ale uznavam, ze bezne mame vsetky hromadne akcie, ktore vyvolas cez GUI s default prioritou. No toto je podla mna speci pripad, kedy vieme, ze to bude velka vec.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ono to jednorazové aj tak zavoláš z konzoly a tam si zavolaj prioritu akú treba či?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ked to robis jednorazovo, nejako bokom, tak ano. Ale ak to nahravas riadne cez GUI, tak nie, lebo rovno controller urci prioritu pri nahravani ZIPu.
Ale na dnesne pouzitie toto nepotrebujem, robim to bokom.

Copy link
Member

@jsuchal jsuchal Mar 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Máme to niekde hlásené? Lebo pokým nevidíme problém tak asi nechytajme.


redirect_to message_threads_path(q: "label:(#{Current.tenant.draft_tag.name})")
end
Expand Down