Skip to content

Timeout override now works #448#779

Open
torazar wants to merge 1 commit into
ash-project:mainfrom
torazar:main
Open

Timeout override now works #448#779
torazar wants to merge 1 commit into
ash-project:mainfrom
torazar:main

Conversation

@torazar

@torazar torazar commented Jun 16, 2026

Copy link
Copy Markdown

, and it won't simply default to the regular timeout if you changed that.

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

Comment thread lib/data_layer.ex

use Spark.Dsl.Extension,
sections: @sections,
transformers: [AshPostgres.Transformers.AddQueryTimeoutPreparation],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What's this? I don't think we have this preparation anywhere do we?

Comment thread lib/data_layer.ex
@impl true
def set_context(resource, data_layer_query, context) do
AshSql.Query.set_context(resource, data_layer_query, AshPostgres.SqlImplementation, context)
AshPostgres.Sql.Query.set_context(resource, data_layer_query, context)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't see this module anywhere either 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants