Git Product home page Git Product logo

Comments (3)

hjoliver avatar hjoliver commented on June 11, 2024

This new block is the cause, but I haven't figured out exactly what's going on:

# flush out preparing tasks before attempting reload
self.reload_pending = 'waiting for pending tasks to submit'
while self.release_queued_tasks():
# Run the subset of main-loop functionality required to push
# preparing through the submission pipeline and keep the workflow
# responsive (e.g. to the `cylc stop` command).
# NOTE: this reload method was called by process_command_queue
# which is called synchronously in the main loop so this call is
# blocking to other main loop functions
# subproc pool - for issueing/tracking remote-init commands
self.proc_pool.process()
# task messages - for tracking task status changes
self.process_queued_task_messages()
# command queue - keeps the scheduler responsive
await self.process_command_queue()
# allows the scheduler to shutdown --now
await self.workflow_shutdown()
# keep the data store up to date with what's going on
await self.update_data_structure()
self.update_data_store()
# give commands time to complete
sleep(1) # give any remove-init's time to complete

from cylc-flow.

hjoliver avatar hjoliver commented on June 11, 2024

Ah, some progress. It's because the same job gets submitted twice! (Not double-handling of queued commands during reload as I initially thought).

It only happens if the task state hasn't updated yet, after job submission. So not a very serious bug after all, but still a bug.

Workaround:

script = """
    cylc__job__wait_cylc_message_started
    cylc reload $CYLC_WORKFLOW_ID
"""

from cylc-flow.

oliver-sanders avatar oliver-sanders commented on June 11, 2024

It only happens if the task state hasn't updated yet

hmm, fishy. What state was the task in at this point? preparing or submitted?

from cylc-flow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.