-
Notifications
You must be signed in to change notification settings - Fork 0
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
[pull] main from PrefectHQ:main #16
base: main
Are you sure you want to change the base?
Conversation
</script> | ||
<!-- Segment analytics --> | ||
<script> | ||
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="xDLAoTXsNYpC4Y6JucKnJ8W1MYBuyAbD";;analytics.SNIPPET_VERSION="4.15.3"; |
Check notice
Code scanning / CodeQL
Semicolon insertion
flows/agent.py
Outdated
subprocess.run(["prefect", "work-queue", "create", "test"]) | ||
try: | ||
subprocess.run(["prefect", "agent", "start", "test"], timeout=30) | ||
except subprocess.TimeoutExpired: |
Check notice
Code scanning / CodeQL
Empty except
flows/agent.py
Outdated
subprocess.run( | ||
["prefect", "agent", "start", "--work-queue", "default"], timeout=30 | ||
) | ||
except subprocess.TimeoutExpired: |
Check notice
Code scanning / CodeQL
Empty except
|
||
@abc.abstractmethod | ||
async def _emit(self, event: Event) -> None: # pragma: no cover | ||
... |
Check notice
Code scanning / CodeQL
Statement has no effect
src/prefect/events/clients.py
Outdated
|
||
# make sure we have actually connected | ||
pong = await self._websocket.ping() | ||
await pong |
Check notice
Code scanning / CodeQL
Statement has no effect
return | ||
|
||
pong = await self._websocket.ping() | ||
await pong |
Check notice
Code scanning / CodeQL
Statement has no effect
src/prefect/cli/work_pool.py
Outdated
table.add_column("Name", style="green", no_wrap=True) | ||
table.add_column("Deployment ID", style="blue", no_wrap=True) | ||
|
||
window = pendulum.now("utc").add(hours=hours or 1) |
Check notice
Code scanning / CodeQL
Unused local variable
src/prefect/results.py
Outdated
block_document = await client.read_block_document(self.storage_block_id) | ||
storage_block: ReadableFileSystem = Block._from_block_document(block_document) | ||
content = await storage_block.read_path(self.storage_key) | ||
blob = PersistedResultBlob.parse_raw(content) | ||
return blob | ||
|
||
@classmethod | ||
def _infer_path(cls, storage_block, key) -> str: |
Check notice
Code scanning / CodeQL
Explicit returns mixed with implicit (fall through) returns
def __post_init__(self): | ||
logger.debug("Created work item %r", self) | ||
|
||
def run(self): |
Check notice
Code scanning / CodeQL
Explicit returns mixed with implicit (fall through) returns
|
||
result = work_item.run() | ||
if inspect.isawaitable(result): | ||
await result |
Check notice
Code scanning / CodeQL
Statement has no effect
Co-authored-by: Fabian Nobis <fabian.nobis@deutschebahn.com>
Co-authored-by: daniel-prefect <daniel@prefect.io>
Co-authored-by: Devan Grose <=>
Co-authored-by: Alex Streed <desertaxle@users.noreply.github.com>
Co-authored-by: daniel-prefect <daniel@prefect.io> Co-authored-by: nate nowack <thrast36@gmail.com>
Co-authored-by: Alex Streed <alex.s@prefect.io>
Co-authored-by: marvin-robot <marvin-robot@users.noreply.github.com>
Co-authored-by: marvin-robot <marvin-robot@users.noreply.github.com>
Co-authored-by: Devan Grose <=>
Co-authored-by: Devan Grose <=>
… pools and work queues links (#17294)
Co-authored-by: Chris Pickett <chris.pickett@prefect.io>
Co-authored-by: Kevin Grismore <146098880+kevingrismore@users.noreply.github.com>
Co-authored-by: marvin-robot <marvin-robot@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: daniel-prefect <daniel@prefect.io>
Co-authored-by: daniel-prefect <daniel@prefect.io> Co-authored-by: Jenny G <40272060+zhen0@users.noreply.github.com> Co-authored-by: Jeff Hale <discdiver@users.noreply.github.com>
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )