-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Execute LCSS job when have new molecule (#770)
* Execute LCSS job when have new molecule * Execute LCSS job when have new molecule create a job to get single lcss data refactor to use active record callback Co-authored-by: Danny Truong <[email protected]>
- Loading branch information
1 parent
87cf147
commit 6566850
Showing
3 changed files
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,3 +177,4 @@ vendor/cache/* | |
.devcontainer | ||
.docker-sync/ | ||
|
||
public/sprite.png |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
# Job to update molecule info for molecules with no LCSS | ||
# associated LCSS (molecule tag) is updated if cid found in PC db | ||
class PubchemSingleLcssJob < ApplicationJob | ||
queue_as :single_pubchem_lcss | ||
|
||
def perform(molecule) | ||
molecule.pubchem_lcss | ||
end | ||
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