We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a72a6a5 commit 31aa239Copy full SHA for 31aa239
app/jobs/async_task_starter_job.rb
@@ -7,7 +7,10 @@ def perform(project_id)
7
::SourcesFetchJob.new.perform(project_id)
8
project = ::Project.find(project_id)
9
if project.sources_verified?
10
- ::Task::Starter.new(project, skip_fetch: true).call
+ task = ::Task::Starter.new(project, skip_fetch: true).call
11
+ if task.invalid?
12
+ raise Error, task.errors.full_messages.to_sentence
13
+ end
14
else
15
raise Error, project.sources_fetch_error.to_s
16
end
0 commit comments