Skip to content

Commit

Permalink
Merge pull request #1250 from mlibrary/DEEPBLUE-82-email-results-from…
Browse files Browse the repository at this point in the history
…-append-to-work-4

Deepblue 82 email results from append to work 4
  • Loading branch information
fritzfreiheit authored Jun 23, 2022
2 parents 807d27d + 4e06b58 commit b492554
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/jobs/doi_minting_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def perform( id,
"" ] if debug_verbose
initialize_no_args_hash( debug_verbose: debug_verbose )
job_status.main_cc_id = id
job_status.save!
if 0 < job_delay
return unless ::PersistHelper.find( id ).doi_pending?
::Deepblue::LoggingHelper.bold_debug [ ::Deepblue::LoggingHelper.here,
Expand Down
1 change: 1 addition & 0 deletions app/jobs/ensure_doi_minted_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def perform( id, *args )
log( event: EVENT, hostname_allowed: hostname_allowed )
return job_finished unless hostname_allowed
job_status.main_cc_id = id
job_status.save!
::Deepblue::DoiMintingService.ensure_doi_minted( id: id,
msg_handler: msg_handler,
task: task,
Expand Down
1 change: 1 addition & 0 deletions app/jobs/export_documentation_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def perform( id: ::Deepblue::WorkViewContentService.content_documentation_collec
user_email: nil )
initialize_with( debug_verbose: export_documentation_job_debug_verbose )
job_status.main_cc_id = id
job_status.save!
@from_dashboard = user_email
# initialize_options_from( *args, debug_verbose: export_documentation_job_debug_verbose )
# export_path = job_options_value( options, key: 'export_path', default_value: nil )
Expand Down
1 change: 1 addition & 0 deletions app/jobs/ingest_script_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def perform( ingest_mode:, ingester:, path_to_script:, id: nil, **options )
msg_handler.debug_verbose = ingest_script_job_debug_verbose
initialize_with( debug_verbose: debug_verbose, options: options )
job_status.main_cc_id = id if id.present?
job_status.save! if id.present?
email_targets << ingester if ingester.present?
::Deepblue::LoggingHelper.bold_debug [ ::Deepblue::LoggingHelper.here,
::Deepblue::LoggingHelper.called_from,
Expand Down
1 change: 1 addition & 0 deletions app/jobs/work_find_and_fix_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def perform( id, *args )
log( event: EVENT, hostname_allowed: hostname_allowed? )
return job_finished unless hostname_allowed?
job_status.main_cc_id = id
job_status.save!
msg_handler = ::Deepblue::MessageHandler.new( msg_queue: job_msg_queue,
to_console: task,
verbose: verbose,
Expand Down

0 comments on commit b492554

Please sign in to comment.